-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transpilation of dynamic circuit fails with Runtime and fake backends #9717
Comments
These backends need to be updated, possibly with the code here - Qiskit/qiskit-ibm-provider#443 You can temporarily work around this by running: # Workaround until the `if_else` deployment is fixed.
from qiskit.circuit import IfElseOp
if "if_else" not in backend.target:
backend.target.add_instruction(IfElseOp, name="if_else") |
I see, so the runtime backend issue needs to be fixed in the runtime repository. I'll open an issue there. |
Hmm, ultimately I think this is a problem with Terra embedding the jsons that are meant to be interpreted by the Provider. This means the provider logic should be replicated in terra... IMO, since Terra is backend independent the mock backends for IBM shouldn't even be in this package but rather the Provider package. |
I'm going to close this issue because Qiskit/qiskit-ibm-runtime#738 was opened. For more specifics the underlying issue is that the target for the As for the fake backend this also fails but that's correct behavior in my opinion. The snapshot configuration used for But, please feel free to reopen this if I'm missing something or there is more to discuss here. |
Environment
What is happening?
See title.
How can we reproduce the issue?
What should happen?
It should work.
Any suggestions?
The circuit transpiles successfully if passed a backend from IBMProvider:
The text was updated successfully, but these errors were encountered: