bloqade.lanes.analysis.atom.lattice.MeasureResult
← Module overview
class
method
sourcemethod
source
classMeasureResult¶source
bloqade.lanes.analysis.atom.lattice.MeasureResult
Bases: MoveExecution
A single terminal-measurement result.
Signature
class MeasureResult(measurement_id: int, qubit_id: int, location_address: LocationAddress)Parameters
| Name | Type | Description |
|---|---|---|
measurement_id | int | |
qubit_id | int | |
location_address | LocationAddress |
Attributes
| Name | Type | Description |
|---|---|---|
measurement_id | int | Global measurement-record index, i.e. the order in which the physical measurement operation executes (the first measurement is ``0``, the second ``1``, ...). This is the column index into the raw per-shot measurement array returned by the simulator/hardware backend and is what post-processing must use to look up the result. It coincides with ``qubit_id`` only when qubits happen to be measured once in allocation order. |
qubit_id | int | Physical qubit that occupied ``location_address`` at measurement time. Selects which physical qubit SSA value to measure during lowering, but is *not* a valid index into the raw measurement array. |
location_address | LocationAddress | Hardware location that was measured. |
methodcopy¶source
bloqade.lanes.analysis.atom.lattice.MeasureResult.copy
def copy()methodis_subseteq_MeasureResult¶source
bloqade.lanes.analysis.atom.lattice.MeasureResult.is_subseteq_MeasureResult
def is_subseteq_MeasureResult(elem: MeasureResult) -> boolParameters
| Name | Type | Description |
|---|---|---|
elem | MeasureResult |
Returns
bool