Release:

0.6.2

Date:

9 November 2026

Useful links: Issue Tracker | Cite | User support | Tutorials

Hint

We recommend installing Magnopy with optional dependencies (Plotly and matplotlib) wherever 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 cannot 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

\[\begin{split}\mathcal{H} &= E^{(0)} + E^{(2)} + \sum_{\beta} \sum_{\boldsymbol{k}} \omega_{\beta}(\boldsymbol{k}) \Biggl( b^{\dagger}_{\beta}(\boldsymbol{k})b_{\beta}(\boldsymbol{k}) + \dfrac{1}{2} \Biggr) + \dots =\\ &= E^{(0)} + \sum_{\boldsymbol{k}} \boldsymbol{\mathcal{B}}^{\dagger}(\boldsymbol{k}) \boldsymbol{\mathcal{E}}(\boldsymbol{k}) \boldsymbol{\mathcal{B}}(\boldsymbol{k}) + \dots\end{split}\]

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 the 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?#

How to support Magnopy?#

Magnopy is a relatively young code and we would highly appreciate your support.

  • If you use and like Magnopy, give it a star on GitHub.

  • 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).

License#

The source code of Magnopy is licensed under the GNU General Public License (GPL-3.0). See the "LICENSE" file in the Magnopy repository.

In addition, if you use Magnopy in a scientific publication, cite the preprint available at arxiv.org/abs/2611.06833.

Rybakov, A.  and Marino, M. and Blanter, Y. M. and Coronado, E. and Ferrer, J, 2026.
Quantum Spin Wave Theory with Multi-Spin Interactions for Magnetic Materials Modeling.
Preprint available at https://arxiv.org/abs/2611.06833
@misc{magnopy-preprint,
    doi = {10.48550/ARXIV.2611.06833},
    url = {https://arxiv.org/abs/2611.06833},
    author = {Rybakov,  Andrey and Marino,  Marco and Blanter,  Yaroslav M. and Coronado,  Eugenio and Ferrer,  Jaime},
    keywords = {Other Condensed Matter (cond-mat.other),  Computational Physics (physics.comp-ph),  FOS: Physical sciences},
    title = {Quantum Spin Wave Theory with Multi-Spin Interactions for Magnetic Materials Modeling},
    publisher = {arXiv},
    year = {2026},
}

For the detailed guide on how to cite the papers on which Magnopy depends see Citation guide.