MeasurementFilter¶
-
class
MeasurementFilter
(cal_matrix, state_labels)[source]¶ Bases:
object
Measurement error mitigation filter.
Produced from a measurement calibration fitter and can be applied to data.
Initialize a measurement error mitigation filter using the cal_matrix from a measurement calibration fitter.
- Parameters
cal_matrix (
matrix
) – the calibration matrix for applying the correctionstate_labels (
list
) – the states for the ordering of the cal matrix
Methods
Apply the calibration matrix to results.
Attributes
-
cal_matrix
¶ Return cal_matrix.
-
state_labels
¶ return the state label ordering of the cal matrix