to_dict

SparseOccupationOperators.to_dict()

Convert the SparseOccupationOperators instance to a dictionary representation.

Returns

dict[str, Any] – A dictionary containing ‘operators’ and ‘coefficients’.

Was this useful?