Published December 20, 2025 | Journal article | Version v1 | https://doi.org/10.21105/joss.08138

Sunny.jl: A Julia Package for Spin Dynamics

  • 1. Neutron Scattering Division, Oak Ridge National Laboratory, United States of America
  • 2. Department of Physics and Astronomy, University of Tennessee, United States of America
  • 3. Theoretical Division and CNLS, Los Alamos National Laboratory, United States of America
  • 4. Kodiak Robotics, United States of America
  • 5. School of Physics, Georgia Institute of Technology, United States of America
  • 6. Department of Physics and Astronomy, University of California, Los Angeles, United States of America
  • 7. Department of Physics and Astronomy, Louisiana State University, United States of America
  • 8. X-Computational Physics Division, Los Alamos National Laboratory, United States of America
  • 9. Computer Science and Mathematics Division, Oak Ridge National Laboratory, United States of America
  • 10. Institute for Advanced Materials and Manufacturing, Unversity of Tennessee, United States of America
  • 11. Center for Correlated Matter and School of Physics, Zhejiang University, People's Republic of China
  • 12. Department of Physics and Astronomy, University of Manchester, United Kingdom
  • 13. The University of Manchester at Harwell, University of Manchester, United Kindom
  • 14. School of Physics and Astronomy, University of St Andrews, United Kingdom
  • 15. Computer, Computational, and Statistical Sciences Division, Los Alamos National Laboratory, United States of America

Files

joss.08138.pdf

Files (2.4 MB)

Name Size Download all
md5:f991384e5d26fe772c694f4d84daabba
1.4 MB Preview Download
md5:1ee0222b37cf69289b57b23d5268f638
950.9 kB Preview Download

Additional details

Dates

Issued
December 20, 2025

