HeraldingMode#

class HeraldingMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: StrEnum

Heralding mode for circuit execution.

Heralding is the practice of generating data about the state of qubits prior to execution of a circuit. This can be achieved by measuring the qubits immediately before executing each shot for a circuit.

Module: iqm.station_control.interface.models.circuit

Attributes

NONE

Do not do any heralding.

ZEROS

For each circuit, perform a heralding measurement after the initial reset on all the QPU components used in the circuit that have the "measure" operation available in the calset.

Methods

NONE = 'none'#

Do not do any heralding.

ZEROS = 'zeros'#

For each circuit, perform a heralding measurement after the initial reset on all the QPU components used in the circuit that have the “measure” operation available in the calset. Only retain shots where all the components are measured to be in the zero state.

Note: in this mode, the number of shots returned after execution will be <= the requested amount due to the post-selection based on heralding data. If zero shots would be returned, the job will have the FAILED status.

_generate_next_value_(start, count, last_values)#

Return the lower-cased version of the member name.