when I try to use the method backend.run() with a transpiled circuit with optimization level 1-3 an error occurs.

enter image description here

My code:

My Code

When I don't specify any optimization level it works. The backend.name is ibm_osaka

Should I specify more parameters in one of the two methods?

  • $\begingroup$ Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. $\endgroup$
    – Community Bot
    Feb 8 at 7:28

1 Answer 1


In case someone has the same problem, it seems to be a problem with the mapping between virtual qubits and physical qubits in the quantum computer.

I have fixed the issue by specifying the initial layout in the transpile function.

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.