gwsnr: A Python package for efficient signal-to-noise ratio calculations of gravitational waves
Abstract
gwsnr is a Python package for efficient signal-to-noise ratio and detectability calculations for compact-binary gravitational-wave sources. It is designed for large simulated populations where repeated evaluation of the optimal signal-to-noise ratio, ρ opt, and the probability of detection, P det, becomes computationally expensive with direct noise-weighted inner-product calculations. The package provides multiple calculation pathways under a unified interface, including multiprocessing-based inner-product evaluation, partial-scaling interpolation for non-spinning and aligned-spin systems, JAX and MLX backends for accelerated array execution, and artificial neural network based detectability estimation for more complex waveform settings. It also supports statistical modelling of the observed signal-to-noise ratio, ρ obs, under stationary Gaussian noise assumptions, threshold estimation from injection catalogues, hybrid recalculation of marginal events near the detection boundary, and horizon-distance calculations. By combining fast numerical methods with configurable detector, waveform, and population settings, gwsnr enables efficient selection-effect modelling, rate estimation, detector-sensitivity studies, and large-scale compact-binary population simulations. The package is publicly available with documentation, validation examples, and reproducible workflows.
Turn this paper into a lesson
ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.