bloqade.lanes.rewrite.move2squin.gates.InsertGates
← Module overview
class
method
sourcemethod
source
classInsertGates¶source
bloqade.lanes.rewrite.move2squin.gates.InsertGates
Bases: AtomStateRewriter
Signature
class InsertGates(arch_spec: ArchSpec, physical_ssa_values: dict[int, ir.SSAValue], move_exec_analysis: ForwardFrame[atom.MoveExecution], initialize_kernel: ir.Method[[float, float, float, ilist.IList[qubit.Qubit, Any]], None] | None = None)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
arch_spec | ArchSpec | required | |
physical_ssa_values | dict[int, ir.SSAValue] | required | |
move_exec_analysis | ForwardFrame[atom.MoveExecution] | required | |
initialize_kernel | ir.Method[[float, float, float, ilist.IList[qubit.Qubit, Any]], None] | None | None |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
move_exec_analysis | ForwardFrame[atom.MoveExecution] | required | |
initialize_kernel | ir.Method[[float, float, float, ilist.IList[qubit.Qubit, Any]], None] | None | None | |
measurement_index_map | dict[ZoneAddress, dict[LocationAddress, int]] | field(init=False, default_factory=dict) | |
qubit_ids | tuple[int, ...] | field(init=False) |
methodrewrite_Statement¶source
bloqade.lanes.rewrite.move2squin.gates.InsertGates.rewrite_Statement
def rewrite_Statement(node: ir.Statement) -> rewrite_abc.RewriteResultParameters
| Name | Type | Description |
|---|---|---|
node | ir.Statement |
Returns
rewrite_abc.RewriteResult
methodrewriter¶source
bloqade.lanes.rewrite.move2squin.gates.InsertGates.rewriter
Signature
def rewriter(node: ir.Statement, atom_state: atom.AtomState) -> rewrite_abc.RewriteResultParameters
| Name | Type | Description |
|---|---|---|
node | ir.Statement | |
atom_state | atom.AtomState |
Returns
rewrite_abc.RewriteResult