We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
MRE:
from bloqade import qasm2 import textwrap qasm2_prog = textwrap.dedent( """ OPENQASM 2.0; include "qelib1.inc"; qreg q[1]; creg c[1]; if(c == 1) x q[0]; """ ) main = qasm2.loads(qasm2_prog)
The frame seems to "lose" all previous definitions when lowering the if statement. I've narrowed it down to this point in the code:
bloqade-circuit/src/bloqade/qasm2/parse/lowering.py
Line 162 in 89ffbab
The self.current_frame.defs is not passed into the state.frame(...) and so later on it can't find q when lowering the if body.
self.current_frame.defs
state.frame(...)
q
@Roger-luo I think I'll need your help with this one.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
MRE:
The frame seems to "lose" all previous definitions when lowering the if statement.
I've narrowed it down to this point in the code:
bloqade-circuit/src/bloqade/qasm2/parse/lowering.py
Line 162 in 89ffbab
The
self.current_frame.defs
is not passed into thestate.frame(...)
and so later on it can't findq
when lowering the if body.@Roger-luo I think I'll need your help with this one.
The text was updated successfully, but these errors were encountered: