The physics simulation foundation of the COOLJAPAN scientific computing ecosystem just reached production readiness.
On March 13 we released Spintronics 0.3.0 — a complete, production-grade pure Rust library for simulating spin dynamics, spin current generation, and conversion phenomena in magnetic and topological materials.
No Python loops. No C++ memory bugs. No Fortran.
No external binaries or unsafe code in hot paths.
Just clean, memory-safe, physically accurate simulations that compile to a single static binary (or WASM) and run everywhere.
Why Spintronics 0.3.0 is a game changer
For years, spintronics research meant slow Python/NumPy scripts or fragile C++/Fortran codebases.
These tools are powerful but suffer from:
- Python performance bottlenecks (450 ms → 8.5 ms for LLG)
- C++ memory management nightmares and segfaults
- Difficulty reproducing experiments exactly
- No easy path to web demos, Python interop, or embedded use
Spintronics 0.3.0 ends all of that.
It delivers 52–100× faster performance while being 100% memory-safe and type-safe (prevents “spin disappearance” at compile time).
Notable results (Intel i7):
- LLG Solver (N=1000 steps): 52× faster than Python+NumPy
- Skyrmion number calculation: 100× faster
- Spin chain evolution: 59× faster
- Thermal noise generation: 50× faster
Technical Deep Dive: How We Built a Production-Grade Spintronics Simulator in Pure Rust
The architecture is physics-aligned and radically optimized for modern Rust:
-
Core Physics Layer
constants(NIST-validated),vector3SIMD-accelerated,unitswith 14 runtime physical validators. -
Dynamics & Transport (
dynamics,transport,effect)
LLG/LLB solvers (RK4, Heun, adaptive), spin pumping, diffusion, ISHE, SSE, SOT, Rashba, topological Hall. -
Advanced Phenomena (new in 0.3.0)
texture(skyrmions, domain walls, hopfions),magnon(BEC, spin waves),thermo(caloritronics),afm(THz antiferromagnetics),mech(magnetoelastic, Barnett effect),ai(physical reservoir computing),cavity(magnon-photon hybrids),orbitronics&altermagnet. -
I/O & Interop
HDF5, JSON, CSV, VTK export + PyO3 bindings + WASM + HTMX/Axum web demo.
Key Rust advantages:
- Memory pool allocator → 99% allocation reduction in hot paths
- SIMD + parallel lattice evolution (zero-cost abstractions)
SimulationBuilderfluent API (introduced in 0.3.0)- Type safety prevents unphysical states at compile time
- Built directly on
scirs2-corefor RNG and utilities
What’s inside 0.3.0 (released March 13)
- Production readiness confirmed
- New modules: altermagnet, orbitronics, frustrated magnets, spinwave, hopfion, BEC, magnetoelastic, caloritronics, LLB
SimulationBuilderfluent API + Interactive Web Demo- Python bindings (PyO3) + WASM support
- HDF5/JSON/VTK export + memory pool allocator
- 718 passing tests + full validation against landmark experiments (Saitoh 2006, Woo 2016, etc.)
- Enhanced documentation and regression benchmark suite
This is the foundation
Spintronics is now the official spintronics and magnonics backend for the entire COOLJAPAN scientific stack:
- SciRS2 / NumRS2 — all core spin dynamics and magnon calculations
- OxiMedia — visualization of magnetic textures and domain walls
- ToRSh / OxiRAG — high-throughput spin transport simulations
- Future integration with OxiLean for formally verified LLG solvers
Repository: https://github.com/cool-japan/spintronics
Star the repo if you’re tired of slow Python scripts or fragile C++ code for spintronics research.
The era of “just run NumPy loops” or “pray the C++ doesn’t segfault” is over.
Pure Rust spintronics simulation is here — and it’s fast, safe, and physically accurate.
— KitaSan at COOLJAPAN OÜ March 13, 2026