from_dict

*classmethod* SparseOccupationOperators.from_dict(data)

Create a SparseOccupationOperators instance from a dictionary.

Safely handles cases where tuple inner-components may have been converted to lists (e.g., from JSON deserialization).

Parameters

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

Returns

SparseOccupationOperators – A newly initialized instance of the class.

Was this useful?