PauliTable.from_labels

classmethod PauliTable.from_labels(labels)[source]

Construct a PauliTable from a list of Pauli strings.

Parameters

labels (list) – Pauli string label(es).

Returns

the constructed PauliTable.

Return type

PauliTable

Raises
  • QiskitError – If the input list is empty or contains invalid

  • Pauli strings.