to_dict

PauliOperator.to_dict()

Convert the Pauli operator to a dictionary representation.

Returns

dict[str, complex] – Dictionary representation of the Pauli operator.

Return type

dict

Was this useful?