Pauli.from_label¶
- classmethod Pauli.from_label(label)[source]¶
Take pauli string to construct pauli.
The qubit index of pauli label is q_{n-1} … q_0. E.g., a pauli is $P_{n-1} otimes … otimes P_0$
- Parameters
label (str) – pauli label
- Returns
the constructed pauli
- Return type
- Raises
QiskitError – invalid character in the label