ir
IR
Source code in opensquirrel/ir/ir.py
accept
add_asm_declaration
Adds an assembly declaration to the IR.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
asm_declaration
|
AsmDeclaration
|
The assembly declaration to add. |
required |
add_gate
Adds a gate to the IR.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
gate
|
Gate
|
The gate to add. |
required |
add_non_unitary
Adds a non-unitary operation to the IR.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
non_unitary
|
NonUnitary
|
The non-unitary operation to add. |
required |
add_statement
Adds a generic statement to the IR.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
statement
|
Statement
|
The statement to add. |
required |