qiskit.quantum_info.pauli_basis
qiskit.quantum_info.pauli_basis(num_qubits, weight=False)
Return the ordered PauliList for the n-qubit Pauli basis.
Parameters
- num_qubits (int (opens in a new tab)) – number of qubits
- weight (bool (opens in a new tab)) – if True optionally return the basis sorted by Pauli weight rather than lexicographic order (Default: False)
Returns
the Paulis for the basis
Return type
Was this page helpful?