- Release:
0.5.3
- Date:
25 May 2026
Useful links: Issue Tracker | Cite | User support | Tutorials
Hint
We recommend to install Magnopy with optional dependencies (Plotly and matplotlib) whether possible.
pip install "magnopy[visual]"
as then Magnopy produces graphical output (.html and .png files) in addition to the .txt files with the source data.
However, if you can not install either Plotly or matplotlib, then all functions of Magnopy are still available. Visualization would be the only missing part.
What is Magnopy?#
Magnopy is a python code that, given spin Hamiltonian in any convention, computes bosonic (magnon) Hamiltonian of the form
where
\(E^{(0)}\) is a classical energy of the vacuum state;
\(E^{(2)}\) is a part of the quantum correction to the energy of the vacuum state that arises at the level of linear spin wave theory (LSWT);
\(\omega_{\alpha}(\boldsymbol{k})\) is magnon dispersion relation derived at the level of LSWT;
In addition to the LSWT Hamiltonian, Magnopy is capable of computing full quantum correction to the classical energy of the vacuum state, \(E^{corr}\), that is not limited to the LSWT level and is exact.
What can it do?#
Computes all terms of the magnon Hamiltonian from above.
Supports spin Hamiltonian in any convention.
Supports a number of physical units both for Hamiltonian's parameters and for the output quantities.
Minimizes classical energy as a function of the spin directions.
Visualizes spin Hamiltonian (experimental)
How to support Magnopy?#
Magnopy is a relatively young code and we would highly appreciate your support.
If you use and like Magnopy, please give it a star on GitHub.
Please give feedback on your experience with Magnopy (see User support page).
If you use Magnopy in your research, cite it (see How to cite? page).