CompleteMeasFitter

class CompleteMeasFitter(results, state_labels, qubit_list=None, circlabel='')[source]

Measurement correction fitter for a full calibration

Initialize a measurement calibration matrix from the results of running the circuits returned by measurement_calibration_circuits

A wrapper for the tensored fitter

Parameters
  • results (Union[Result, List[Result]]) – the results of running the measurement calibration circuits. If this is None the user will set a calibration matrix later.

  • state_labels (List[str]) – list of calibration state labels returned from measurement_calibration_circuits. The output matrix will obey this ordering.

  • qubit_list (Optional[List[int]]) – List of the qubits (for reference and if the subset is needed). If None, the qubit_list will be created according to the length of state_labels[0].

  • circlabel (str) – if the qubits were labeled.

Attributes

CompleteMeasFitter.cal_matrix

Return cal_matrix.

CompleteMeasFitter.filter

Return a measurement filter using the cal matrix.

CompleteMeasFitter.qubit_list

Return list of qubits.

CompleteMeasFitter.state_labels

Return state_labels.

Methods

CompleteMeasFitter.add_data(new_results[, …])

Add measurement calibration data

CompleteMeasFitter.plot_calibration([ax, …])

Plot the calibration matrix (2D color grid plot)

CompleteMeasFitter.readout_fidelity([label_list])

Based on the results, output the readout fidelity which is the normalized trace of the calibration matrix

CompleteMeasFitter.subset_fitter([qubit_sublist])

Return a fitter object that is a subset of the qubits in the original list.