qiskit-documentation/docs/api/qiskit/0.24/qiskit.ignis.characterizati...

39 lines
1.5 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: ampcal_cx_circuits
description: API reference for qiskit.ignis.characterization.ampcal_cx_circuits
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.ignis.characterization.ampcal_cx_circuits
---
<span id="qiskit-ignis-characterization-ampcal-cx-circuits" />
# qiskit.ignis.characterization.ampcal\_cx\_circuits
<Function id="qiskit.ignis.characterization.ampcal_cx_circuits" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-ignis/tree/stable/0.5/qiskit/ignis/characterization/gates/circuits.py" signature="ampcal_cx_circuits(max_reps, qubits, control_qubits)">
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 and `xdata` is a list of gate repetitions (number of u2 gates)
**Return type**
tuple
</Function>