qiskit-documentation/docs/api/qiskit/0.31/qiskit.ignis.verification.p...

46 lines
2.4 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: process_tomography_circuits (v0.31)
description: API reference for qiskit.ignis.verification.process_tomography_circuits in qiskit v0.31
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.ignis.verification.process_tomography_circuits
---
<span id="qiskit-ignis-verification-process-tomography-circuits" />
# qiskit.ignis.verification.process\_tomography\_circuits
<Function id="qiskit.ignis.verification.process_tomography_circuits" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-ignis/tree/stable/0.6/qiskit/ignis/verification/tomography/basis/circuits.py" signature="process_tomography_circuits(circuit, measured_qubits, prepared_qubits=None, meas_labels='Pauli', meas_basis='Pauli', prep_labels='Pauli', prep_basis='Pauli')">
Return a list of quantum process tomography circuits.
## This performs preparation in the minimial Pauli-basis eigenstates
* `"Z_p"`: $|0\rangle$
* `"Z_m"`: $|1\rangle$
* `"X_p"`: $|+\rangle$
* `"Y_m"`: $|+i\rangle$
on each qubit, and measurement in the Pauli-basis X, Y, Z resulting in $4^n 3^n$ circuits for an n-qubit process tomography experiment.
**Parameters**
* **circuit** (`QuantumCircuit`) the QuantumCircuit circuit to be tomographed.
* **measured\_qubits** (`QuantumRegister`) the qubits to be measured. This can also be a list of whole QuantumRegisters or individual QuantumRegister qubit tuples.
* **prepared\_qubits** (`Optional`\[`QuantumRegister`]) the qubits to have state preparation applied, if different from measured\_qubits. If None measured\_qubits will be used for prepared qubits
* **meas\_labels** (`Union`\[`str`, `Tuple`\[`str`], `List`\[`Tuple`\[`str`]]]) (default: Pauli) The measurement operator labels.
* **meas\_basis** (`Union`\[`str`, `TomographyBasis`]) (default: Pauli) The measurement basis.
* **prep\_labels** (`Union`\[`str`, `Tuple`\[`str`], `List`\[`Tuple`\[`str`]]]) (default: Pauli) The preparation operator labels.
* **prep\_basis** (`Union`\[`str`, `TomographyBasis`]) (default: Pauli) The preparation basis.
**Return type**
`List`\[`QuantumCircuit`]
**Returns**
A list of QuantumCircuit objects containing the original circuit with state preparation circuits prepended, and measurement circuits appended.
The returned circuits are named by the preparation and measurement basis.
</Function>