MeasurementFilter

class MeasurementFilter(cal_matrix, state_labels)[source]

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 correction

  • state_labels (list) – the states for the ordering of the cal matrix

Attributes

MeasurementFilter.cal_matrix

Return cal_matrix.

MeasurementFilter.state_labels

return the state label ordering of the cal matrix

Methods

MeasurementFilter.apply(raw_data[, method])

Apply the calibration matrix to results.