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
you make its form and terms inconsistent.
I would say, in general, that terms should not have a setter since it is computed starting from the form and I would rather make it a @cached_property probably. At the moment the main reason why it is there, I believe, is beacuse it makes it easier to compose hamiltonians through the __add__ operator for instance, without the need to recompute the terms.
The text was updated successfully, but these errors were encountered:
SymbolicHamiltonian
provides a setter forterms
that do not take care of updating the form.This means that by doing the following for instance:
you make its
form
andterms
inconsistent.I would say, in general, that
terms
should not have a setter since it is computed starting from theform
and I would rather make it a@cached_property
probably. At the moment the main reason why it is there, I believe, is beacuse it makes it easier to compose hamiltonians through the__add__
operator for instance, without the need to recompute the terms.The text was updated successfully, but these errors were encountered: