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 7c7a1ee commit e2493cdCopy full SHA for e2493cd
src/bloqade/qasm2/_qasm_loading.py
@@ -4,6 +4,7 @@
4
from typing import Any
5
6
from kirin import ir, lowering
7
+from kirin.types import MethodType
8
from kirin.dialects import func
9
10
from . import parse
@@ -82,8 +83,10 @@ def loads(
82
83
body=body,
84
)
85
- self_arg = ir.BlockArgument(body.blocks[0], 0) # Self argument
86
- body.blocks[0]._args = (self_arg,)
+ # self_arg = ir.BlockArgument(body.blocks[0], 0) # Self argument
87
+
88
+ body.blocks[0].args.append_from(MethodType, kernel_name + "_self")
89
+ # body.blocks[0]._args = (self_arg,)
90
91
mt = ir.Method(
92
sym_name=kernel_name,
0 commit comments