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.characterization.anglecal_cx_circuits

anglecal_cx_circuits(max_reps, qubits, control_qubits, angleerr=0.0)

GitHub

Generates circuit for measuring the angle error of the cx gate

The cx gate is repeatedly applied and we look at the population of the target qubit in the xy axis (amplitude erorr amplification sequence)

X(control)-Y90(target)-(CX - Yp(target))^n - X90(target)

Note: the circuit may not behave as intended if the target-control pairs are not in the coupling map

Parameters

  • max_reps (int) – the maximum number of repetitions. Circuits will increment by 1 rep up to max_rep
  • qubits (list) – a list of integers indices of the qubits to perform the calibration on
  • control_qubits (list) – a list of integer indices of the control qubits to perform the calibration on
  • angleerr (float) – put in an artificial angle error (for testing)

Returns

A tuple of the form (circuits, xdata) where

circuits is a list of QuantumCircuit and xdata is a list of gate repetitions (number of u2 gates)

Return type

tuple

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