Shortcuts

qiskit.quantum_info.pauli_group

pauli_group(number_of_qubits, case='weight')[Quellcode]

Return the Pauli group with 4^n elements.

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.

Parameter
  • number_of_qubits (int) – number of qubits

  • case (str) – determines ordering of group elements (‚weight‘ or ‚tensor‘)

Rückgabe

list of Pauli objects

Rückgabetyp

list

Verursacht
  • QiskitError – case is not ‚weight‘ or ‚tensor‘

  • QiskitError – number_of_qubits is larger than 4

Zu sehen ist lang: German
Sprachen
English
Japanese
German
Korean