SciBmad¶
Overview¶
SciBmad is a new open source, high-performance, CPU/GPU compatible, polymorphic, and forwards-/backwards-/Taylor-differentiable accelerator physics simulation ecosystem.
Project Status¶
SciBmad development is progressing rapidly. Features included in the current state of the project (0.9.0) and currently being planned for later releases are:
Current Release 0.9¶
Tracking (all CPU/GPU parallelized)
6D symplectic particle tracking with spin and radiation
A choice of tracking method for each element: drift-kick, matrix-kick, bend-kick, solenoid-kick, and implicit symplectic integrators (arbitrary electromagnetic fields) of order 2 to 10 (tested against PTC), exact maps, and Runge-Kutta
Exact electric dipole tracking
Intrabeam scattering (IBS), with elements split into slices to apply it several times inside an element
Tracking of any particle species including through lattices designed for other species (e.g. muons in an electron ring)
Arbitrary time-dependent parameters (e.g. magnet strengths, reference energy, even misalignments), seen by each particle at its own arrival time
Parallelizable over both particles and lattices by setting lattice parameters to be a vector of many values with
BatchParamParticle coordinates saved at any element or anywhere inside elements, and tracking that starts at any element
Dynamic aperture scans and frequency map analysis (NAFF)
Optics and nonlinear analysis
Linear and nonlinear optics (Lie series normal form methods), including spin and radiation
High order Taylor maps using the Generalised Truncated Power Series Algebra (GTPSA) library
Optics anywhere: at every integration step inside elements, for a part of a beamline, and for open lattices given the initial optics
Resonance driving terms and amplitude-dependent tunes
All of these as Taylor series in any lattice parameter (parametric normal form)
Truncation orders chosen automatically from the quantities asked, for a fastest calculation
Matching and derivatives
Matching of any quantity computed by
twiss(e.g. tunes, chromaticities, beta functions, Montague functions, resonance driving terms, the invariant spin field, amplitude-dependent tunes) at any location, by varying any lattice parameter, with exact derivatives computed by automatic differentiationValues and exact derivatives of any of these quantities, to use with any other optimizer (see
SciBmad.value_and_jacobian)Optimization without derivatives (CMA-ES), e.g. of the dynamic aperture, with constraints and several objectives, computing many settings of the knobs at once on the CPU or GPU
Everything differentiable (forwards/backwards/Taylor mode) with respect to anything, even element lengths
Lattices
Interdependent parameters through lazily-evaluated deferred expressions, with switchable contexts in which values can be tried and restored
Arbitrary placements and orientations of elements
Bmad-style element searches by name, with wild cards, ranges and regular expressions
Performance
Parallel on CPUs and GPUs (NVIDIA, AMD, Intel and Apple): tracking, closed orbits, dynamic aperture, IBS, NAFF, and Newton and Levenberg-Marquardt solvers
CPU/GPU parallelized over both particles and lattices via
BatchParamAlso supports 32-bit precision on CPUs and GPUs (including Apple Metal), including with time-dependent and batch parameters
Ease of use
One way to read results: Twiss columns, tracking results and matching targets are all read at an element, a name, a position inside an element, or a turn
Results plot directly with the Makie and Plots packages in Julia
Usable from Python with the package
pyscibmad(inpython/); the documentation shows every example in Julia and in Python
Currently in Development¶
Wakefields
Generalized gradient field description
Weak-strong symplectic beam-beam interaction
Forking/connecting lattice branches together
Space charge
Coherent synchrotron radiation
Planned for Future Releases¶
Backwards tracking
Bindings to WarpX for collective effects (e.g. strong-strong beam beam)
PyTorch bindings
Exact multipoles in curved coordinate systems
Electric multipoles
Superposition of elements
SciBmad Family¶
SciBmad consists of a set of modular packages:
BeamTracking: Universally polymorphic, differentiable, portable, and parallelized integrators for simulating charged particle beams on the CPU and various GPUs including NVIDIA CUDA, Apple Metal, Intel oneAPI, and AMD ROCmGTPSA: Fast high-order (Taylor mode) automatic differentiation using the Generalised Truncated Power Series Algebra (GTPSA) libraryBeamlines: Defines accelerator lattices in a fast, flexible, fully-polymorphic, and differentiable way, providing both eagerly- and lazily-evaluated deferred expressions for interdependent parametersNonlinearNormalForm: Map-based perturbation theory of differential-algebraic maps, which may include spin and large damping, using Lie methodsFundamentalFrequencies: GPU-batchable Numerical Analysis of Fundamental Frequencies (NAFF)BatchSolve: Batched root finding and least squares (Newton, Levenberg-Marquardt) for many problems at once on the CPU and GPUAtomicAndPhysicalConstants: Library providing physical constants and properties for any atomic or subatomic particle for use in simulations
Paper and Citation¶
If you find SciBmad useful in your work, please cite this paper:
@inproceedings{signorelli:ipac2026-thp5325,
author = {M. G. Signorelli and J. Devlin and G. H. Hoffstaetter and D. Sagan},
title = {SciBmad: A differentiable, GPU-parallelized software library for particle accelerator design, nonlinear analysis, and machine learning},
booktitle = {Proc. IPAC'26},
% booktitle = {Proc. 17th International Particle Accelerator Conference},
pages = {4737-4740},
paper = {THP5325},
venue = {Deauville, France},
intype = {presented at IPAC'26},
series = {IPAC'26 - 17th International Particle Accelerator Conference},
number = {17},
publisher = {JACoW Publishing, Geneva, Switzerland},
month = {05},
year = {2026},
issn = {2673-5350},
isbn = {978-3-95450-252-3},
url = {https://jacow.org/ipac2026/pdf/THP5325.pdf},
note = {presented at IPAC'26, Deauville, France, 2026, paper THP5325},
language = {English},
eventdate = {2026-05-17/2026-05-22},
}