iqm.iqm_client.models.HeraldingMode

iqm.iqm_client.models.HeraldingMode#

class iqm.iqm_client.models.HeraldingMode(value)#

Bases: str, Enum

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.

Attributes

NONE

Do not do any heralding.

ZEROS

Perform a heralding measurement after qubit initialization, only retain shots with an all-zeros result.

Methods

_generate_next_value_(start, count, last_values)

Generate the next value when not given.

NONE = 'none'#

Do not do any heralding.

ZEROS = 'zeros'#

Perform a heralding measurement after qubit initialization, only retain shots with an all-zeros result.

Note: in this mode, the number of shots returned after execution will be less or equal to the requested amount due to the post-selection based on heralding data.