Metadata-Version: 2.4
Name: jaxqualin
Version: 1.0.0
Summary: A package for extracting quasinormal modes from time domain data
Project-URL: Homepage, https://github.com/mhycheung/Jaxqualin
Project-URL: Bug Tracker, https://github.com/mhycheung/Jaxqualin/issues
Author-email: Mark Ho-Yeuk Cheung <mcheung@ias.edu>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: <3.15,>=3.10
Requires-Dist: adjusttext>=1.0
Requires-Dist: jax>=0.4.30
Requires-Dist: jaxlib>=0.4.30
Requires-Dist: matplotlib>3.6.1
Requires-Dist: numpy<2.4,>1.23
Requires-Dist: optimistix
Requires-Dist: pandas>1.5.1
Requires-Dist: pykerr>=0.1.0
Requires-Dist: qnm==0.4.4
Requires-Dist: quaternionic
Requires-Dist: scipy>=1.13
Requires-Dist: setuptools
Requires-Dist: spherical
Requires-Dist: sxs>2025
Requires-Dist: tqdm>4.61.1
Description-Content-Type: text/markdown

<h1 align="center">
    <img src="docs/jaxqualin_logo.png" alt="jaxqualin" width="500">
</h1>

<h4 align="center"> A python package for extracting quasinormal modes from black-hole ringdown simulations.</h4>

<p align="center">
    <a href = "https://arxiv.org/abs/2310.04489"><img src="https://img.shields.io/badge/arXiv-2310.04489-b31b1b.svg"></a>
    <a href="https://badge.fury.io/py/jaxqualin"><img src="https://badge.fury.io/py/jaxqualin.svg"></a>
    <a href="https://github.com/mhycheung/jaxqualin/actions/workflows/pytest.yml"><img src="https://github.com/mhycheung/jaxqualin/actions/workflows/pytest.yml/badge.svg"></a>
    <a href="https://github.com/mhycheung/jaxqualin/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
    <a href="https://mhycheung.github.io/jaxqualin/"><img src="https://badgen.net/badge/Read/the doc/blue" alt="doc"/></a>
    <a href="https://pypi.org/project/jaxqualin/"><img src="https://img.shields.io/pypi/pyversions/jaxqualin"></a>
</p>

<p align="center">
  <a href="#key-features">Key Features</a> •
  <a href="#installation">Installation</a> •
  <a href="#usage">Usage</a> •
  <a href="#paper-results">Paper Results</a> •
  <a href="#how-to-cite">How to Cite</a> •
  <a href="#license">License</a> 
</p>

## Key Features

- Fit ringdown waveforms with quasinormal modes (QNMs) using fixed frequencies, free frequencies, or mixed setups
- [JAX](https://github.com/jax-ml/jax)-accelerated nonlinear least-squares fitting with variable projection (VARPRO) and [Optimistix](https://github.com/patrick-kidger/optimistix)-based optimization
- Flexible QNM model fitting for remnant-parameter inference (`M`, `a`) and custom parametric models
- Custom mode and model framework for user-defined mode content beyond standard Kerr QNMs
- Agnostic mode identification and stability-based mode selection across varying fit start times
- Save/reuse fit outputs with `pickle`, and visualize amplitudes/phases with built-in plotting tools
- Call hyperfit polynomials to approximate QNM amplitudes in the ringdown of binary black hole (BBH) mergers

## Installation

```shell
pip install jaxqualin
```

## Usage

Basic usage examples can be found under the Examples tab on the [package homepage](https://mhycheung.github.io/jaxqualin/).

## Paper Results

Interactive plots of the methods paper results can be found under the Results tab on the [package homepage](https://mhycheung.github.io/jaxqualin/).

## How to Cite

Please cite the methods paper if you used our package to produce results in your publication.
Here is the BibTeX entry:

```
@article{Cheung:2023vki,
    author = "Cheung, Mark Ho-Yeuk and Berti, Emanuele and Baibhav, Vishal and Cotesta, Roberto",
    title = "{Extracting linear and nonlinear quasinormal modes from black hole merger simulations}",
    eprint = "2310.04489",
    archivePrefix = "arXiv",
    primaryClass = "gr-qc",
    doi = "10.1103/PhysRevD.109.044069",
    journal = "Phys. Rev. D",
    volume = "109",
    number = "4",
    pages = "044069",
    year = "2024",
    note = "[Erratum: Phys.Rev.D 110, 049902 (2024), Erratum: Phys.Rev.D 112, 049901 (2025)]"
}
```

## License

MIT

---

> GitHub [@mhycheung](https://github.com/mhycheung)

