You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out to be more complicated than I expected, since the keys method would need to return a Rust object that, for example, knows how to compare correctly to Python objects.
If PyO3/pyo3#991 is implemented, then we could simply inherit from the Python Mapping abstract base class.
FermionOperator acts as a dictionary mapping keys to values. It should have
keys
,values
, anditems
methods.The text was updated successfully, but these errors were encountered: