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 886523e commit 1105582Copy full SHA for 1105582
src/bloqade/qasm2/emit/main.py
@@ -22,15 +22,13 @@ class EmitQASM2Main(EmitQASM2Base[ast.Statement, ast.MainProgram]):
22
def initialize(self) -> Self:
23
super().initialize()
24
return self
25
+
26
+ def eval_fallback(self, frame: EmitQASM2Frame, node: ir.Statement):
27
+ return tuple(None for _ in range(len(node.results)))
28
29
30
@func.dialect.register(key="emit.qasm2.main")
31
class Func(interp.MethodTable):
- @interp.impl(func.Return)
- @interp.impl(func.ConstantNone)
- def ignore(self, emit: EmitQASM2Main, frame: EmitQASM2Frame, stmt):
32
- return ()
33
-
34
@interp.impl(func.Invoke)
35
def invoke(self, emit: EmitQASM2Main, frame: EmitQASM2Frame, node: func.Invoke):
36
name = emit.callables.get(node.callee.code)
0 commit comments