bloqade.qasm2.emit.main.EmitQASM2Main
← Module overview
class
method
method
source
classEmitQASM2Main¶source
bloqade.qasm2.emit.main.EmitQASM2Main
Bases: EmitQASM2Base[ast.Statement, ast.MainProgram]
Signature
class EmitQASM2Main(dialects: ir.DialectGroup, *, prefix: str = '', prefix_if_none: str = 'var_')Parameters
| Name | Type | Default | Description |
|---|---|---|---|
dialects | ir.DialectGroup | required | |
prefix | str | '' | |
prefix_if_none | str | 'var_' |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
keys | — | ('emit.qasm2.main', 'emit.qasm2.gate') | |
dialects | ir.DialectGroup | required |
methodinitialize¶source
bloqade.qasm2.emit.main.EmitQASM2Main.initialize
methodeval_fallback¶source
bloqade.qasm2.emit.main.EmitQASM2Main.eval_fallback
def eval_fallback(frame: EmitQASM2Frame, node: ir.Statement)Parameters
| Name | Type | Description |
|---|---|---|
frame | EmitQASM2Frame | |
node | ir.Statement |