Skip to main content
QUICK REVIEW

[Paper Review] SIGWfast: a python package for the computation of scalar-induced gravitational wave spectra

Lukas T. Witkowski|arXiv (Cornell University)|Sep 12, 2022
Pulsars and Gravitational Waves ResearchPhysics and Astronomy12 citations
TL;DR

SIGWfast is a high-performance Python package for computing scalar-induced gravitational wave (SIGW) spectra from primordial scalar power spectra, using optimized numerical integration with optional C++ acceleration. It enables fast, robust, and user-friendly computation of Ω_gw(k) in seconds, supporting both radiation-dominated and general equation-of-state epochs.

ABSTRACT

SIGWfast is a python code to compute the scalar-induced gravitational wave spectrum from a primordial scalar power spectrum that can be given in analytical or numerical form. SIGWfast was written with the aim of being easy to install and use, and to produce results fast, typically in a matter of a few seconds. To this end the code employs vectorization techniques within python, but there is also the option to compile a C++ module to perform the relevant integrations, further accelerating the computation. The python-only version should run on all platforms that support python 3. The version employing the C++ module is only available for Linux and MacOS systems.

Motivation & Objective

  • To provide a fast, reliable, and easy-to-use tool for computing scalar-induced gravitational wave (SIGW) power spectra from primordial scalar fluctuations.
  • To address numerical challenges in SIGW computation, including singular integrands and unbounded integration limits, with robust automatic cutoff handling.
  • To enable efficient computation of Ω_gw(k) across diverse inflationary models, especially those with enhanced small-scale scalar fluctuations.
  • To support both analytical and numerical input for the primordial power spectrum P_ζ(k), ensuring broad usability for model builders.
  • To offer a dual implementation—pure Python for portability and C++-accelerated mode for speed—on Linux and macOS systems.

Proposed method

  • Employs vectorized Python operations to accelerate double integral computation of the SIGW spectrum Ω_gw(k) via convolution-like integration over P_ζ(k) and a transfer function T(k1,k2).
  • Uses specialized numerical integration routines that correctly handle the divergent locus in the transfer function T(k1,k2), avoiding errors from standard quadrature methods.
  • Automatically sets integration cutoffs to ensure convergence without user input, improving robustness and reducing user error.
  • Provides two main modules: SIGWfast.py for radiation-dominated epochs (w = 1/3) and SIGWfastEOS.py for arbitrary equation-of-state parameters w.
  • Offers optional C++ compilation via setup.py to accelerate integrations by up to 25%, with platform-specific support (Linux and macOS only).
  • Supports flexible input of P_ζ(k) through analytical expressions or numerical arrays, with no requirement for vectorizability in the input function.

Experimental results

Research questions

  • RQ1How can the scalar-induced gravitational wave spectrum Ω_gw(k) be computed efficiently and robustly for arbitrary primordial scalar power spectra?
  • RQ2What numerical strategies are required to handle the singular behavior of the transfer function T(k1,k2) in the double integral without introducing errors?
  • RQ3How can integration cutoffs be set automatically to ensure convergence while minimizing computational overhead?
  • RQ4To what extent can performance be improved through C++ acceleration in a Python-based cosmological code?
  • RQ5How can a user-friendly, portable, and high-performance tool be designed for SIGW spectrum computation in the context of small-scale inflationary model building?

Key findings

  • SIGWfast computes the SIGW spectrum Ω_gw(k) in a matter of seconds using pure Python, enabling rapid exploration of inflationary models.
  • The C++-accelerated version reduces computation time by up to 25% compared to the pure Python implementation, significantly improving performance for repeated evaluations.
  • The code automatically handles integration cutoffs and singularities in the transfer function, ensuring numerical stability and correctness without user intervention.
  • SIGWfast supports both analytical and numerical input for the primordial power spectrum P_ζ(k), allowing flexibility in modeling diverse inflationary scenarios.
  • The package is compatible with all systems supporting Python 3, and the C++ module is available on Linux and macOS, ensuring broad accessibility and performance portability.
  • The code has been tested and validated on multiple platforms, including macOS with Apple Silicon (M1) via Rosetta2, and on Ubuntu and Windows Server, confirming cross-platform reliability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.