bloqade.stim.rewrite.util.insert_qubit_idx_from_address
← Module overview
function
source
functioninsert_qubit_idx_from_address¶source
bloqade.stim.rewrite.util.insert_qubit_idx_from_address
Signature
def insert_qubit_idx_from_address(address: AddressAttribute, stmt_to_insert_before: ir.Statement) -> tuple[ir.SSAValue, ...] | NoneExtract qubit indices from an AddressAttribute and insert them into the SSA form.
Parameters
| Name | Type | Description |
|---|---|---|
address | AddressAttribute | |
stmt_to_insert_before | ir.Statement |
Returns
tuple[ir.SSAValue, ...] | None