WeightedPauliOperator.to_dict

WeightedPauliOperator.to_dict()[source]

Save operator to a dict in pauli representation.

Returns

a dictionary contains an operator with pauli representation.

Return type

dict