ezquiaga / spectral_sirens

Spectral siren cosmology with the population of compact binary coalescences

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spectral sirens

Spectral siren cosmology with the population of compact binary coalescences. This repository contains code to perform hierarchical Bayesian inference, mock data generation and sensitivity estimates.

The inference code is written in JAX and numpyro. The mock data generation and sensitivity estimates are written in python.

Notebooks detailing how to run the inference and simulate observations are provided in the examples folder. A set of mock gravitational wave events and sensitivity estimates are computed using this code and stored in DOI .

Installation

To install the code, clone the repository and install the dependencies with pip:

git clone
cd spectral-sirens
pip install .

The base code builds on the IGWN conda environment. To install the IGWN conda environment, see here for instructions and details.

To run the inference on GPUs you need jaxlib and numpyro with GPU support. See JAX docs and numpyro docs for installation instructions. In particular it requires CUDA to be installed first.

In the folder envs you can find the conda environment files used to run the inference on GPUs. To install the conda environment, run

conda env create -f envs/inference_gpu.yml

Citing spectral sirens

If you use this code, please consider citing the following papers:

@article{Chen:2024gdn,
    author = "Chen, Hsin-Yu and Ezquiaga, Jose Mar\'\i{}a and Gupta, Ish",
    title = "{Cosmography with next-generation gravitational wave detectors}",
    eprint = "2402.03120",
    archivePrefix = "arXiv",
    primaryClass = "gr-qc",
    month = "2",
    year = "2024"
}

and

@article{Ezquiaga:2022zkx,
    author = "Ezquiaga, Jose Mar\'\i{}a and Holz, Daniel E.",
    title = "{Spectral Sirens: Cosmology from the Full Mass Distribution of Compact Binaries}",
    eprint = "2202.08240",
    archivePrefix = "arXiv",
    primaryClass = "astro-ph.CO",
    doi = "10.1103/PhysRevLett.129.061102",
    journal = "Phys. Rev. Lett.",
    volume = "129",
    number = "6",
    pages = "061102",
    year = "2022"
}

About

Spectral siren cosmology with the population of compact binary coalescences


Languages

Language:Python 100.0%