Slipstream: nonlinear beam dynamics in PyTorch
J. K. Jones, A. D. Brynes, M. King, H. L. Owen, A. Pollard
Key points
From the paper's conclusion- Slipstream is a PyTorch package for nonlinear beam dynamics in storage rings, linacs and photoinjectors.
Abstract
Slipstream is a PyTorch package for nonlinear beam dynamics in storage rings, linacs and photoinjectors. It provides CPU and GPU particle tracking, field-map injector models with space charge, and automatic differentiation along supported tracking paths. Comparisons with elegant, ASTRA, GPT and other codes assess accuracy and computational cost for nonlinear ring tracking, optics matching and photoinjectors. Ring tunes agree with elegant to $10^{-9}$. For the tested ring workloads with tens of thousands of particles, GPU tracking in float32 is hundreds of times faster than the single-threaded CPU implementations compared here. Automatic differentiation reduces the time for 24-parameter optics matching by an order of magnitude compared to finite differences. Using a high-brightness photo-injector as an example, final horizontal emittances agree with ASTRA to about 1% at 20 and 100pC and differ by $\approx$4% at 250pC. For $2^{18}$ macroparticles, Slipstream's faster default settings take 14s on an RTX 3050 GPU and give emittances within 2% of that of ASTRA. Additional tests examine coherent synchrotron radiation, dynamic aperture and resistive-wall impedance. The package was developed predominantly by AI coding assistants under human direction. These comparisons identify where its models, GPU execution and derivatives are useful for repeated simulations in scans, fits and optimisation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Autotuning of particle accelerator beamlines using hybrid genetic algorithm and Neural Network optimizationJournal of Instrumentation · 2026
- Particle tracking with physics-informed deep learning methodsarXiv · 2026
- OPALX: A performance-portable framework for particle accelerator simulationsarXiv · 2026
- Fast prediction of electron-beam parameters using transfer maps and machine learning in a digital model of a MeV $\gamma\gamma$ colliderarXiv · 2026
- Nonlinear sample-based guidance leveraging GPU-based propagationNonlinear Dynamics · 2026
- Recurrent neural network encoder-decoder surrogate models for replacing computational beam simulations in beamline optimization.The Review of scientific instruments · 2026