39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
---
|
||
title: pauli_group (v0.26)
|
||
description: API reference for qiskit.quantum_info.pauli_group in qiskit v0.26
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.quantum_info.pauli_group
|
||
---
|
||
|
||
<span id="qiskit-quantum-info-pauli-group" />
|
||
|
||
# qiskit.quantum\_info.pauli\_group
|
||
|
||
<Function id="qiskit.quantum_info.pauli_group" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/quantum_info/operators/pauli.py" signature="pauli_group(number_of_qubits, case='weight')">
|
||
DEPRECATED: Return the Pauli group with 4^n elements.
|
||
|
||
This function is deprecated. Use [`pauli_basis()`](qiskit.quantum_info.pauli_basis "qiskit.quantum_info.pauli_basis") for equivalent functionality.
|
||
|
||
The phases have been removed. case ‘weight’ is ordered by Pauli weights and case ‘tensor’ is ordered by I,X,Y,Z counting lowest qubit fastest.
|
||
|
||
**Parameters**
|
||
|
||
* **number\_of\_qubits** (*int*) – number of qubits
|
||
* **case** (*str*) – determines ordering of group elements (‘weight’ or ‘tensor’)
|
||
|
||
**Returns**
|
||
|
||
list of Pauli objects
|
||
|
||
**Return type**
|
||
|
||
list
|
||
|
||
**Raises**
|
||
|
||
* **QiskitError** – case is not ‘weight’ or ‘tensor’
|
||
* **QiskitError** – number\_of\_qubits is larger than 4
|
||
</Function>
|
||
|