cosmicjellyfish: Fisher-matrix and Monte Carlo forecasts for cosmological surveys in Python and JAX
astro-ph.CO, astro-ph.IM
Submitted: 2026-11-28
Updated: 2026-11-28
Comments: 11 pages, 4 figures, 1 table. Source code: https://github.com/santiagocasas/cosmicjellyfish ; software archive: https://doi.org/10.5281/zenodo.24593176 ; validation data: https://huggingface.co/datasets/santicas/cjfp-data
License: http://creativecommons.org/licenses/by/4.0/
The gist: cosmicjellyfish is a Python package for Fisher-matrix and Monte Carlo forecasts of cosmological surveys.
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.
Related papers
- Dark Energy Survey Year 3 results: optimized w CDM simulation-based inference with weak lensing map-level hybrid statistics
- 21cmEMUv3: a hybrid diffusion-LSTM emulator of 21cmFAST summary observables
- Simulation-Based Priors and BAO Shifts from the Lyman- alpha Forest at the Field Level
- Improved constraints on axion inflation with the new code AxioGen: an efficient generator of curvature perturbations
- Connecting field-level and n-point function measurements of galaxy bias
- The Impact of Cosmic Variance and Satellites on JWST Clustering Measurements at Redshift around 6