MagneticKP: A package for quickly constructing $\boldsymbol{k}\cdot\boldsymbol{p}$ models of magnetic and non-magnetic crystals
Official code: zhangzeyingvv/MagneticKP (20 stars, Wolfram Language, GPL-3.0, last commit 2026-08-25).
Abstract
We propose an efficient algorithm to construct $\boldsymbol{k}\cdot \boldsymbol{p}$ effective Hamiltonians, which is much faster than the previously proposed algorithms. This algorithm is implemented in MagneticKP package.
Show full abstractHide
The package applies to both single-valued (spinless) and double-valued (spinful) cases, and it works for both magnetic and nonmagnetic systems. By interfacing with SpaceGroupIrep or MSGCorep packages, it can directly output the $\boldsymbol{k}\cdot \boldsymbol{p}$ Hamiltonian around arbitrary momentum and expanded to arbitrary order in $k$.