bloqade.lanes.rewrite.move2squin.base.AtomStateRewriter
← Module overview
class
method
sourcemethod
source
classAtomStateRewriter¶source
bloqade.lanes.rewrite.move2squin.base.AtomStateRewriter
Bases: rewrite_abc.RewriteRule
Signature
class AtomStateRewriter(arch_spec: ArchSpec, physical_ssa_values: dict[int, ir.SSAValue])Parameters
| Name | Type | Description |
|---|---|---|
arch_spec | ArchSpec | |
physical_ssa_values | dict[int, ir.SSAValue] |
Attributes
| Name | Type | Description |
|---|---|---|
arch_spec | ArchSpec | |
physical_ssa_values | dict[int, ir.SSAValue] |
methodget_qubit_ssa¶source
bloqade.lanes.rewrite.move2squin.base.AtomStateRewriter.get_qubit_ssa
Signature
def get_qubit_ssa(atom_state: atom.AtomState, location: LocationAddress) -> ir.SSAValue | NoneParameters
| Name | Type | Description |
|---|---|---|
atom_state | atom.AtomState | |
location | LocationAddress |
Returns
ir.SSAValue | None
methodget_qubit_ssa_from_locations¶source
bloqade.lanes.rewrite.move2squin.base.AtomStateRewriter.get_qubit_ssa_from_locations
Signature
def get_qubit_ssa_from_locations(atom_state: atom.AtomState, location_addresses: tuple[LocationAddress, ...]) -> tuple[ir.SSAValue | None, ...]Parameters
| Name | Type | Description |
|---|---|---|
atom_state | atom.AtomState | |
location_addresses | tuple[LocationAddress, ...] |
Returns
tuple[ir.SSAValue | None, ...]