magnopy.Energy.E_corr#

method

Energy.E_corr(spin_directions, units='mev', _normalize=True) float[source]#

Computes quantum correction to the classical energy of the spin Hamiltonian.

See eq. S.26 in supplementary material of paper about Magnopy.

Parameters:
spin_directions(M, 3) array-like

Directions of spin vectors. Only directions of vectors are used, modulus is ignored. M is the amount of magnetic atoms in the Hamiltonian. The order of spin directions is the same as the order of magnetic atoms in spinham.magnetic_atoms.spins.

unitsstr, default "meV"

Added in version 0.3.0.

Units of energy. See Energy for the full list of supported units.