iqm.benchmarks.readout_mitigation.readout_error_m3

iqm.benchmarks.readout_mitigation.readout_error_m3#

iqm.benchmarks.readout_mitigation.readout_error_m3(counts: Dict[str, float], mit: M3IQM, qubits: Iterable) Dict[str, float]#

Counts processor using M3IQM for readout error mitigation.

The qubits argument can be either a dictionary coming from mthree.utils.final_measurement_mapping or an array like the initial layout coming from [backend.qubit_name_to_index(name)]

returns a dictionary of quasiprobabilties.

NOTE: we could also pass a list of input counts and then this would return a list of quasiprobabilities. This would not work out of the box for us since we need the annotations of either Dict or List (not Union).

Parameters:
Return type:

Dict[str, float]