30 lines
972 B
Plaintext
30 lines
972 B
Plaintext
---
|
||
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>
|
||
|