CosmoForge
Open Access
- 18 November 2026
- journal article
- Published by EDP Sciences in Astronomy & Astrophysics
- Vol. 715, A348
Abstract
Context . Optimal power spectrum estimation on the largest angular scales of the cosmic microwave background relies on the quadratic maximum likelihood (QML) estimator. Existing public implementations, however, each address only a subset of the problem, and none combines power spectrum estimation with a self-consistent pixel-space likelihood within a single framework. Aims . We present CosmoForge , a public Python framework that unifies QML power spectrum estimation and pixel-based Gaussian likelihood evaluation for spin-0 and spin-2 fields on the sphere, with general (non-diagonal) noise covariances. Methods . The framework is split into three installable packages: CosmoCore (infrastructure), QUBE (Fisher and QML estimation), and PICSLike (pixel-space likelihood). A common interface exposes two interchangeable computation bases – a harmonic basis built on the Sherman–Morrison–Woodbury identity and a direct pixel-space basis – selecting whichever is cheaper for the configuration at hand. Exact algorithmic optimisations reduce the Fisher cost to 𝒪(ℓ max 4 ) for arbitrary noise covariances, with Numba JIT compilation of the hot kernels and MPI parallelisation of the likelihood scan. Results . CosmoForge reproduces the Planck low-ℓ Fortran reference implementation across both the QML and pixel-space likelihood pipelines, consistently with double-precision arithmetic. Native multipole binning and three output normalisations (deconvolved, de-correlated, and window-convolved) are exposed through a single code path, and the same covariance infrastructure powers both QML estimation and likelihood evaluation. Conclusions . CosmoForge offers a general-purpose, modular, and validated tool for the optimal analysis of large-scale data on the sphere. It is publicly available, pip-installable, and extensible to observables other than the cosmic microwave background.Keywords
This publication has 34 references indexed in Scilit:
- Planck intermediate resultsAstronomy & Astrophysics, 2020
- Array programming with NumPyNature, 2020
- Planck2018 resultsAstronomy & Astrophysics, 2020
- Reionization optical depth determination from Planck HFI data with ten percent accuracyAstronomy & Astrophysics, 2020
- SciPy 1.0: fundamental algorithms for scientific computing in PythonNature Methods, 2020
- Planckintermediate resultsAstronomy & Astrophysics, 2016
- Planck2015 resultsAstronomy & Astrophysics, 2016
- Efficient Computation of Cosmic Microwave Background Anisotropies in Closed Friedmann‐Robertson‐Walker ModelsThe Astrophysical Journal, 2000
- Spin-s Spherical Harmonics and ðJournal of Mathematical Physics, 1967
- Sur les fonctions convexes et les inégalités entre les valeurs moyennesActa Mathematica, 1906