to_list

PauliOperator.to_list()

Convert the Pauli operator to a list of tuples.

Returns

list[tuple[str, complex]] – List of tuples containing the Pauli strings and coefficients.

Return type

list[tuple[str, complex]]

Was this useful?