cloelike : A Python Library for Cosmological Likelihood Inference in the Euclid Era
(cloe-org maintainers:) Marco Bonici, Guadalupe Cañas-Herrera, Pedro Carrilho, Santiago Casas, Chiara Moretti, Andrea Pezzotta, (cloe-org contributors:) Zahra Baghkhani, Carmelita Carbone, Martin Crocce, Jip de Buck, Klara Bertmann, Nastassia Grimm, Martin Kärcher, Felicitas Keil, Davide Sciotti, Peter L. Taylor, Nicolas Tessore, Isaac Tutusaus, Casper Vedder, on behalf of the Euclid Consortium · 2026
Read cloelike : A Python Library for Cosmological Likelihood Inference in the Euclid Era by (cloe-org maintainers:) Marco Bonici, Guadalupe Cañas-Herrera, Pedro Carrilho, Santiago Casas, Chiara Moretti, Andrea Pezzotta, (cloe-org contributors:) Zahra Baghkhani, Carmelita Carbone, Martin Crocce, Jip de Buck, Klara Bertmann, Nastassia Grimm, Martin Kärcher, Felicitas Keil, Davide Sciotti, Peter L. Taylor, Nicolas Tessore, Isaac Tutusaus, Casper Vedder, on behalf of the Euclid Consortium (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-23841.txt.
Introduction
The cloe-org maintainers present cloelike, a Python package of modular Gaussian likelihoods for Euclid's large scale structure observables. It plugs into cloelib for theory and euclidlib for official data. It covers angular power spectra and real space correlations for weak lensing, photometric clustering and galaxy galaxy lensing in joint probe combinations. It also covers spectroscopic power spectrum multipoles and baryon acoustic oscillations. The package already serves internal Euclid Consortium analyses. It is openly released so outside teams can check the work.
Catalog record
| CREATOR | (cloe-org maintainers:) Marco Bonici, Guadalupe Cañas-Herrera, Pedro Carrilho, Santiago Casas, Chiara Moretti, Andrea Pezzotta, (cloe-org contributors:) Zahra Baghkhani, Carmelita Carbone, Martin Crocce, Jip de Buck, Klara Bertmann, Nastassia Grimm, Martin Kärcher, Felicitas Keil, Davide Sciotti, Peter L. Taylor, Nicolas Tessore, Isaac Tutusaus, Casper Vedder, on behalf of the Euclid Consortium |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 35097 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.23841
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
cloelike : A Python Library for Cosmological Likelihood Inference in the Euclid Era (cloe-org maintainers:) Marco Bonici, Guadalupe Cañas-Herrera, Pedro Carrilho, Santiago Casas, Chiara Moretti, Andrea Pezzotta, (cloe-org contributors:) Zahra Baghkhani, Carmelita Carbone, Martin Crocce, Jip de Buck, Klara Bertmann, Nastassia Grimm, Martin Kärcher, Felicitas Keil, Davide Sciotti, Peter L. Taylor, Nicolas Tessore, Isaac Tutusaus, Casper Vedder, on behalf of the Euclid Consortium Abstract † † margin: DOI: \Url@FormatString Software • Review • Repository • Archive (Zenodo) Editor: Pending editor Reviewers: • @pending Submitted: N/A Published: N/A License Authors retain copyright and release the work under CC BY 4.0 ( link ). Summary cloelike , available at cloe-org/cloelike , is a Python package providing modular, composable Gaussian likelihood classes for the main cosmological large-scale structure observables targeted by the ESA Euclid space mission. It is a core component of the CLOE (Cosmology Likelihood for Observables in Euclid) ecosystem and interfaces directly with cloelib for theoretical predictions and euclidlib for reading official Euclid data products. The package implements Gaussian likelihoods covering harmonic angular power spectra and real-space two-point correlation functions for weak lensing (WL), photometric galaxy clustering (GCph), and Galaxy–Galaxy Lensing (GGL) in all joint probe combinations (3 \times 2pt, 2 \times 2pt), as well as spectroscopic full-shape power spectrum multipoles, and baryonic Acoustic oscillations (BAO). cloelike is actively used in internal Euclid Consortium analyses and is openly released to support community validation and reproducibility. Statement of need The ESA Euclid mission is delivering high-precision photometric and spectroscopic observations aimed at probing the nature of dark energy and dark matter, as well as constraining the origin of primordial density perturbations in the early Universe. Achieving these scientific goals requires confronting (extended) cosmological models with the data through robust, validated, and reproducible likelihood frameworks for statistical inference ( 5 ; 1 ) . Despite the wide ecosystem of cosmological inference tools, such as CosmoSIS ( 12 ) and Cobaya ( 11 ) , most publicly available likelihood implementations remain probe-specific or lack the modularity and native data-format compatibility needed for fully integrated end-to-end Euclid analyses. cloelike addresses this limitation by providing a minimal and unified Python interface dedicated exclusively to computing a \chi^{2} statistic. It operates on a data vector, covariance matrix supplied externally, and theoretical predictions supplied by cloelib , all consistently structured within the euclidlib 1 1 1 \Url@FormatString data format. This strict separation of concerns, combined with seamless integration, ensures interoperability while avoiding duplication of functionality already provided by external inference frameworks or posterior samplers. Concretely, cloelike evaluates the standard multivariate Gaussian likelihood through the quadratic form -2\ln\mathcal{L}=(\mathbf{d}-\mathbf{t})^{\mathrm{T}}\mathbf{C}^{-1}(\mathbf{d}-\mathbf{t})+b, (1) where \mathbf{d} denotes the data vector, \mathbf{t} the theoretical prediction, \mathbf{C} the covariance matrix, and b is an additive bias. This quantity fully specifies the Gaussian log-likelihood up to an additive normalization constant and constitutes the essential input required by most inference engines. By design, cloelike is a lightweight and modular package that focuses exclusively on likelihood evaluation. It can be seamlessly interfaced with established Bayesian frameworks such as Cobaya or CosmoSIS , as well as integrated into custom sampling pipelines that operate on \chi^{2} evaluations. Core tasks such as parameter exploration, sampling strategies, and model management are deliberately delegated to external tools, ensuring that cloelike remains dedicated to providing a consistent, validated, and reproducible likelihood computation. This modular architecture enforces a clear separation between data handling, theoretical prediction, and statistical inference. In turn, cloelike lowers the barrier for the community to reproduce official Euclid results, while enabling flexible exploration of new systematics, extended cosmological models, and probe combinations. The package is actively used within the Euclid Consortium, where it serves as the reference likelihood implementation and represents a natural evolution of the former CLOE software ( 3 ; 2 ; 4 ) . State of the Field The ecosystem of cosmological likelihood and inference frameworks is both extensive and heterogeneous. Widely used examples include CosmoSIS , which has been broadly adopted across the community and in major galaxy surveys such as the Dark Energy Survey (DES); Cobaya , favored among theoretical cosmologists for its flexibility in combining multiple data sets and interfacing with different Boltzmann solvers; CosmoLike ( 8 ) ; and Firecrown 2 2 2 \Url@FormatString , among others. Furthermore, survey-specific pipelines and wrappers have been developed, such as CosmoPipe 3 3 3 \Url@FormatString for Kilo Degree Survey (KiDS) analyses. These frameworks typically provide end-to-end Bayesian analysis environments, combining theoretical predictions, data handling, likelihood evaluation, and interfaces to sampling engines within a unified software structure. In contrast, cloelike adopts a deliberately modular and simpler philosophy, closer in spirit to self-contained likelihood implementations such as the Planck 2018 plik likelihood ( 10 ) . Rather than embedding the full inference pipeline, cloelike focuses exclusively on providing a validated and consistent likelihood layer with native support for Euclid data products across all primary probes. In this way, it complements existing frameworks: it can be seamlessly integrated as a drop-in likelihood module within CosmoSIS or Cobaya workflows, allowing users to exploit advanced sampling capabilities while relying on a robust, probe-complete likelihood implementation. At the same time, its minimal interface based solely on \chi^{2} evaluation, makes it readily compatible with any external sampler or inference tool that operates on likelihood values, enabling flexible integration within a wide range of analysis pipelines [e.g.: Nautilus ( 9 ) , dynesty ( 7 ) , emcee ( 6 ) , and others]. Software Design cloelike supports likelihoods already prepared for photometric harmonic and configuration-space summary statistics (the latter including two-point correlation functions and COSEBIs), as well as spectroscopic galaxy clustering observables, both in their full-shape and BAO formulations, with the possibility of constructing a joint likelihood combining the two spectroscopic probes. The internal architecture of cloelike follows a modular design based on a strict separation of concerns. For photometric probes, which share a common statistical structure, all operations related to data-vector ingestion, masking, scale cuts, covariance loading, precision-matrix handling, and consistency checks are implemented in a shared base class 4 4 4 For spectroscopic galaxy clustering, given its self-standing nature but different from photometric probes, a common class is not neccesary. . This common layer provides a unified interface for handling observational inputs independently of the specific summary statistic being analysed. On top of this shared infrastructure, the computation of the theoretical observables is delegated to independent probe-specific mixins. Each mixin encapsulates only the logic required to compute a given observable—for example, harmonic-space angular power spectra, configuration-space correlation functions, or COSEBIs—while inheriting the shared data and covariance machinery from the base class. This approach avoids code duplication, ensures consistency across probes, and makes the addition of new observables straightforward, since only the corresponding theoretical prediction module needs to be implemented. This architecture closely mirrors the protocol-oriented modularity adopted in cloelib , with which cloelike interfaces directly. In practice, cloelike acts as the likelihood layer responsible for statistical evaluation, while cloelib provides the theoretical predictions through interchangeable protocols. The result is a flexible and extensible framework in which likelihood definitions and theory computations remain cleanly decoupled, facilitating maintenance, validation, and future extensions to new cosmological probes. Building on this modular foundation, cloelike enables a high degree of flexibility in composing likelihoods across probes and summary statistics.