Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

complete_meas_cal

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

GitHub(opens in a new tab)

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) –
  • created (one is) –
  • cr (Union[int, List[ClassicalRegister], None]) – Classical registers (or their size).
  • None
  • 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.