qiskit-documentation/docs/api/qiskit/0.26/qiskit.quantum_info.pauli_b...

30 lines
972 B
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: pauli_basis (v0.26)
description: API reference for qiskit.quantum_info.pauli_basis in qiskit v0.26
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.quantum_info.pauli_basis
---
<span id="qiskit-quantum-info-pauli-basis" />
# qiskit.quantum\_info.pauli\_basis
<Function id="qiskit.quantum_info.pauli_basis" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/quantum_info/operators/symplectic/pauli_utils.py" signature="pauli_basis(num_qubits, weight=False)">
Return the ordered PauliTable for the n-qubit Pauli basis.
**Parameters**
* **num\_qubits** (*int*) number of qubits
* **weight** (*bool*) if True optionally return the basis sorted by Pauli weight rather than lexicographic order (Default: False)
**Returns**
the PauliTable for the basis
**Return type**
[PauliTable](qiskit.quantum_info.PauliTable "qiskit.quantum_info.PauliTable")
</Function>