Gravitational Wave Lensing of LISA Massive Black Hole Binaries by Dark Matter Subhalos
Overview
This repository studies how wave-optics lensing by dark-matter subhalos imprints on gravitational waves from massive black hole binaries (MBHBs) observed by LISA. Subhalos are modelled as NFW (Navarro-Frenk-White) profiles with a central compact object (a point mass and/or an axion cloud), and the question is whether the composite lens leaves a signature that is distinct from a point-mass lens alone and detectable above LISA instrumental noise.
Science goal
Lensing of gravitational waves probes the matter distribution of the lens on scales (sub-galactic, dark) that are inaccessible electromagnetically. In the wave-optics regime relevant to LISA sources, the amplification factor F(f) depends on the lens profile, not just its total mass, so a composite NFW + compact-object lens can imprint a frequency-dependent signature that a point mass cannot. The pipeline:
- generates a LISA MBHB signal (waveform, TDI response, SciRDv1 noise, SNR) and validates it against known results,
- applies a lens amplification factor F(f) to the signal using GWLENS (point-mass, NFW and composite lenses),
- quantifies the effect as a change in SNR and as a mismatch between lensed and unlensed signals, scanned over lens mass and impact parameter.
| Step | Question | Result |
|---|---|---|
Waveform & SNR (lisa_mbhb_01_waveform_snr.py) |
Does the TDI model reproduce the expected sky-averaged SNR, and are different waveform approximants consistent? | SNR ≈ 3376-3415 across IMRPhenomD/XHM/HM for a 5×10⁵ + 2.5×10⁵ Msun source at z=1; higher-order modes agree with IMRPhenomD to ~2% mismatch |
Lensed SNR scan (lisa_mbhb_02_lensed_snr.py) |
How much does a point-mass lens change the detected SNR as a function of impact parameter y? | A 10⁷ Msun lens nearly doubles the SNR at y=0.3 (6710 vs 3376 unlensed) and the effect falls off smoothly by y=2 |
Mismatch scan (lisa_mbhb_03_mismatch.py) |
At what lens mass / impact parameter does lensing become distinguishable from the unlensed signal at this SNR? | Mismatch grows with lens mass and shrinks with y; compared against the ~11-parameter distinguishability threshold at SNR≈3400 |
| Composite lens mismatch (point mass + NFW) | Does a dark-matter subhalo around the central compact object change the mismatch signature, and is it detectable? | Mismatch peaks around y≈1 for all configurations (central/off-centre NFW, with/without shear); the off-centre and shear terms shift the peak by up to ~50% depending on lens mass, within the LISA-detectable region |
Fisher parameter estimation (lisa_mbhb/fisher.py, scripts/fisher_*.py) |
Given a detection, how precisely can the lens (and source) parameters be recovered, and does a dark-matter halo around the point mass degrade or help that measurement? | Joint MBH + lens Fisher matrix per source/lens configuration, with validation (fisher_check.py) and grid scans (fisher_point.py, fisher_plot.py) over lens mass and impact parameter |
Repository layout
lisa_mbhb/ core package: waveform, LISA response, noise, lensing, overlap/mismatch, inference, sampler
scripts/ step scripts that run the pipeline and produce the figures/results below
tests/ pytest suite checking the package against known analytic/numerical results
figures/ figures and result JSONs produced by the scripts
Installation
pip install lisa-mbhb
or, for development:
git clone https://github.com/SSingh087/lisa-mbhb.git
cd lisa-mbhb
pip install -e ".[test]"
pytest
Requires Python ≥3.11. All dependencies, including GWLENS (gwlens on PyPI), install automatically. To use a local GWLENS checkout instead, point to it with:
export GWLENS_PATH=/path/to/GWLENS
The waveform/response/noise/inference parts of the package work without GWLENS; only lens amplification factors require it.
Usage
Each script under scripts/ is a runnable step of the pipeline and writes its figure and results JSON to figures/:
python scripts/lisa_mbhb_01_waveform_snr.py --approximants IMRPhenomD IMRPhenomXHM
python scripts/lisa_mbhb_02_lensed_snr.py --mass-lz 1e7 --y 0.3 0.5 1.0 2.0
python scripts/lisa_mbhb_03_mismatch.py --mass-lz 3e6 1e7 3e7 --y 0.3 0.5 1 2 3
The Fisher scripts (fisher_point.py, fisher_check.py, fisher_step_scan.py, fisher_plot.py, fisher_contours.py, fisher_corner.py, fisher_table.py, fisher_report.py, fisher_ppd.py, fisher_fig3.py, fisher_gridcheck.py) are cluster/grid-scan drivers built on lisa_mbhb.fisher; run python <script> --help for their options.
Run python <script> --help for the full set of options (source masses, redshift, waveform approximant, output directory).
Tests
pytest
The suite checks the noise/response implementation against PyCBC's analytical LISA PSDs, the sky-averaged SNR against a Monte-Carlo estimate, the point-mass lens against its analytic geometric-optics limit, and that lensing and mismatch behave as expected (e.g. mismatch decreases with increasing impact parameter).
Contributors
Ansal Kanu, Sreekanth Harikumar, Shashwat Singh
Metadata
Release files for lisa-mbhb 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lisa_mbhb-0.1.0.tar.gz | 24.0 kB | With provenance | Details for lisa_mbhb-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lisa_mbhb-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lisa_mbhb-0.1.0-py3-none-any.whl |
Total release size: 47.5 kB
Release files / lisa_mbhb-0.1.0.tar.gz
| Download URL | lisa_mbhb-0.1.0.tar.gz |
|---|---|
| Size | 24.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0659f04bed59b1875c395571fc0c3ff4057265dd5615aba7690f168dace26aaf
|
|
BLAKE2b-256 checksum How to use checksums |
878c8359974f12519f4c49bdf329507ad345d672d832c3ebc7a35723e69bae10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / lisa_mbhb-0.1.0-py3-none-any.whl
| Download URL | lisa_mbhb-0.1.0-py3-none-any.whl |
|---|---|
| Size | 23.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ba586d42ad11b8baff96f5b9665151083d8521d4998e6fa821a7ad1bc35c90e
|
|
BLAKE2b-256 checksum How to use checksums |
5ac6b3e547436c41cde0517cedbd6ebe90ddc81233f05e8f5c6fa2ef89d4e9d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for lisa-mbhb 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lisa_mbhb-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.