iqm.cpc.interface.compiler.MeasurementMode

iqm.cpc.interface.compiler.MeasurementMode#

class iqm.cpc.interface.compiler.MeasurementMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: StrEnum

Measurement mode for circuit execution.

Determines which QPU components are measured by Station Control in the final measurement. Measurement results which are not required by the circuits to be executed are discarded.

Attributes

CIRCUIT

In each circuit separately, measure only the components that have final measurement operations on them.

ALL

Measure all the components on the QPU that have measurement data in the calset.

Methods

__format__(format_spec, /)

Return a formatted version of the string as described by format_spec.

__new__(value)

__str__()

Return str(self).

CIRCUIT: Final[str] = 'circuit'#

In each circuit separately, measure only the components that have final measurement operations on them.

ALL: Final[str] = 'all'#

Measure all the components on the QPU that have measurement data in the calset. This is typically how measurement is calibrated.