Laurent Deniau (European Organization for Nuclear Research)
MOP044
GTPSA.jl: A SciBmad interface to the generalised truncated power series algebra library
145
A full-featured interface package to the Generalised Truncated Power Series Algebra (GTPSA) library in MAD-NG has been implemented in the Julia programming language. GTPSA performs fast Taylor-mode automatic differentiation (AD) of functions to arbitrary orders in the specified variables and parameters. In particular, GTPSA excels at computing derivatives to high orders (>1) and high numbers of variables/parameters, making it an extremely powerful tool for use in optimization and in computing parametric Taylor maps. This Julia interface offers another simple way of using the GTPSA library, and will be used extensively in the SciBmad accelerator physics software ecosystem. The interface can also be easily called from Python, via the juliacall package. In this paper, we showcase features implemented in the interface package including performance enhancements, and present an example of integrating a GTPSA map using polymorphic integrators already implemented in Julia.
  • M. Signorelli
    Cornell University (CLASSE)
  • L. Deniau
    European Organization for Nuclear Research
  • G. Hoffstaetter, D. Sagan
    Cornell University
  • O. Beznosov
    Los Alamos National Laboratory
Paper: MOP044
DOI: reference for this paper: 10.18429/JACoW-NAPAC2025-MOP044
About:  Received: 23 Jul 2025 — Revised: 08 Aug 2025 — Accepted: 09 Aug 2025 — Issue date: 28 Aug 2025
Cite: reference for this paper using: BibTeX, LaTeX, Text/Word, RIS, EndNote