PrimordialPy: A Python library for single-field inflation, primordial black holes, and scalar-induced gravitational waves
Flavio Pineda
Key points
From the paper's conclusion- We present \texttt{PrimordialPy}, an open-source Python library designed to compute the cosmological predictions of arbitrary canonical single-field inflationary models.
Abstract
We present \texttt{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(\phi)$ and its parameters. Designed to be modular, efficient, and highly accessible, \texttt{PrimordialPy} comes with comprehensive documentation, validation benchmarks, and practical examples, making it a versatile tool for both research and education in early-universe cosmology.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- pbhalo: computing primordial black hole and minihalo populations from a single primordial perturbation spectrumarXiv · 2026
- Warm-Inflation: a software for first-principles integration of warm inflation power spectraarXiv · 2026
- Fast and accurate differentiable code of the galaxy power spectrum based on Eulerian and Lagrangian one-loop perturbation theoriesarXiv · 2026
- Primordial black hole dark matter from ultraslow-roll inflation in Horndeski gravityPhysical review. D/Physical review. D. · 2026
- The OpenGadget3 Code for Cosmological SimulationsarXiv · 2026
- Constraining the primordial black hole abundance with space-based detectorsJournal of Cosmology and Astroparticle Physics · 2026