iqm.benchmarks.readout_mitigation.M3IQM#
- class iqm.benchmarks.readout_mitigation.M3IQM(system=None, iter_threshold=4096)#
Bases:
M3Mitigation
M3 readout mitigation class modified to work with IQM devices.
Methods
_grab_additional_cals
(qubits[, shots, ...])Grab missing calibration data from backend.
cals_from_system
([qubits, shots, method, ...])Grab calibration data from system.
- cals_from_system(qubits=None, shots=None, method=None, initial_reset=False, rep_delay=None, cals_file=None, async_cal=False, cal_id=None)#
Grab calibration data from system.
- Parameters:
qubits (array_like) – Qubits over which to correct calibration data. Default is all.
shots (int) – Number of shots per circuit. min(1e4, max_shots).
method (str) – Type of calibration, ‘balanced’ (default for hardware), ‘independent’ (default for simulators), or ‘marginal’.
initial_reset (bool) – Use resets at beginning of calibration circuits, default=False.
rep_delay (float) – Delay between circuits on IBM Quantum backends.
cals_file (str) – Output path to write JSON calibration data to.
async_cal (bool) – Do calibration async in a separate thread, default is False.
- Raises:
M3Error – Called while a calibration currently in progress.