References

  1. Dahlbom, D., Zhang, H., Miles, C., Quinn, S., Niraula, A., Thipe, B., Wilson, M., Matin, S., Mankad, H., Sagar Ramchandani, Giordano, M., Hahn, S., Pajerowski, D., Johnston, S., Wang, Z., Lane, H., Li, Y. W., Bai, X., Mourigal, M., … Barros, K. (2025). Sunny.jl: A Julia Package for Spin Dynamics (Version v0.8.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.17772178
  2. Barros, K., Dahlbom, D. A., Miles, C., Quinn, S., Zhang, H., Wilson, M., Thipe, B., Lane, H., Niraula, A., Bai, X., Matin, S., Giordano, M., Hahn, S., & others. (2025). Sunny.jl. In GitHub repository. GitHub. https://doi.org/10.5281/zenodo.11363938
  3. K Mogensen, P., & N Riseth, A. (2018). Optim: A mathematical optimization package for Julia. Journal of Open Source Software, 3(24), 615. https://doi.org/10.21105/joss.00615
  4. Wang, F., & Landau, D. P. (2001). Efficient, Multiple-Range Random Walk Algorithm to Calculate the Density of States. Physical Review Letters, 86(10), 2050–2053. https://doi.org/10.1103/physrevlett.86.2050
  5. Swendsen, R. H., & Wang, J.-S. (1986). Replica Monte Carlo Simulation of Spin-Glasses. Physical Review Letters, 57(21), 2607–2609. https://doi.org/10.1103/physrevlett.57.2607
  6. Danisch, S., & Krumbiegel, J. (2021). Makie.jl: Flexible high-performance data visualization for Julia. Journal of Open Source Software, 6(65), 3349. https://doi.org/10.21105/joss.03349
  7. Zhang, H., & Batista, C. D. (2021). Classical spin dynamics based on SU(N) coherent states. Physical Review B, 104(10). https://doi.org/10.1103/physrevb.104.104409
  8. Dahlbom, D., Zhang, H., Miles, C., Bai, X., Batista, C. D., & Barros, K. (2022). Geometric integration of classical spin dynamics via a mean-field Schrödinger equation. Physical Review B, 106(5). https://doi.org/10.1103/physrevb.106.054423
  9. Dahlbom, D., Miles, C., Zhang, H., Batista, C. D., & Barros, K. (2022). Langevin dynamics of generalized spins as SU( N ) coherent states. Physical Review B, 106(23). https://doi.org/10.1103/physrevb.106.235154
  10. Dahlbom, D. A., Zhang, H., Laraib, Z., Pajerowski, D. M., Barros, K., & Batista, C. D. (2025). Renormalized classical theory of quantum magnets. Physical Review B, 112(13). https://doi.org/10.1103/x7c2-x8p6
  11. Dahlbom, D., Brooks, F. T., Wilson, M. S., Chi, S., Kolesnikov, A. I., Stone, M. B., Cao, H., Li, Y.-W., Barros, K., Mourigal, M., Batista, C. D., & Bai, X. (2024). Quantum-to-classical crossover in generalized spin systems: Temperature-dependent spin dynamics of FeI2. Physical Review B, 109(1), Article 014427. https://doi.org/10.1103/physrevb.109.014427
  12. Dahlbom, D. A., Thomas, J., Johnston, S., Barros, K., & Batista, C. D. (2024). Classical dynamics of the antiferromagnetic Heisenberg S=12 spin ladder. Physical Review B, 110(10). https://doi.org/10.1103/physrevb.110.104403
  13. Lane, H., Zhang, H., Dahlbom, D., Quinn, S., Somma, R., Mourigal, M., Batista, C. D., & Barros, K. (2024). Kernel polynomial method for linear spin wave theory. SciPost Physics, 17(5), Article 145. https://doi.org/10.21468/scipostphys.17.5.145
  14. Muniz, R. A., Kato, Y., & Batista, C. D. (2014). Generalized spin-wave theory: Application to the bilinear-biquadratic model. Progress of Theoretical and Experimental Physics, 2014(8), 83I01–0. https://doi.org/10.1093/ptep/ptu109
  15. Legros, A., Zhang, S.-S., Bai, X., Zhang, H., Dun, Z., Phelan, W. A., Batista, C. D., Mourigal, M., & Armitage, N. P. (2021). Observation of 4- and 6-Magnon Bound States in the Spin-Anisotropic Frustrated Antiferromagnet FeI2. Physical Review Letters, 127(26), Article 267201. https://doi.org/10.1103/physrevlett.127.267201
  16. Bai, X., Zhang, S.-S., Dun, Z., Zhang, H., Huang, Q., Zhou, H., Stone, M. B., Kolesnikov, A. I., Ye, F., Batista, C. D., & Mourigal, M. (2021). Hybridized quadrupolar excitations in the spin-anisotropic frustrated magnet FeI2. Nature Physics, 17(4), 467–472. https://doi.org/10.1038/s41567-020-01110-1
  17. Lee, M., Schönemann, R., Zhang, H., Dahlbom, D., Jang, T.-H., Do, S.-H., Christianson, A. D., Cheong, S.-W., Park, J.-H., Brosha, E., Jaime, M., Barros, K., Batista, C. D., & Zapf, V. S. (2023). Field-induced spin level crossings within a quasi- XY antiferromagnetic state in Ba2FeSi2O7. Physical Review B, 107(14), Article 144427. https://doi.org/10.1103/physrevb.107.144427
  18. Zhang, H., Wang, Z., Dahlbom, D., Barros, K., & Batista, C. D. (2023). CP2 skyrmions and skyrmion crystals in realistic quantum magnets. Nature Communications, 14(1), Article 3626. https://doi.org/10.1038/s41467-023-39232-8
  19. Do, S.-H., Zhang, H., Dahlbom, D. A., Williams, T. J., Garlea, V. O., Hong, T., Jang, T.-H., Cheong, S.-W., Park, J.-H., Barros, K., Batista, C. D., & Christianson, A. D. (2023). Understanding temperature-dependent SU(3) spin dynamics in the S = 1 antiferromagnet Ba2FeSi2O7. Npj Quantum Materials, 8(1). https://doi.org/10.1038/s41535-022-00526-7
  20. Bai, X., Zhang, S.-S., Zhang, H., Dun, Z., Phelan, W. A., Garlea, V. O., Mourigal, M., & Batista, C. D. (2023). Instabilities of heavy magnons in an anisotropic magnet. Nature Communications, 14(1). https://doi.org/10.1038/s41467-023-39940-1
  21. Kim, C., Kim, S., Park, P., Kim, T., Jeong, J., Ohira-Kawamura, S., Murai, N., Nakajima, K., Chernyshev, A. L., Mourigal, M., Kim, S.-J., & Park, J.-G. (2023). Bond-dependent anisotropy and magnon decay in cobalt-based Kitaev triangular antiferromagnet. Nature Physics, 19(11), 1624–1629. https://doi.org/10.1038/s41567-023-02180-7
  22. Paddison, J. A. M., Zhang, H., Yan, J., Cliffe, M. J., McGuire, M. A., Do, S.-H., Gao, S., Stone, M. B., Dahlbom, D., Barros, K., Batista, C. D., & Christianson, A. D. (2024). Cubic double perovskites host noncoplanar spin textures. Npj Quantum Materials, 9(1). https://doi.org/10.1038/s41535-024-00650-6
  23. Scheie, A., Park, P., Villanova, J. W., Granroth, G. E., Sarkis, C. L., Zhang, H., Stone, M. B., Park, J.-G., Okamoto, S., Berlijn, T., & Tennant, D. A. (2023). Spin wave Hamiltonian and anomalous scattering in NiPS 3 . Physical Review B, 108(10), Article 104402. https://doi.org/10.1103/physrevb.108.104402
  24. Park, P., Cho, W., Kim, C., An, Y., Kang, Y.-G., Avdeev, M., Sibille, R., Iida, K., Kajimoto, R., Lee, K. H., Ju, W., Cho, E.-J., Noh, H.-J., Han, M. J., Zhang, S.-S., Batista, C. D., & Park, J.-G. (2023). Tetrahedral triple-Q magnetic ordering and large spontaneous Hall conductivity in the metallic triangular antiferromagnet Co1/3TaS2. Nature Communications, 14(1), Article 8346. https://doi.org/10.1038/s41467-023-43853-4
  25. Nagl, J., Flavián, D., Hayashida, S., Povarov, K. Y., Yan, M., Murai, N., Ohira-Kawamura, S., Simutis, G., Hicken, T. J., Luetkens, H., Baines, C., Hauspurg, A., Schwarze, B. V., Husstedt, F., Pomjakushin, V., Fennell, T., Yan, Z., Gvasaliya, S., & Zheludev, A. (2024). Excitation spectrum and spin Hamiltonian of the frustrated quantum Ising magnet Pr3BWO9. Physical Review Research, 6(2). https://doi.org/10.1103/physrevresearch.6.023267

1–25 of 45

Citations

  1. Zhuo, W., Xie, M., Häußler, E., Doert, T., Kulbakov, A. A., Ollivier, J., Ji, J., Jin, F., Inosov, D. S., Wilson, S. D., Ma, J., Zhang, Z., & Zhang, Q. (2026). Evolution of magnetic interactions across triangular-lattice Ce-based chalcogenides. Science China Physics, Mechanics & Astronomy, 69(12), Article 127411. https://doi.org/10.1007/s11433-026-3081-4
  2. León, A. M., Torreblanca, M. F., Autieri, C., & González, J. W. (2026). Chiral magnons and cycloidal phonons in altermagnetic CuF2 monolayer. Materials Today Physics, 69, Article 102295. https://doi.org/10.1016/j.mtphys.2026.102295
  3. Xu, S., & Dai, P. (2026). Resolving magnetic order and dynamics with polarized neutron scattering: a practical guide to longitudinal polarization analysis. Neutron Science, Article 100003. https://doi.org/10.1016/j.neusci.2026.100003
  4. Kirstein, E., Park, P., Cho, W., Batista, C. D., Park, J.-G., & Crooker, S. A. (2026). Tunable chiral and nematic states in the triple-Q antiferromagnet Co1/3TaS2. Nature Communications, 17(1), Article 2212. https://doi.org/10.1038/s41467-026-68843-0
  5. Shen, X., Tang, C., Liu, C., Stroppa, A., & Ren, W. (2026). Prediction and tuning of altermagnetic magnon splitting in RFeO3: non-relativistic and relativistic perspectives. Npj Computational Materials, 12(1). https://doi.org/10.1038/s41524-026-02129-3
  6. Konieczna, A. A., Möller, M., Stavropoulos, P. P., & Valentí, R. (2026). Revealing the microscopic origin of the magnetization plateau in Na3Ni2BiO6. Npj Quantum Materials, 11(1), Article 67. https://doi.org/10.1038/s41535-026-00932-1
  7. Liurukara, D. S., Williams, E. D., Chen, T., Calder, S., Garlea, V. O., Buchanan, C. C., Gilbert, D. A., Kolis, J. W., & Tennant, D. A. (2026). A new layered kagome strip structure Na 2 Co 3 (AsO 4 ) 2 (OH) 2 : static and dynamic magnetic properties. Materials Chemistry Frontiers. https://doi.org/10.1039/d5qm00922g
  8. Ratcliff II, W. (2026). Accelerating quantum materials characterization: hybrid active learning for autonomous spin wave spectroscopy. Digital Discovery, 5(8), 3256–3274. https://doi.org/10.1039/d6dd00232c
  9. Pajerowski, D. M., Dahlbom, D. A., Kolesnikov, A. I., Phelan, D., & Li, Y. (2026). 6 H -perovskite dimer lattice with antiferromagnetic interactions: Ba 3 Zn 1 − x Ca x Ru 2 O 9 . Physical Review B, 113(2). https://doi.org/10.1103/2gn4-b9mz
  10. Khoroshiy, I. N., Podlesnyak, A., Menzel, D., Rahn, M. C., Inosov, D. S., Sukhanov, A. S., & Nikitin, S. E. (2026). Anisotropy of spin waves in the field-polarized phase of Fe-doped MnSi. Physical Review B, 114(15). https://doi.org/10.1103/4y5x-mrl7
  11. Hu, S., Li, Z., Qiao, L., Zhang, Y., Zhang, Z., & Liu, Y. (2026). Magnonic properties of hematite α- Fe 2 O 3 : A combined ab initio and atomistic spin dynamics study. Physical Review B, 113(21). https://doi.org/10.1103/c15n-vl24
  12. Cho, W., Park, P., Kim, C., An, Y., Iida, K., Kajimoto, R., Matin, S., Sibille, R., Crooker, S. A., & Park, J.-G. (2026). 3 Q magnetic order with spatially alternating spin scalar chirality in overdoped C o 0.336 Ta S 2 . Physical Review B, 113(17). https://doi.org/10.1103/d2yy-ntns
  13. Nabi, S. D., Ressouche, E., Mazzone, D. G., Lass, J., Sibille, R., Yan, Z., Gvasaliya, S., & Zheludev, A. (2026). Field evolution of the magnetic structure and spin Hamiltonian in Cs 2 RuO 4 . Physical Review B, 114(8). https://doi.org/10.1103/n8rr-rgfv
  14. Keselman, A., Xu, X., Zhang, H., Batista, C. D., & Starykh, O. A. (2026). Magnetization Plateaux as a Roadmap to Quantum Spin Liquids. Physical Review Letters, 137(11), Article 116702. https://doi.org/10.1103/tkpx-sq6n
  15. Cho, W., Nam, K., An, Y., Kim, Y. Y., Jung, M.-H., Kim, K. H., & Park, J.-G. (2026). Composition-dependent bulk properties in intercalated transition metal dichalcogenides C o 1 / 3 ( 1 ± δ ) Nb S 2 . Physical Review B, 114(13). https://doi.org/10.1103/vl26-p4lg
  16. Xu, H., Cheng, S., Shangguan, Y., Bao, S., Liao, J., Zhang, B., Song, Z., Dong, S., Wu, M., Itoh, S., Ueta, D., & Wen, J. (2026). Negligible Kitaev interaction in the van der Waals antiferromagnet NiBr 2 revealed by neutron spectroscopy. Physical Review B, 114(26), Article 264402. https://doi.org/10.1103/xpcs-4726
  17. Cederholm, J. J., Piovano, A., Ivanov, A., Klotz, S., Hiess, A., Hansen, U. B., Pomjakushina, E., Zayed, M. E., Fogh, E., & Rønnow, H. M. (2026). Spin excitations near the pressure-induced antiferromagnetic transition in SrCu 2 (BO 3 ) 2. Journal of Applied Crystallography, 59(3), 804–808. https://doi.org/10.1107/s1600576726003705
  18. Gao, B., Chen, T., Liu, C., Klemm, M. L., Zhang, S., Ma, Z., Xu, X., Won, C., McCandless, G. T., Rao, K., Murai, N., Ohira-Kawamura, S., Moxim, S. J., Ryan, J. T., Huang, X., Wang, X., Le, M. D., Morosan, E., Chan, J. Y., … Dai, P. (2026). Spin excitation continuum from degenerate states in the mixed ferro-antiferromagnetic exchange system CeMgAl 11 O 19. Science Advances, 12(10), Article eaed7778. https://doi.org/10.1126/sciadv.aed7778
  19. Ding, Z., Xie, Y., Wang, S., Chen, X., Wang, Z., Lin, Z., Wang, E., Wu, X., Yang, M., Xiong, Y., Meng, M., Yang, F., Zhang, J., Qiu, X., Liu, X., & Guo, J. (2025). An Emergent Chiral Spin Crystal Phase in (111) SrRuO 3 Thin Films. ACS Nano, 20(1), 603–611. https://doi.org/10.1021/acsnano.5c14252