Observed since 20 Oct, 19:04 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Adaptive Pole Fitting for Quantum Many-Body Physics
adapol ("add-a-pole") is a Python package for constructing compact pole approximations of Matsubara functions,
$$ G(\mathrm{i}\nu_n) \approx \sum_{k=1}^{M} \frac{R_k}{\mathrm{i}\nu_n - p_k}, $$
with real poles $p_k$ and scalar or matrix-valued residues $R_k$, using the AAA rational approximation algorithm and nonlinear optimization. Given Matsubara data, or an existing pole expansion (for example, a discretized spectral density or a discrete Lehmann representation), adapol finds an accurate approximation with a specified maximum number of poles, or as few poles as possible. A typical application is hybridization fitting: constructing a compact bath representation of a given hybridization function.
pip install adapol
The only dependencies are numpy and scipy.
adapol provides three main functions:
approx_freq_aaa(F, Z, ...) fits frequency data F, sampled at (typically Matsubara) points Z, with a sum of simple poles, using the AAA algorithm. The number of poles is controlled by a pole budget max_n_poles and/or a AAA error tolerance aaa_tol.approx_sop_fast(poles, residues, beta, ...) approximates a given sum of poles by a (hopefully) smaller one in a single AAA pass. The number of poles is again controlled by max_n_poles and/or aaa_tol, and an optional nonlinear_optimization step refines the pole locations.approx_sop_tol(poles, residues, tol, beta, ...) finds the smallest sum of poles whose actual error (in $L^2(\tau)$ and $l^2(i \omega_n)$) is below the tolerance tol.Three example notebooks demonstrate the usage of these functions in detail. We recommend reading them in the following order.
semicircle.ipynb — fitting data with a continuous spectrum (semicircular density): the stopping criteria, the nonlinear optimization option, and the error metric.discrete.ipynb — fitting multi-orbital data with a discrete spectrum, including an experiment on how the required number of poles scales with the number of orbitals.hubbarddimer.ipynb — analytic continuation benchmark for the Hubbard dimer.The reference documentation for the three functions also describes in detail how to use them, as well as information on the algorithms they implement. The same information is contained in the docstrings, e.g. help(adapol.approx_freq_aaa).
If you use this package in your research, please include a reference to this GitHub repository, and cite the following references:
adapol is distributed under the GNU General Public License v3.0 (see LICENSE).
pypistats · 47 observations shown. Missing days are unknown. Source category: overall: without mirrors.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-19 – 2026-10-19 | 5 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-18 – 2026-10-18 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-15 – 2026-10-15 | 3 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-14 – 2026-10-14 | 2 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-13 – 2026-10-13 | 4 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-12 – 2026-10-12 | 4 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-11 – 2026-10-11 | 2 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-10 – 2026-10-10 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-09 – 2026-10-09 | 4 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-08 – 2026-10-08 | 4 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-07 – 2026-10-07 | 2 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-06 – 2026-10-06 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-05 – 2026-10-05 | 3 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-04 – 2026-10-04 | 2 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-02 – 2026-10-02 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-10-01 – 2026-10-01 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-30 – 2026-09-30 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-29 – 2026-09-29 | 6 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-28 – 2026-09-28 | 3 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-27 – 2026-09-27 | 2 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-26 – 2026-09-26 | 4 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-25 – 2026-09-25 | 3 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-24 – 2026-09-24 | 10 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-23 – 2026-09-23 | 3 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-22 – 2026-09-22 | 14 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-21 – 2026-09-21 | 80 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-12 – 2026-09-12 | 5 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-09 – 2026-09-09 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-07 – 2026-09-07 | 3 | 2026-10-20T19:07:26.6675529Z |
| 2026-09-01 – 2026-09-01 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-31 – 2026-08-31 | 2 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-29 – 2026-08-29 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-28 – 2026-08-28 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-24 – 2026-08-24 | 7 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-23 – 2026-08-23 | 3 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-22 – 2026-08-22 | 3 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-20 – 2026-08-20 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-17 – 2026-08-17 | 2 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-14 – 2026-08-14 | 6 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-13 – 2026-08-13 | 2 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-11 – 2026-08-11 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-09 – 2026-08-09 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-03 – 2026-08-03 | 3 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-02 – 2026-08-02 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-08-01 – 2026-08-01 | 1 | 2026-10-20T19:07:26.6675529Z |
| 2026-07-27 – 2026-07-27 | 2 | 2026-10-20T19:07:26.6675529Z |
| 2026-07-23 – 2026-07-23 | 3 | 2026-10-20T19:07:26.6675529Z |
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0 | 21 Sept 2026 | 2 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:04 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:20ad7c8dd19726ebc149b201712a7edc7641645b4bfe3e4b3beacb0b87e47b25