Skip to main content

pespace: a tool of response generation and likelihood evaluation for space-borne gravitational wave detectors

last commit code style: black docs

This package can be used to generate detector responses and evaluate the likelihood function under the stationary Gaussian noise assumption for space-borne detectors, with a focus on parameter estimation of massive black hole binaries. Core computations are implemented with taichi-lang and jax, enabling automatic differentiation and hardware acceleration across multiple architectures. More details can be found in the paper or the document.

Installation

Install from PyPI:

pip install pespace

Install the latest or specific commit version:

# install the latest development version
pip install git+https://github.com/nnrui/pespace
# install a specific commit
pip install git+https://github.com/nnrui/pespace@<commit-hash>

By default, only the basic dependencies required by the taichi-lang backend for response and likelihood computations are installed. If (backend="jax") is used, install it additionally:

pip install "pespace[jax]"

No samplers are installed by default either, please manually install them according to the needs. To install multiple currently supported samplers in one go:

pip install "pespace[samplers]"

To use the sampler interface provided by bilby:

pip install "pespace[bilby]"

When the jax backend is used, the waveform relies on a customized ripple fork (import ripplegw) which is not published on PyPI and need to be installed manually:

pip install "rippleGW @ git+https://github.com/nnrui/ripple"

Usage

The basic functionality of generating detector responses is demonstrated in the tutorial. Example scripts of the full Bayesian parameter estimation for a massive black hole binary merger signal can be found here for a single LISA-like detector, and here for the LISA-Taiji-Tianqin network.

Similar Packages

If pespace cannot meet your needs, you may find other packages for similar functionality (welcome to open issues or pull requests if you have more). But differences in conventions need to be noted.

Contact

The author strive to make this project easy-to-use and maintainable. But the author's experience and knowledge in software engineering is limited. Any feedback, comments, and suggestions are greatly appreciated. Feel free to open issues or contact.

Citation

If you think this package is useful, please consider cite arxiv: 2602.12011.

The development of this package depends on many previous works. Please cite the original works for the corresponding modules you have used.

The frequency domain response model:

  • Sylvain Marsat, John G. Baker, Fourier-domain modulations and delays of gravitational-wave signals, arxiv: 1806.10734;

The adaptive tempering SMC with NUTS and Hessian:

Metadata

Release files for pespace 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pespace 0.1.0
File Size Uploaded Provenance Actions
pespace-0.1.0.tar.gz 101.5 kB With provenance Details for pespace-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pespace 0.1.0
File Interpreter ABI Platform Actions
pespace-0.1.0-py3-none-any.whl Python 3 none any Details for pespace-0.1.0-py3-none-any.whl

Total release size: 213.0 kB

Release files / pespace-0.1.0.tar.gz

Download URL pespace-0.1.0.tar.gz
Size 101.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4557eee106783706cbe8d1ae7b35ab5f11e86bae30d465c2ea9d53e0f7e44ea2
BLAKE2b-256 checksum
How to use checksums
9d81317c55202682c4595dc34b4b49571573e18bf29946be3e823a824d24111b
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 Oct 26, 2026.

Transparency log

Release files / pespace-0.1.0-py3-none-any.whl

Download URL pespace-0.1.0-py3-none-any.whl
Size 111.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6aa23cfbce1043c50a96559973c69623e1b26d7932e3b45310ed62b9b0a97b78
BLAKE2b-256 checksum
How to use checksums
e82ec4cbab00e21157014deed39a2e3117bf383e9db80a72870aa2bf15c9c51c
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 Oct 26, 2026.

Transparency log

Security for pespace 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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pespace-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 Oct 26, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page