Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.ignis.mitigation.complete_meas_cal

complete_meas_cal(qubit_list=None, qr=None, cr=None, circlabel='')

GitHub

Return a list of measurement calibration circuits for the full Hilbert space.

If the circuit contains nn qubits, then 2n2^n calibration circuits are created, each of which creates a basis state.

Parameters

  • qubit_list (Optional[List[int]]) – A list of qubits to perform the measurement correction on. If None, and qr is given then assumed to be performed over the entire qr. The calibration states will be labelled according to this ordering (default None).
  • qr (Union[int, List[QuantumRegister], None]) – Quantum registers (or their size).
  • None (If) –
  • is created (one) –
  • cr (Union[int, List[ClassicalRegister], None]) – Classical registers (or their size).
  • None
  • is created
  • circlabel (str) – A string to add to the front of circuit names for unique identification(default ‘ ‘).

Return type

Tuple[List[QuantumCircuit], List[str]]

Returns

A list of QuantumCircuit objects containing the calibration circuits.

A list of calibration state labels.


Additional Information:

The returned circuits are named circlabel+cal_XXX where XXX is the basis state, e.g., cal_1001.

Pass the results of these circuits to the CompleteMeasurementFitter constructor.

Raises

QiskitError – if both qubit_list and qr are None.

Was this page helpful?
Report a bug or request content on GitHub.