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

_generate_next_value_(start, count, last_values)

Return the lower-cased version of the member name.

__new__(value)

__format__(format_spec, /)

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

__str__()

Return str(self).

__new_member__(*values)

values must already be of type str

CIRCUIT = 'circuit'#

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

ALL = 'all'#

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