PrimordialPy: A Python library for single-field inflation, primordial black holes, and scalar-induced gravitational waves
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(ϕ) 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.
Related
- Primordial black holes and induced gravitational waves from localized features in DBI inflation
- Primordial Black Holes and Induced Gravitational Waves from Inflation with History-Dependent Effective Dissipation
- Warm inflation beyond the Gaussian limit: primordial black holes and induced gravitational waves
- Primordial black holes and gravitational waves from aligned axion inflation
- Lukewarm inflation, primordial black holes and gravitational waves
BibTeX
@misc{pineda2026primordialpy,
title = {{PrimordialPy: A Python library for single-field inflation, primordial black holes, and scalar-induced gravitational waves}},
author = {Flavio Pineda},
howpublished = {arXiv},
year = {2026},
month = nov,
doi = {10.48550/arxiv.2611.05566},
eprint = {2611.05566},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.05566},
note = {CC BY 4.0},
}
RIS
TY - UNPB
TI - PrimordialPy: A Python library for single-field inflation, primordial black holes, and scalar-induced gravitational waves
AU - Flavio Pineda
PY - 2026
DA - 2026/11/03
PB - arXiv
DO - 10.48550/arxiv.2611.05566
UR - https://arxiv.org/abs/2611.05566
AB - 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(ϕ) 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.
ER -