magnopy.SpinHamiltonian.units#
property
- property SpinHamiltonian.units: str#
Units of the Hamiltonian's parameters.
Added in version 0.3.0.
The parameters of the Hamiltonian are stored in some units of energy (or energy-like).
When user adds a parameters to the Hamiltonian (i. e.
SpinHamiltonian.add_21(), ...) theparameterargument is understood to be given in the units ofSpinHamiltonian.units.By default the Hamiltonian stores and expects parameters in "meV", but the user can choose out of the list of the supported units. See Units of Hamiltonian's parameters for the full list of supported units.
When Hamiltonian already has some parameters in it, then the change of
SpinHamiltonian.unitswill convert all parameter to the new units. The parameters that the user tries to add afterwards are expected to be in the new units already.- Returns:
- unitsstr
See also