pychemiq.PauliOperator#
Classes#
- class PauliOperator({pauli_string: coefficient})#
- Parameters:
pauli_string (str) – The Pauli operator in character form.
coefficient (float) – The coefficient of the Pauli operator for this term.
- Returns:
Pauli operator class.
- get_max_index()#
Obtain the maximum index value. If it is an empty Pauli operator item calling the get_max_index() interface, it returns SIZE_MAX (specific value depends on the operating system), otherwise return its maximum index value.
- data()#
The Pauli operator class provides a data interface that can return data maintained internally by Pauli operators.
Note
For a detailed introduction of this class, please refer to Operator Class Tutorial in the advanced tutorial.