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

44 lines
1.7 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: t2_circuits
description: API reference for qiskit.ignis.characterization.t2_circuits
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.ignis.characterization.t2_circuits
---
# qiskit.ignis.characterization.t2\_circuits
<Function id="qiskit.ignis.characterization.t2_circuits" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-ignis/tree/stable/0.7/qiskit/ignis/characterization/coherence/circuits.py" signature="t2_circuits(num_of_gates, gate_time, qubits, n_echos=1, phase_alt_echo=False)">
Generate circuits for T2 (echo) measurement, by a CPMG sequence.
## Each circuit consists of:
* $Y90-t-Y-[t-t-X/Y]^m-t-Y90$
* $n_{echos} = n+1$
* if phase\_alt\_echo then the X/Y alternate, if phase\_alt\_echo=False tthen he pulses are always Y
Standard T2\* echo is $n_echos=1$
**Parameters**
* **num\_of\_gates** (`Union`\[`List`\[`int`], `array`]) Each element of the list corresponds to a circuit. num\_of\_gates\[i] is the number of identity gates in each section “t” of the pulse sequence in circuit no. i. Must be in an increasing order.
* **gate\_time** (`float`) time of running a single identity gate.
* **qubits** (`List`\[`int`]) indices of the qubits whose T2\*s are to be measured.
* **n\_echos** (`int`) number of echo gates (X or Y).
* **phase\_alt\_echo** (`bool`) if True then alternate the echo between X and Y.
**Return type**
`Tuple`\[`List`\[`QuantumCircuit`], `array`]
**Returns**
* Generated circuits
* Delay times, i.e., gate\_time multiplied by the numbers in num\_of\_gates
**Raises**
**ValueError** If n\_echos is less than 1
</Function>