⬇ Download Markdown · ⬇ Download LaTeX · ⬇ original · view original · CSV: table 1
Claude-SpinDynamics: a cross-platform, dual-precision CPU/GPU micromagnetic simulator with native mumax3 script compatibility
arXiv:2608.15253v1 [cond-mat.mtrl-sci] 15 Aug 2026
Abstract
Introduction
Results
A cross-platform, dual-precision, CPU-and-GPU architecture
layer stacks), rather than user-scripted approximations. Release GPU binaries embed kernels
for compute capabilities 7.5–12.0 (Turing through Blackwell) plus forward-compatible PTX,
and prebuilt Windows packages (CPU and multi-architecture GPU) require no local build at all
(Code availability).
Validation against the µMAG standard problems
Exact agreement with mumax3 under matched conditions, and native .mx3 script execution
A showcase of representative examples
Ferromagnetic resonance of a confined island (NB13, NB48). Broadband FMR is a
Skyrmion D–K phase diagram under matched dynamics (NB21). A seeded Néel
Replica-batched examples (NB30–32; see Fig. 11, Fig. 12 below). The remaining two
Replica-batched examples (NB30–32; see Fig. 11, Fig. 12 below). The remaining two
examples — thermally-assisted STT switching statistics and the MTJ mesh-convergence study
— exercise the replica-batched engine described below and have no direct mumax3 counterpart,
since batched-ensemble execution is a Claude-SD capability rather than a shared benchmark;
they are validated instead against analytic theory (finite-window N´eel–Brown) and against them-
selves across mesh refinement. We present them together with the replica-batching architecture
in the next subsection rather than duplicating the figures here.
Two further cross-code examples — current-driven domain-wall motion and Walker break-
down, and N´eel-skyrmion DMI edge canting — are presented in the Supplementary Information
with the same level of detail; both show the same pattern of close Claude-SD/mumax3 agreement
once conventions and solver classes are matched.
Capability and performance: a four-solver comparison
A replica-batched engine for finite-temperature ensembles
transition consistent with nucleation-mediated reversal rather than coherent rotation — physics
invisible to the macrospin approximation.
Open availability: examples, notebooks, and documentation
The complete source, unit tests, and benchmark harness are distributed under the GPLv3 license
(Code availability). Beyond the library itself, the repository ships 51 runnable Python example
notebooks spanning every µMAG standard problem, ferromagnetic resonance, spin-wave disper-
sion, domain-wall motion, skyrmion nucleation and phase diagrams, Walker breakdown, spin–
orbit-torque switching, and the finite-temperature replica-batching studies reported above; 9
further API examples (including a ParaView-visualization gallery); and 18 .mx3 scripts runnable
both on mumax3 and on Claude-SD’s own engine (6 general-purpose examples in examples/mx3/
plus 12 used to drive this paper’s cross-code showcase figures, notebooks/mx3/). A 1200-line
user guide documents the full Python API, GPU per-cell field interface, integrator-selection
guidance, and a mumax3-to-Claude-SD conversion appendix, so a reader can reproduce every
figure in this paper, or start a new study, without reading the C++ source.
Discussion
Methods
Physics and discretization
GPU implementation
Integrators
Replica batching
Benchmark protocol
Software availability and reproducibility
The use of AI-assisted coding tools in developing Claude-SD is disclosed in accordance with the
Nature Portfolio policy on large language models: the authors specified the architecture, physics
conventions, and acceptance tests, reviewed every change, and take full responsibility for the
code and this manuscript; no LLM is listed as an author. Build presets, environment, exact
commands, and per-scenario grids are in the Supplementary Information; the full benchmark is
scripted end-to-end and regenerates all tables and figures from a single command.
Data availability
All data supporting the findings of this study — benchmark records (benchmarks/results/
all_solvers.json), µMAG validation outputs, and the scripts that regenerate every table
and figure — are available in the code repository at https://github.com/mirryou-maker/
Claude-SpinDynamics and will be archived on Zenodo with a DOI upon publication.
Code availability
The complete source code of Claude-SD, including the CPU reference implementations, CUDA
kernels, unit tests, and the four-solver benchmark harness, is available under the GPLv3 license
at https://github.com/mirryou-maker/Claude-SpinDynamics (archived on Zenodo; citation
metadata in CITATION.cff). Prebuilt Windows binaries (CPU and multi-architecture GPU
packages, requiring no local build) are provided via GitHub Releases; a 1200-line user guide
(docs/USER GUIDE.md) documents the full API. Beyond the figures shown in this paper and its
Supplementary Information, the same GitHub repository ships substantially more worked exam-
ples than are reproduced here: 51 runnable Python notebooks under notebooks/ (catalogued
in Supplementary Table S8 and in notebooks/GALLERY.md, covering every µMAG standard
problem, FMR, spin-wave dispersion, domain-wall and skyrmion dynamics, Walker breakdown,
spin–orbit-torque switching, and the replica-batched finite-temperature studies), 9 further API
examples, and 18 .mx3 scripts runnable unmodified on either Claude-SD or mumax3 (6 general-
purpose plus 12 driving this paper’s own showcase figures); every one of them regenerates its
own figure(s) against the current build and is a starting point for further exploration.
References
[1] Landau, L. D. & Lifshitz, E. M. On the theory of the dispersion of magnetic permeability in ferromagnetic
bodies. Phys. Z. Sowjetunion 8, 153–169 (1935).
[2] Gilbert, T. L. A phenomenological theory of damping in ferromagnetic materials. IEEE Trans. Magn. 40,
3443–3449 (2004).
[3] Brown, W. F., Jr. Micromagnetics (Interscience, New York, 1963).
[4] Dieny, B. & Chshiev, M. Perpendicular magnetic anisotropy at transition metal/oxide interfaces and appli-
cations. Rev. Mod. Phys. 89, 025008 (2017).
11
[5] Ralph, D. C. & Stiles, M. D. Spin transfer torques. J. Magn. Magn. Mater. 320, 1190–1216 (2008).
[6] Manchon, A. et al. Current-induced spin–orbit torques in ferromagnetic and antiferromagnetic systems. Rev.
Mod. Phys. 91, 035004 (2019).
[7] Parkin, S. S. P., Hayashi, M. & Thomas, L. Magnetic domain-wall racetrack memory. Science 320, 190–194
(2008).
[8] Fert, A., Reyren, N. & Cros, V. Magnetic skyrmions: advances in physics and potential applications. Nat.
Rev. Mater. 2, 17031 (2017).
[9] Mu¨hlbauer, S. et al. Skyrmion lattice in a chiral magnet. Science 323, 915–919 (2009).
[10] Sampaio, J., Cros, V., Rohart, S., Thiaville, A. & Fert, A. Nucleation, stability and current-induced motion
of isolated magnetic skyrmions in nanostructures. Nat. Nanotechnol. 8, 839–844 (2013).
[11] Fidler, J. & Schrefl, T. Micromagnetic modelling — the current state of the art. J. Phys. D: Appl. Phys.
33, R135–R156 (2000).
[12] Miltat, J. E. & Donahue, M. J. Numerical micromagnetics: finite difference methods. In Handbook of
Magnetism and Advanced Magnetic Materials Vol. 2 (Wiley, 2007).
[13] Abert, C. Micromagnetics and spintronics: models and numerical methods. Eur. Phys. J. B 92, 120 (2019).
[14] Leliaert, J. & Mulkers, J. Tomorrow’s micromagnetic simulations. J. Appl. Phys. 125, 180901 (2019).
[15] Donahue, M. J. & Porter, D. G. OOMMF User’s Guide, Version 1.0. Interagency Report NISTIR 6376
(NIST, Gaithersburg, 1999).
[16] Vansteenkiste, A. et al. The design and verification of MuMax3. AIP Adv. 4, 107133 (2014).
3
[17] Leliaert, J. et al. Fast micromagnetic simulations on GPU — recent advances made with mumax . J. Phys.
D: Appl. Phys. 51, 123002 (2018).
+
[18] Moreels, L., Lateur, I., De Gusem, D. et al. mumax : extensible GPU-accelerated micromagnetics and
beyond. npj Comput. Mater. 12, 71 (2026). https://doi.org/10.1038/s41524-025-01893-y
[19] You, C.-Y. Optimization of MuMax3 by using Claude Code: a CUDA-graph-based case study in AI-assisted
performance engineering. J. Magn. 31, 204 (2026). https://doi.org/10.4283/JMAG.2026.31.2.204
[20] Bruckner, F., Koraltan, S., Abert, C. & Suess, D. magnum.np: a PyTorch-based GPU-enhanced finite-
difference micromagnetic simulation framework for high-level development and inverse design. Sci. Rep. 13,
12054 (2023).
[21] Lepadatu, S. Boris computational spintronics — high performance multi-mesh magnetic and spin transport
modeling software. J. Appl. Phys. 128, 243902 (2020).
[22] Bisotti, M.-A. et al. Fidimag — a finite difference atomistic and micromagnetic simulation package. J. Open
Res. Softw. 6, 22 (2018).
[23] Donahue, M. J. & the µMAG group. µMAG Standard Problems. NIST/CTCMS, https://www.ctcms.nist.
gov/~rdm/mumag.org.html.
[24] You, C.-Y. Variance-reduced trajectory unravelings for GPU noisy quantum-circuit simulation: characteri-
zation and a Qiskit-Aer integration gap. Preprint at https://arxiv.org/abs/2607.17678 (2026).
[25] Tolmachev, D. VkFFT — a performant, cross-platform and open-source GPU FFT library. IEEE Access
11, 12039–12058 (2023).
[26] Kittel, C. On the theory of ferromagnetic resonance absorption. Phys. Rev. 73, 155–161 (1948).
[27] Rohart, S. & Thiaville, A. Skyrmion confinement in ultrathin film nanostructures in the presence of
Dzyaloshinskii–Moriya interaction. Phys. Rev. B 88, 184422 (2013).
[28] Dzyaloshinsky, I. A thermodynamic theory of “weak” ferromagnetism of antiferromagnetics. J. Phys. Chem.
Solids 4, 241–255 (1958).
[29] Moriya, T. Anisotropic superexchange interaction and weak ferromagnetism. Phys. Rev. 120, 91–98 (1960).
12
Acknowledgements
This work was supported by the National Research Foundation of Korea (NRF) (No. RS-2026-
25502724) and the Strategic Research Program under the DGIST R&D Program (26-SR-01) of
the Ministry of Science, ICT, and Future Planning.
Author contributions
C.-Y.Y. conceived the study, directed development, designed the validation and benchmark
protocols, analyzed the data, and wrote the manuscript. J.C. contributed to validation and
reviewed the manuscript.
Competing interests
The authors declare no competing interests.
Ethics declarations
Ethics approval and consent to participate. Not applicable: this study did not involve
human participants, human data or tissue, or animal subjects.
Consent for publication. Not applicable.
13
Materials availability
This study did not generate physical materials. All computational materials — source code,
build configurations, and benchmark/validation data — are covered under Code availability
and Data availability above.
Supplementary information
Supplementary Information is included as an ancillary file with this arXiv submission, and is also
available with the published version of this article, including extended benchmark methodology,
full standard-problem protocol details, the complete precision/race-condition study, the AI-agent
development protocol, additional cross-code validation figures (Walker breakdown and DMI edge
canting), and the full example-notebook catalog.
14
Tables
Figure legends

Figure 1: Claude-SD code architecture versus the incumbent GPU-only design.
Figure 4: SP#4 showcase: field-driven switching dynamics, Claude-SD vs mumax3

Figure 7: Skyrmion D–K phase diagram under matched dynamics, Claude-SD vs mu-



Figure 12: Mesh convergence of the STT switching threshold, enabled by replica-