Skip to content

Commit 9055694

Browse files
committed
Fix self arg in qasm2 loading
1 parent 201f506 commit 9055694

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bloqade/qasm2/_qasm_loading.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ def loads(
8282
body=body,
8383
)
8484

85+
self_arg = ir.BlockArgument(body.blocks[0], 0) # Self argument
86+
body.blocks[0]._args = (self_arg,)
87+
8588
mt = ir.Method(
86-
mod=None,
87-
py_func=None,
8889
sym_name=kernel_name,
89-
arg_names=[],
9090
dialects=qasm2_lowering.dialects,
9191
code=code,
9292
)

0 commit comments

Comments
 (0)