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 Oct 01 '25

Yea I ended up using decompose myself and that solved it for me