Shortcuts

mthree.utils.final_measurement_mapping

final_measurement_mapping(circuit)[source]

Return the final measurement mapping for the circuit.

Dict keys label measured qubits, whereas the values indicate the classical bit onto which that qubits measurement result is stored.

Parameters

circuit (QuantumCircuit or list) – Input Qiskit QuantumCircuit or circuits.

Returns

Mapping of qubits to classical bits for final measurements.

Return type

dict or list