Kaiser, JanJanKaiserXu, ChenranChenranXuEichler, AnnikaAnnikaEichlerSantamaria Garcia, AndreaAndreaSantamaria Garcia2024-06-112024-06-112024-05-01Physical Review Accelerators and Beams 17 (5): 054601 (2024-05-01)https://hdl.handle.net/11420/47821Machine learning has emerged as a powerful solution to the modern challenges in accelerator physics. However, the limited availability of beam time, the computational cost of simulations, and the high dimensionality of optimization problems pose significant challenges in generating the required data for training state-of-the-art machine learning models. In this work, we introduce cheetah, a pytorch-based high-speed differentiable linear beam dynamics code. cheetah enables the fast collection of large datasets by reducing computation times by multiple orders of magnitude and facilitates efficient gradient-based optimization for accelerator tuning and system identification. This positions cheetah as a user-friendly, readily extensible tool that integrates seamlessly with widely adopted machine learning tools. We showcase the utility of cheetah through five examples, including reinforcement learning training, gradient-based beamline tuning, gradient-based system identification, physics-informed Bayesian optimization priors, and modular neural network surrogate modeling of space charge effects. The use of such a high-speed differentiable simulation code will simplify the development of machine learning-based methods for particle accelerators and fast-track their integration into everyday operations of accelerator facilities.en2469-9888Physical review accelerators and beams20245https://creativecommons.org/licenses/by/4.0/MLE@TUHHComputer Science, Information and General Works::005: Computer Programming, Programs, Data and Security::005.1: ProgrammingBridging the gap between machine learning and particle accelerator physics with high-speed, differentiable simulationsJournal Article10.15480/882.1313110.1103/PhysRevAccelBeams.27.05460110.15480/882.13131Journal Article