cloelib β The Library for the Cosmology Likelihood for Observables in Euclid¶
cloelib is a flexible and efficient library designed to compute cosmological observables for the CLOE (Cosmology Likelihood for Observables in Euclid) project. It is built for seamless integration with Boltzmann solvers and JAX-based frameworks, enabling automatic differentiation and modularity for the next generation of cosmological analyses.
Features¶
-
Intuitive & User-Friendly β Fast generation of Euclid-like observables (e.g., power spectra, window functions, and tracer statistics).
-
Automatic Differentiation β Supporting
JAXfor gradient-based computations. -
Modular & Extensible β Easily interface with external Boltzmann solvers or emulators via Python
Protocolsfollowing the cosmology.API. The core structure enables defining Background & Perturbation models, choosing observables via Tracer or SpectroPower protocols, and computing final summary statistics such as angular power spectra or Legendre multipoles. Check the guide to learn more about its architecture.
Supported External Codes¶
cloelib interfaces with the following external codes, each used by a specific internal module for its calculations:
| Background | Perturbations | SpectroPower |
|---|---|---|
| camb | camb | comet-emu |
| class | class | pbjcosmo |
| NA | HMCode2020emu | NA |
| NA | cosmopower-jax | NA |
| NA | euclidemu2 | NA |
| NA | BACCOemu | NA |
| NA | e-MANTIS | NA |
π€ Contributors¶
This project follows the all-contributors specification. Contributions of any kind are welcome!
License¶
This project is licensed under the MIT License.