PrimordialPy: A Python library for single-field inflation, primordial black holes, and scalar-induced gravitational waves
astro-ph.CO
Submitted: 2026-11-03
Updated: 2026-11-03
Comments: V1. Ready to submit to EPJC
Code: https://github.com/fpineda94/primordialpy
License: http://creativecommons.org/licenses/by/4.0/
The gist: We present PrimordialPy, an open-source Python library designed to compute the cosmological predictions of arbitrary canonical single-field inflationary models.
Terminology
Abstract
We present PrimordialPy, an open-source Python library designed to compute the cosmological predictions of arbitrary canonical single-field inflationary models. By numerically solving the background dynamics and the curvature perturbation equation, the package evaluates the primordial power spectrum of scalar and tensor perturbations at all relevant scales. Furthermore, it automatically computes the resulting mass fraction and abundance of Primordial Black Holes (PBHs), as well as the associated spectrum of scalar-induced gravitational waves (SIGWs). Users can seamlessly implement any canonical single-field model by simply specifying the inflaton potential V(ϕ) and its parameters. Designed to be modular, efficient, and highly accessible, PrimordialPy comes with comprehensive documentation, validation benchmarks, and practical examples, making it a versatile tool for both research and education in early-universe cosmology.
Sources
- SIGWfast: a python package for the computation of scalar-induced gravitational wave spectra
- Laser Interferometer Space Antenna
Related papers
- 21cmEMUv3: a hybrid diffusion-LSTM emulator of 21cmFAST summary observables
- 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
- Universality of Primordial Anisotropies in Gravitational Wave Background
- KiDS-1000 cosmic shear reanalysis using MetaCalibration
- 2Flow2SN: Dusty Supernova Cosmology with Photometric Redshifts and Contamination using Neural Simulation-Based Inference