Skip to content
Preprint

JZ-FMM: GPU-native differentiable N-body simulations with the Fast Multipole Method

Sep 2026 · 0 citations · 11 references
Physics

TL;DR

JZ-FMM, a GPU-native differentiable implementation of the fast multipole method for N-body simulations is presented and it is shown that the GPU oriented design of tree structure, dual tree traversal and multipole translation operators improves performance over established CPU-native and hybrid N-body codes by notably more than an order of magnitude.

Abstract

N-body simulations are an essential tool for modelling the evolution of gravitating systems. Differentiable N-body simulations allow solving complicated reconstruction problems by connecting observations of evolved systems to simple informative priors on their initial conditions. While so far most reconstruction efforts focus on mildly non-linear large scale dynamics, the internal dynamics of galaxies and clusters should exhibit rich information about their formation. The exploration of reconstruction possibilities in this highly non-linear regime naturally requires highly performant differentiable N-body simulations with small scale forces. Here, we present JZ-FMM, a GPU-native differentiable implementation of the fast multipole method for N-body simulations. We show that the GPU oriented design of tree structure, dual tree traversal and multipole translation operators improves performance over established CPU-native and hybrid N-body codes by notably more than an order of magnitude. Further, we show that gradients can be evaluated efficiently and accurately so that JZ-FMM can be used as an essential building block in future field-level reconstruction efforts. We apply the new code to the reconstruction problem of a tidally stripped satellite to show that deeply non-linear problems can indeed be solved efficiently with simulation gradients, although appropriate care must be taken to navigate the complicated optimization landscape.

View source

Similar papers

Preprint Oct 2026

Chana: A GPU-Accelerated AMR GRRMHD Code

This paper presents Chana, a GPU-accelerated, block-structured adaptive-mesh code for general relativistic magnetohydrodynamics, multigroup M1 neutrino transport, and dynamical spacetime evolution using the Z4c formulation. Each physical module uses independently selected spatial discretizations and ghost-zone widths t...

Tian-Shu Wang · 0 citations
Review Sep 2026

CERIDWEN: Fast and Flexible GPU-Accelerated Stellar Population Inference

JWST has increased both the number of high-redshift galaxies with high-quality spectral energy distributions (SEDs) and their information content. In parallel, wide-area surveys from Euclid, Rubin's LSST, and Roman will increase galaxy samples by orders of magnitude. Analysing these datasets requires stellar-population...

A. Stoffers, S. Tacchella, B. D. Johnson · 0 citations
Preprint Sep 2026

Differentiable astrophysics at scale: solving and differentiating ODE ensembles on the GPU

Astronomers increasingly fit their models with gradient-based methods, such as Hamiltonian Monte Carlo, which need the derivatives of the model with respect to its parameters. In many analyses a prediction requires solving a small system of ordinary differential equations (ODEs) for thousands to millions of parameter s...

A. S. Mancini · 1 citation
#edge computing Preprint Sep 2026

Magnetising the quokka code with fast, second-order accurate, error-correcting schemes for magnetohydrodynamics on GPUs

We implement a second-order accurate constrained transport (CT) magnetohydrodynamics (MHD) module with first-order flux correction in the open-source, adaptive mesh refinement (AMR), GPU-accelerated code quokka, supporting both ideal and resistive (constant Ohmic) regimes. For computing and averaging the electromotive...

N. Kriel, Elizabeth Cole-Kodikara, B. Wibking et al. · 0 citations
Preprint Sep 2026

Divergence-free magnetohydrodynamics on a moving mesh

Magnetic fields are ubiquitous in the Universe and play an important role in many astrophysical processes, such as star formation and the evolution of galaxies. Hydrodynamical simulation methods that account for ideal magnetohydrodynamics (MHD) are however challenged by the need to achieve numerical stability and physi...

V. Springel, Alexander C. Mayer, R. Pakmor · 0 citations
Preprint Oct 2026

Generalized $m$-body mean-field projections for classical simulation of $d$-dimensional Heisenberg-picture dynamics

Classical simulation of quantum many-body dynamics is challenged by the rapid growth of operator complexity, particularly in higher dimensions where tensor-network methods become increasingly demanding. We develop state-adapted Pauli-weight propagation based on generalized $m$-body mean-field projections, which compres...

Federico Tomás B. Pérez, Gabriela Wójtowicz, Matthias Kost et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.