Journals of Accelerator Conferences Website (JACoW)

JACoW is a publisher in Geneva, Switzerland that publishes the proceedings of accelator conferences held around the world by an international collaboration of editors.

URLhttps://doi.org/10.18429/JACoW-NAPAC2025-TUP101
TitleTowards differentiable beam dynamics modeling in BLAST/ImpactX
Authors
  • A. Huebl, C. Mitchell, R. Lehe, G. Charleux, A. Myers, W. Zhang, J. Qiang, J. Vay
    Lawrence Berkeley National Laboratory
  • J. Kaiser, C. Hespe
    Deutsches Elektronen-Synchrotron DESY
  • J. Gonzalez-Aguilera
    University of Chicago
  • C. Xu
    Argonne National Laboratory
  • A. Santamaria Garcia
    University of Liverpool
  • R. Roussel, A. Edelen
    SLAC National Accelerator Laboratory
  • W. Moses
    University of Illinois Urbana-Champaign
AbstractDifferentiable simulations are in demand in accelerator physics, demonstrating order-of-magnitude improvements for complex tasks such as many-parameter optimization for accelerator working points and reconstruction of hard-to-measure quantities. At its core, a differentiable simulation does not only solve a forward problem, but additionally provides gradients of output parameters (e.g. beam parameters) with respect to input parameters (e.g. beamline or source parameters). How to effectively program large dynamic simulations differentiably is still an open question, but there is general consensus that a “single-source” approach aided by automatic differentiation (AD) is desirable. Addressing this, there are a) emerging domain-specific languages in machine learning that are intrinsically differentiable, and b) highly-performing & scalable, general-purpose languages like ISO C++ of existing codes. The challenge of approach a) is syntax specialization, which can limit ease of implementation & performance for physics algorithms, while b) requires additional work for AD. Performance is important for modeling high-order beam dynamics and collective effects in accelerators. We compare the fast, modern codes ImpactX (C++/Python) and Cheetah (PyTorch) using traditional, gradient-free modeling. We then show progress in introducing single-source differentiability in ImpactX using modern compiler techniques, producing performant executables for gradient-based and gradient-free modeling.
Paperdownload: TUP101.pdf
CiteBibTeX, LaTeX, Text/Word, RIS, EndNote
ConferenceNorth American Particle Accelerator Conference (NAPAC2025)
Series
LocationSacramento, CA, USA
Date10-15 Aug 2025
PublisherJACoW Publishing, Geneva, Switzerland
Editorial BoardTor O. Raubenheimer (SLAC), Roark A. Marsh (LLNL), Eric Prebys (UC Davis), Ling Wang (FRIB), Petr Anisimov (LANL), Kip Bishofberger (LANL), Gustavo Bruno (ANL), Zhichu Chen (SARI), Jan Chrin (PSI), Kelly Jaje (ANL), Jaeyu Lee (POSTECH), Magdalena Montes-Loera (SLAC), Mary Saethre (PHENOTYPE), Tasha Summers (SLAC), Kent Wootton (ANL)
Online ISBN978-3-95450-261-5
Online ISSN2673-7000
Received08 August 2025
Revised14 August 2025
Accepted14 August 2025
Issued28 August 2025
DOI10.18429/JACoW-NAPAC2025-TUP101
Pages614-617