- class TensoredMeasFitter(results, mit_pattern, substate_labels_list=None, circlabel='')¶
Measurement correction fitter for a tensored calibration.
Initialize a measurement calibration matrix from the results of running the circuits returned by measurement_calibration_circuits.
This class is not a public API. The internals are not stable and will likely change. It is used solely for the
measurement_error_mitigation_clskwarg of the
QuantumInstanceclass’s constructor (as a class not an instance). Anything outside of that usage does not have the normal user-facing API stability.
results – the results of running the measurement calibration circuits. If this is None, the user will set calibration matrices later.
int]]) – qubits to perform the measurement correction on, divided to groups according to tensors
str]]]) – for each calibration matrix, the labels of its rows and columns. If None, the labels are ordered lexicographically
str) – if the qubits were labeled
ValueError – if the mit_pattern doesn’t match the substate_labels_list
Add measurement calibration data
Based on the results, output the readout fidelity, which is the average of the diagonal entries in the calibration matrices.
Return a measurement filter using the cal matrices.