cosmicjellyfish: Fisher-matrix and Monte Carlo forecasts for cosmological surveys in Python and JAX
Santiago Casas, Sefa Pamuk, V. M. Sabarish, Ziad Sakr, Domenico Sapone, Matías Leizerovich, Noemi Frusciante, Francesco Pace and 4 others
RWTH Aachen University · German Aerospace Center (DLR) · Instituto de Física de Cantabria · Universität Hamburg · Universidad de Chile · Universidad de Buenos Aires
Published November 28, 2026 · on the feed December 2, 2026 · ▲ 2 · arXiv 2611.38546
The abstract
cosmicjellyfish is a Python package for Fisher-matrix and Monte Carlo forecasts of cosmological surveys. It is the current version of cosmicfishpie, the Python successor of the CosmicFish code, and has been used in about ten publications since the Euclid forecast-validation programme. It computes the observables of photometric galaxy clustering and weak lensing, spectroscopic galaxy clustering, 21cm intensity mapping and the cosmic microwave background, and returns the expected parameter constraints either as a Fisher matrix or as a posterior obtained by nested sampling with Nautilus, both from a single configuration, so that going beyond the Gaussian approximation for a forecast, is only a matter of computing time. Theory predictions are supplied interchangeably by CAMB, CLASS, symbolic emulators, or jax-cosmo; derivatives come from four finite-difference schemes or from automatic differentiation with JAX. Both routes are validated against each other and against the reference MontePython Euclid likelihoods, and a public dashboard compares CAMB and CLASS forecasts for 25 validation cases. The survey specifications, solver settings, source revisions and chains behind every number quoted here are released following the FAIR principles (findable, accessible, interoperable and reusable). The change of name from cosmicfishpie to cosmicjellyfish was motivated by the transition to JAX and the availability of Monte Carlo methods.
The Brief
2:34A short podcast summary of the paper. Written and voiced by AI.
Transcript
cosmicjellyfish. Fisher-matrix and Monte Carlo forecasts for cosmological surveys in Python and JAX. By Santiago Casas and eleven others, from RWTH Aachen University, the German Aerospace Center, and seventeen other institutions. Published on the twenty-eighth of November.
cosmicjellyfish is a Python package for forecasting what cosmological surveys will be able to measure, using either Fisher matrices or Monte Carlo methods. It is the current version of cosmicfishpie, which was itself the Python successor of the CosmicFish code. A forecast of this kind answers a planning question: given a survey as specified, how tightly could it pin down the parameters of a cosmological model. The package offers two ways to answer it. A Fisher matrix gives the fast answer, built on a Gaussian approximation. Monte Carlo sampling gives the fuller one, at the price of more computation.
The package computes the observables for several kinds of survey: photometric galaxy clustering and weak lensing, spectroscopic galaxy clustering, 21cm intensity mapping, and the cosmic microwave background. It returns the expected constraints on parameters in one of two forms. One is a Fisher matrix. The other is a posterior, obtained by nested sampling with Nautilus. Both come from the same single configuration, so moving beyond the Gaussian approximation in a forecast becomes only a matter of computing time.
The parts are interchangeable. Theory predictions can come from CAMB, from CLASS, from symbolic emulators, or from jax-cosmo. Derivatives can come from four finite-difference schemes, or from automatic differentiation with JAX. That gives a user a choice at each layer, which source of theory and which way of taking derivatives, without changing the rest of the forecast.
The code has been used in about ten publications since the Euclid forecast-validation programme. Its two routes, finite differences and automatic differentiation, are validated against each other and against the reference MontePython Euclid likelihoods. A public dashboard compares CAMB and CLASS forecasts across twenty-five validation cases. The survey specifications, solver settings, source revisions and chains behind every number quoted are released following the FAIR principles: findable, accessible, interoperable and reusable.
It is aimed at people planning or interpreting cosmological surveys who need expected parameter constraints, and who may want to go from a quick Fisher estimate to a full posterior without rebuilding their setup.
The name change says what changed. The move from cosmicfishpie to cosmicjellyfish was prompted by the transition to JAX and by Monte Carlo methods becoming available. The Monte Carlo side is what lets one setup yield a full posterior, not only a Fisher matrix.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free