TensoredFilter¶
-
class
TensoredFilter
(cal_matrices, substate_labels_list, mit_pattern)[source]¶ Bases:
object
Tensored measurement error mitigation filter.
Produced from a tensored measurement calibration fitter and can be applied to data.
Initialize a tensored measurement error mitigation filter using the cal_matrices from a tensored measurement calibration fitter. A simple usage this class is explained [here] (https://qiskit.org/documentation/tutorials/noise/3_measurement_error_mitigation.html).
- Parameters
cal_matrices (
matrix
) – the calibration matrices for applying the correction.substate_labels_list (
list
) – for each calibration matrix a list of the states (as strings, states in the subspace)mit_pattern (
list
) – for each calibration matrix a list of the logical qubit indices (as int, states in the subspace)
Methods
Apply the calibration matrices to results.
Return the index of (pseudo inverse) calibration matrix for the input quantum state
Flip the state according to the chosen qubit positions
Attributes
-
cal_matrices
¶ Return cal_matrices.
-
nqubits
¶ Return the number of qubits. See also MeasurementFilter.apply()
-
qubit_list_sizes
¶ Return _qubit_list_sizes.
-
substate_labels_list
¶ Return _substate_labels_list