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.
1 parent f2379f6 commit 629a844Copy full SHA for 629a844
src/bloqade/qasm2/dialects/inline.py
@@ -47,7 +47,7 @@ def lower(
47
for qasm_stmt in region.blocks[0].stmts:
48
qasm_stmt.detach()
49
state.current_frame.push(qasm_stmt)
50
-
+
51
state.current_frame.defs.update(defs)
52
53
for block in region.blocks:
src/bloqade/qasm2/parse/lowering.py
@@ -57,17 +57,17 @@ def run(
57
else:
58
e.args = (hint,)
59
raise e
60
61
if return_defs:
62
defs = frame.defs.copy()
63
64
region = frame.curr_region
65
66
if compactify:
67
from kirin.rewrite import Walk, CFGCompactify
68
69
Walk(CFGCompactify()).rewrite(region)
70
71
72
# use this to update the current frame for python
73
# lowering for inline qasm.
0 commit comments