iqm.cpc.interface.compiler.ReadoutMapping

Contents

iqm.cpc.interface.compiler.ReadoutMapping#

iqm.cpc.interface.compiler.ReadoutMapping#

Type for matching measurement keys from the quantum circuit with acquisition labels in Station Control.

In quantum circuits, measurements are identified by measurement keys. Measurements in Station Control are identified by acquisition labels specific to a readout controller. This type is a dictionary mapping measurement keys to lists of acquisition labels — each acquisition label should hold the readout of a single qubit at a single point in the circuit, and the order in the list corresponds to the order of qubits in the measurement instruction. E.g. if one has measurement instruction with key='mk' and qubits=[QB2, QB1], then the corresponding entry in this dict would be 'mk': ('QB2__mk', 'QB1__mk')

The values of the ReadoutMapping are used to determine which measurement results Station Control should return to Cocos.

alias of dict[str, tuple[str, …]]