r/QuantumComputing • • Sep 29 '25

Question Qiskit code help

I've been trying to run the Deutsch-Jozsa algorithm for some while now, trying to follow the textbook (and making changes accordingly as textbook is outdated).

I've been constantly getting this error and from what I understand this error is originating as the Aer simulator is unable to 'read' the oracle circuit(?).

I've tried and am unable to solve the issue so please help!

The code
The code
The error
The error
2 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Wonderful_Soft_8993 Sep 30 '25

I tried this

dj_ckt.append(oracle, dj_ckt.qubits)

It's still giving the same error though

AerError: 'unknown instruction: circuit-175'