English

$\texttt{SwiftC}_\ell$: fast differentiable angular power spectra beyond Limber

Cosmology and Nongalactic Astrophysics 2026-02-11 v3

Abstract

The upcoming stage IV wide-field surveys will provide high precision measurements of the large-scale structure (LSS) of the universe. Their interpretation requires fast and accurate theoretical predictions including large scales. For this purpose, we introduce SwiftC\texttt{SwiftC}_\ell, a fast, accurate and differentiable JAX\texttt{JAX}-based pipeline for the computation of the angular power spectrum beyond the Limber approximation. It uses a new FFTLog-based method which can reach arbitrary precision and includes interpolation along kk, allowing for kk-dependent growth factor and biases. SwiftC\texttt{SwiftC}_\ell includes a wide range of probes and effects such as galaxy clustering, including magnification bias, redshift-space distortions and primordial non-Gaussianity, weak lensing, including intrinsic alignment, cosmic microwave background (CMB) lensing and CMB integrated Sachs-Wolfe effect. We compare our pipeline to the other available beyond-Limber codes within the N5K challenge from the Rubin Observatory Legacy Survey of Space and Time (LSST) Dark Energy Science Collaboration. SwiftC\texttt{SwiftC}_\ell computes the 120 different angular power spectra over 103 \ell-multipoles in 5 ms on one GPU core while the computation of the gradient is approximately 4×\times slower. Using a pre-calculation, SwiftC\texttt{SwiftC}_\ell is thus about 40×\times faster than the winner of the N5K challenge with comparable accuracy. Furthermore, all outputs are auto-differentiable, facilitating gradient-based sampling and robust and accurate Fisher forecasts. We showcase a Markov Chain Monte Carlo, a Hamiltonian Monte Carlo and a Fisher forecast on an LSST-like survey, illustrating SwiftC\texttt{SwiftC}_\ell's differentiability, speed and reliability in measuring cosmological parameters. The code is publicly available at https://cosmo-gitlab.phys.ethz.ch/cosmo_public/swiftcl.

Cite

@article{arxiv.2505.22718,
  title  = {$\texttt{SwiftC}_\ell$: fast differentiable angular power spectra beyond Limber},
  author = {Laura Reymond and Alexander Reeves and Pierre Zhang and Alexandre Refregier},
  journal= {arXiv preprint arXiv:2505.22718},
  year   = {2026}
}

Comments

19 pages, 7 figures, accepted to JCAP

R2 v1 2026-07-01T02:47:06.525Z