Skip to content

bloqade.lanes.analysis.atom.lattice.MeasureResult

← Module overview

classMeasureResultsource

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

NameTypeDescription
measurement_idint
qubit_idint
location_addressLocationAddress

Attributes

NameTypeDescription
measurement_idintGlobal 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_idintPhysical 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_addressLocationAddressHardware location that was measured.

methodcopysource

bloqade.lanes.analysis.atom.lattice.MeasureResult.copy

def copy()
source

methodis_subseteq_MeasureResultsource

bloqade.lanes.analysis.atom.lattice.MeasureResult.is_subseteq_MeasureResult

def is_subseteq_MeasureResult(elem: MeasureResult) -> bool

Parameters

NameTypeDescription
elemMeasureResult

Returns

bool

source