Engineering Papers⌕ Search

DOE OSTI · 3010640

Sunny.jl: A Julia Package for Spin Dynamics

Dahlbom, David [Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States); Univ. of Tennessee, Knoxville, TN (United States)] (ORCID:0000000202215086)·Zhang, Hao [Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)] (ORCID:0000000297999118)·Miles, Cole [Kodiak Robotics, Mountain View, CA (United States)] (ORCID:0000000255814226)·Quinn, Sam [Georgia Institute of Technology, Atlanta, GA (United States); Univ. of California, Los Angeles, CA (United States)] (ORCID:0000000250433934)·Niraula, Alin [Louisiana State Univ., Baton Rouge, LA (United States)] (ORCID:0009000241390140)·Thipe, Bhushan [Louisiana State Univ., Baton Rouge, LA (United States)] (ORCID:0009000133190627)·Wilson, Matthew [Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)] (ORCID:0000000322983477)·Matin, Sakib [Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)] (ORCID:0000000151662838)·Mankad, Het [Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)] (ORCID:000000034339599X)·Hahn, Steven [Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)] (ORCID:0000000220187904)·Pajerowski, Daniel M. [Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)] (ORCID:0000000338902379)·Johnston, Steve [Univ. of Tennessee, Knoxville, TN (United States)] (ORCID:0000000223430113)·Wang, Zhentao [Zhejiang Univ., Hangzhou (China)] (ORCID:0000000174422933)·Lane, Harry [Univ. of Manchester (United Kingdom); Univ. of Manchester, Harwell (United Kingdom); Univ. of St. Andrews, Scotland (United Kingdom)] (ORCID:0009000503914750)·Li, Ying Wai [Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)] (ORCID:0000000301248262)·Bai, Xiaojian [Louisiana State Univ., Baton Rouge, LA (United States)] (ORCID:000000023974626X)·Mourigal, Martin [Georgia Institute of Technology, Atlanta, GA (United States)] (ORCID:0000000327728440)·Batista, Cristian D. [Univ. of Tennessee, Knoxville, TN (United States)] (ORCID:0000000316673667)·Barros, Kipton [Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)] (ORCID:0000000213335972)

Abstract

Sunny is a Julia package designed to serve the needs of the quantum magnetism community. It supports the specification of a very broad class of spin models and a diverse suite of numerical solvers. These include powerful methods for simulating spin dynamics both in and out of equilibrium. Uniquely, it features a broad generalization of classical and semiclassical approaches to SU(N) coherent states, which is useful for studying systems exhibiting strong spin-orbit coupling or local entanglement effects. Sunny also offers a well-developed framework for calculating the dynamical spin structure factor, enabling direct comparison with scattering experiments. Ease of use is a priority, with tools for symmetry-guided modeling and interactive visualization.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Dahlbom, David [Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States); Univ. of Tennessee, Knoxville, TN (United States)] (ORCID:0000000202215086), Zhang, Hao [Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)] (ORCID:0000000297999118), Miles, Cole [Kodiak Robotics, Mountain View, CA (United States)] (ORCID:0000000255814226), Quinn, Sam [Georgia Institute of Technology, Atlanta, GA (United States); Univ. of California, Los Angeles, CA (United States)] (ORCID:0000000250433934), Niraula, Alin [Louisiana State Univ., Baton Rouge, LA (United States)] (ORCID:0009000241390140), Thipe, Bhushan [Louisiana State Univ., Baton Rouge, LA (United States)] (ORCID:0009000133190627), Wilson, Matthew [Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)] (ORCID:0000000322983477), Matin, Sakib [Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)] (ORCID:0000000151662838), Mankad, Het [Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)] (ORCID:000000034339599X), Hahn, Steven [Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)] (ORCID:0000000220187904), Pajerowski, Daniel M. [Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)] (ORCID:0000000338902379), Johnston, Steve [Univ. of Tennessee, Knoxville, TN (United States)] (ORCID:0000000223430113), Wang, Zhentao [Zhejiang Univ., Hangzhou (China)] (ORCID:0000000174422933), Lane, Harry [Univ. of Manchester (United Kingdom); Univ. of Manchester, Harwell (United Kingdom); Univ. of St. Andrews, Scotland (United Kingdom)] (ORCID:0009000503914750), Li, Ying Wai [Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)] (ORCID:0000000301248262), Bai, Xiaojian [Louisiana State Univ., Baton Rouge, LA (United States)] (ORCID:000000023974626X), Mourigal, Martin [Georgia Institute of Technology, Atlanta, GA (United States)] (ORCID:0000000327728440), Batista, Cristian D. [Univ. of Tennessee, Knoxville, TN (United States)] (ORCID:0000000316673667), Barros, Kipton [Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)] (ORCID:0000000213335972). 2025-12-20. Sunny.jl: A Julia Package for Spin Dynamics. https://doi.org/10.21105/joss.08138

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related reports

TANTE: Time-adaptive operator learning via neural Taylor expansion

Operator learning for time-dependent partial differential equations (PDEs) has seen rapid progress in recent years, enabling efficient approximation of complex spatiotemporal dynamics. However, most existing methods rely on fixed time step sizes during rollout, which limits their ability to adapt to varying temporal complexity and often leads to error accumulation. In this work, we propose the Time-Adaptive Transformer with Neural Taylor Expansion (TANTE), a novel operator-learning framework that produces continuous-time predictions with adaptive step sizes. TANTE predicts future states by performing a Taylor expansion at the current state, where neural networks learn both the higher-order temporal derivatives and the local radius of convergence. This allows the model to dynamically adjust its rollout based on the local behavior of the solution, thereby reducing cumulative error and improving computational efficiency. We demonstrate the effectiveness of TANTE across a wide range of PDE benchmarks, achieving superior accuracy and adaptability compared to fixed-step baselines, delivering accuracy gains of 60-80 % and speed-ups of 30-40 % at inference time.

97 MATHEMATICS AND COMPUTING↗

Structured illumination for surface-resolved grazing-incidence X-ray scattering

Grazing-incidence (GI) scattering techniques are widely used to characterize thin films, offering high surface sensitivity and insight into morphology and structure. However, these approaches typically provide statistical averaged information due to elongated footprint or limited spatial resolution due to beam size. Here we introduce a method that combines structured illumination with GI X-ray scattering and leverages our computational imaging approach to resolve local structural details. We demonstrate that our method captures local features of an organic semiconductor thin film without the need for sample rotation as in tomography. The method expands GI techniques from statistical averaging to high-resolution imaging, thereby providing the capability for detailed analysis of local material properties, such as domain shape, orientation and polymorphism, which are critical for advancing material design towards more efficient and tailored materials.

97 MATHEMATICS AND COMPUTING↗