gyaradax: Local Gyrokinetics JAX Code
Gianluca Galletti, Eric Volkmann, Johannes Brandstetter

TL;DR
gyaradax is a GPU-accelerated, differentiable gyrokinetics solver in JAX that enables faster plasma turbulence simulations and ML integration.
Contribution
it introduces a GPU-accelerated, differentiable gyrokinetics solver based on gkw, demonstrating rapid translation from fortran and facilitating ml applications.
Findings
achieves formal agreement with gkw benchmarks
substantially faster than legacy code
enables ml applications like inverse problems
Abstract
Gyrokinetic simulations are essential for understanding and controlling turbulence in fusion plasmas, yet they are oftentimes implemented in legacy codebases, in many cases CPU-bound. These are both hard to maintain and especially incompatible with optimization and ML workflows. gyaradax is a minimal JAX/CUDA solver for local flux-tube gyrokinetics. We base our implementation on GKW (Peeters et al., 2009), but with added native GPU acceleration and automatic differentiation. We validate gyaradax against analytical cases and empirical benchmarks, achieving formal agreement and statistical parity with GKW alongside a substantial speedup. We deliberately and extensively utilized agentic workflows in this project. A key contribution is showing that coding agents, guided by human expertise, structured prompting, and measurable progress through unit testing enabled extremely fast translation…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
