← Latest papers
🔭 astrophysics

cloelib: A Flexible Python Library for Computing Cosmological Observables in the Euclid Era

The paper introduces **cloelib**, a flexible and differentiable Python library designed to compute cosmological observables for the Euclid mission by integrating modular protocols with JAX-based automatic differentiation to bridge traditional numerical cosmology with modern machine learning inference techniques.

Original authors: Marco Bonici (cloe-org maintainers), Guadalupe Cañas-Herrera (cloe-org maintainers), Pedro Carrilho (cloe-org maintainers), Santiago Casas (cloe-org maintainers), Chiara Moretti (cloe-org maintainers)
Published 2026-05-25
📖 4 min read☕ Coffee break read

Original authors: Marco Bonici (cloe-org maintainers), Guadalupe Cañas-Herrera (cloe-org maintainers), Pedro Carrilho (cloe-org maintainers), Santiago Casas (cloe-org maintainers), Chiara Moretti (cloe-org maintainers), Andrea Pezzotta (cloe-org maintainers), Michel Aguena (cloe-org contributors), Giovanni Aricó (cloe-org contributors), Zahra Baghkhani (cloe-org contributors), Matteo Baratto (cloe-org contributors), Emilio Bellini (cloe-org contributors), Jip de Buck (cloe-org contributors), Klara Bertmann (cloe-org contributors), Ben Bose (cloe-org contributors), Jeger C. Broxterman (cloe-org contributors), Pierre Burger (cloe-org contributors), Carmelita Carbone (cloe-org contributors), Chaitanya Chawak (cloe-org contributors), Jose Coloma-Nadal (cloe-org contributors), Martin Crocce (cloe-org contributors), Stefano Davini (cloe-org contributors), Christopher A. J. Duncan (cloe-org contributors), Samuel Farrens (cloe-org contributors), Lisa Goh (cloe-org contributors), Nastassia Grimm (cloe-org contributors), Alex Hall (cloe-org contributors), Ryusei R. Kano (cloe-org contributors), Martin Kärcher (cloe-org contributors), Felicitas Keil (cloe-org contributors), Raphaël Kou (cloe-org contributors), Laila Linke (cloe-org contributors), Arthur Loureiro (cloe-org contributors), Katarina Markovic (cloe-org contributors), David Navarro-Gironés (cloe-org contributors), Filippo Oppizzi (cloe-org contributors), Gabriele Parimbelli (cloe-org contributors), Anna Porredon (cloe-org contributors), Robert Reischke (cloe-org contributors), Jaime Ruiz Zapatero (cloe-org contributors), Iñigo Sáez-Casares (cloe-org contributors), Ziad Sakr (cloe-org contributors), Neel Shah (cloe-org contributors), Davide Sciotti (cloe-org contributors), Matthieu Schaller (cloe-org contributors), Ivan Sladoljev (cloe-org contributors), Arghavan Souki (cloe-org contributors), Sankarshana Srinivasan (cloe-org contributors), Konstantinos Tanidis (cloe-org contributors), Peter L. Taylor (cloe-org contributors), Nicolas Tessore (cloe-org contributors), Linus Thummel (cloe-org contributors), Maria Tsedrik (cloe-org contributors), Isaac Tutusaus (cloe-org contributors), Casper Vedder (cloe-org contributors), Angus H. Wright (cloe-org contributors), Miguel Zumalacárregui (cloe-org contributors), Joe Zuntz (cloe-org contributors)

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine the universe as a giant, complex puzzle that astronomers are trying to solve. For years, they've had pieces of the puzzle (data from telescopes like Euclid, DESI, and others), but they needed a better way to fit those pieces together to see the full picture.

This paper introduces cloelib, a new digital "toolbox" designed specifically for this job. Here is a simple breakdown of what it is and why it matters, using some everyday analogies.

1. The Problem: The "Swiss Army Knife" That Was Too Clunky

In the past, astronomers had software that could calculate how the universe expands or how galaxies cluster. However, these tools were often like a rigid, heavy toolbox. If you wanted to add a new tool (like a new way to measure galaxy shapes) or swap out a part (like using a different calculator for the universe's history), you often had to take the whole toolbox apart and rebuild it. This made it slow, difficult to update, and hard to mix-and-match different ideas.

2. The Solution: A "Lego" System

cloelib is like a set of interchangeable Lego bricks.

  • Modular Design: Instead of one giant, unchangeable block, the software is built in layers. You have a base layer (the history of the universe), a middle layer (how matter moves), and a top layer (what we actually see through telescopes).
  • Plug-and-Play: Because the pieces fit together perfectly (using "protocols," which are like standardized connectors), you can swap out one calculator for another without breaking the whole system. If you want to use a super-fast "emulator" (a shortcut calculator) instead of a slow, detailed one, you just snap it in. The rest of your work doesn't need to change.

3. The Superpower: "Thinking" Math

One of the most unique features of cloelib is that it is differentiable.

  • The Analogy: Imagine you are trying to find the perfect recipe for a cake. In the old days, you would bake a cake, taste it, guess what to change, and bake again. This is slow.
  • The cloelib Way: Because of its connection to a technology called JAX, this toolbox can tell you exactly how changing one ingredient (like a little more sugar) will change the taste, instantly. It calculates the "gradient" (the slope of the change) automatically. This allows scientists to use advanced computer techniques (like machine learning) to find the best fit for the universe's data much faster than before.

4. What Does It Actually Do?

The toolbox helps astronomers calculate two main types of observations:

  • Photometric (Taking Pictures): It helps analyze blurry images of galaxies to measure how they are stretched by gravity (cosmic shear) and how they are grouped together. It accounts for "systematic errors," which are like the smudges on a camera lens that need to be cleaned up mathematically.
  • Spectroscopic (Taking Fingerprints): It analyzes the specific "colors" (spectra) of light from galaxies to measure their speed and distance with high precision.

5. Why It Matters for the "Euclid Era"

The European Space Agency's Euclid mission is about to send back a massive amount of high-definition data about the universe. This data is so huge and precise that old software would struggle to keep up.

  • Speed: The paper claims cloelib is incredibly fast. For example, calculating complex maps of the universe that used to take time now takes fractions of a second.
  • Flexibility: It allows scientists to test many different theories about the universe (like how dark energy works) without rewriting their code every time.
  • Community Standard: It is designed to be the "official" reference tool for the Euclid mission, ensuring that everyone in the scientific community is using the same rules to interpret the data.

Summary

Think of cloelib as a universal translator and high-speed calculator for cosmologists. It takes the complex, messy math of the universe and turns it into a flexible, fast, and easy-to-use system. It lets scientists swap out different theories like changing lenses on a camera, ensuring that when the new data from the Euclid telescope arrives, they are ready to solve the universe's biggest mysteries efficiently.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →