ampcal_cx_circuits¶
- ampcal_cx_circuits(max_reps, qubits, control_qubits)[source]¶
Generates circuit for measuring the amplitude 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)-X90(target)-(CX)^n
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 integer 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
- Returns
- A tuple of the form (
circuits
,xdata
) where circuits
is a list of QuantumCircuit andxdata
is a list of gate repetitions (number of u2 gates)
- A tuple of the form (
- Return type
tuple