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

38 lines
1.6 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: anglecal_cx_circuits
description: API reference for qiskit.ignis.characterization.anglecal_cx_circuits
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.ignis.characterization.anglecal_cx_circuits
---
# qiskit.ignis.characterization.anglecal\_cx\_circuits
<Function id="qiskit.ignis.characterization.anglecal_cx_circuits" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-ignis/tree/stable/0.6/qiskit/ignis/characterization/gates/circuits.py" signature="anglecal_cx_circuits(max_reps, qubits, control_qubits, angleerr=0.0)">
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
</Function>