-
Notifications
You must be signed in to change notification settings - Fork 377
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
Simulator can run indefinately when running circuits with conditionals #2230
Comments
I was unable to run your code (I'm missing your qiskit helpers and getting
It seems to me that it's not an |
Gadi: the "jump" instructions are inserted by Aer itself as part of how it makes the tree-like structure of control-flow into a sequence of instructions. If the jumps and marks are getting set wrong, that'll be happening within Aer. |
Thanks Jake. It's now clearer to me what's going on: |
Sorry about that, that was my mistake. I forgot to add the helper functions we were using into the issue. |
Benny and I found this bug.
Informations
What is the current behavior?
Runs indefinately
Steps to reproduce the problem
Run this code:
Making the subroutine non-empty makes it work
Moving the
x
gate before the measure makes it workWhat is the expected behavior?
Should return results, in the case of empty subroutine, should always treat it as identity
Suggested solutions
The text was updated successfully, but these errors were encountered: