pbhstat: A Python package for calculating the primordial black hole abundance

Philippa S. Cole, Jacopo Fumagalli

Published: 2025/9/17

Abstract

We present pbhstat, a publicly available Python package designed to compute the mass function and total abundance of primordial black holes (PBHs) from a given primordial power spectrum. The package offers a modular framework using multiple statistical approaches, including Press-Schechter theory, peaks theory, and formalisms based on the non-linear compaction function. Currently, the implementation is limited to scenarios with nearly Gaussian initial conditions.