absnoise
absnoise is a Python package about one question: how well can a
superconducting junction measure temperature, or detect a single
photon? The junctions in question are proximity Josephson junctions:
two superconductors joined by a short piece of normal (not
superconducting) conductor, in the shipped examples graphene. Such a
junction carries its supercurrent (a current that flows with zero
resistance) through a few discrete energy levels, the Andreev levels. Each level is
randomly filled and emptied, even in perfect thermal equilibrium. That
flicker (not the readout electronics) sets the final limit on how
well the junction can sense temperature.
The package follows the whole chain, from the levels to a detector:
- Where are the Andreev levels, and how do they move with phase and temperature?
- How large and how fast is the occupation flicker, and what temperature resolution does it allow?
- For a real device read out by a microwave resonator: what are the frequency-noise spectrum, the noise-equivalent power and the energy resolution for a single photon?
It also works backward from measured data: a critical-current curve, a readout time trace, or a noise spectrum. And it helps plan those measurements before the fridge time is spent.
The main results are checked by automated tests against exact formulas or a second, independent calculation (see How the results are checked). When a question cannot be answered from the data or parameters given, the package stops with an error that says why, instead of returning a number that looks fine but is not.
Install
pip install absnoise
It needs Python 3.9 or newer, NumPy 1.24 or newer and SciPy 1.10 or
newer. The optional extra absnoise[plot] installs matplotlib; no part
of the package imports it. For development: clone the repository and
run pip install -e .[test], then pytest.
Units and conventions are listed in the guide.
A first look
1. A detector budget for a shipped junction
import numpy as np
from absnoise import RECIPES, SensorBudget, H_PLANCK
budget = SensorBudget(RECIPES[1]) # the Ti/Al/Au junction of Jung et al.
T = 0.3 * budget.recipe.Tc # operating temperature (K)
tauA = 1e-6 # occupation correlation time (s), illustrative
dT_A, sums = budget.dT_andreev(T, tauA, t=1.0) # 1 s of averaging
dT_ph = budget.dT_phonon(T, t=1.0)
print(f"T = {T:.3f} K, thermal time tau_th = {budget.tau_th(T) * 1e9:.2f} ns")
print(f"temperature resolution in 1 s: Andreev {dT_A * 1e6:.2f} uK, "
f"phonon {dT_ph * 1e6:.2f} uK")
print(f"tauA/C_A = {tauA / sums['C_A']:.3e} s K/J, "
f"tau_th/C_e = {budget.tau_th(T) / budget.Ce(T):.3e} s K/J")
sigE = budget.energy_resolution(T, tauA)
print(f"energy resolution: {sigE:.3e} J "
f"(the energy of a {sigE / H_PLANCK / 1e9:.0f} GHz photon)")
f = np.array([0.0, 1e7, 1e8])
nep = budget.nep_spectrum(T, tauA, f)
for fi, a, p in zip(f, nep["andreev"], nep["phonon"]):
print(f"NEP at {fi:.0e} Hz: Andreev {a:.2e}, phonon {p:.2e} W/sqrt(Hz)")
T = 0.225 K, thermal time tau_th = 0.78 ns
temperature resolution in 1 s: Andreev 40.48 uK, phonon 3.58 uK
tauA/C_A = 1.172e+15 s K/J, tau_th/C_e = 9.145e+12 s K/J
energy resolution: 1.752e-22 J (the energy of a 264 GHz photon)
NEP at 0e+00 Hz: Andreev 6.26e-18, phonon 5.53e-19 W/sqrt(Hz)
NEP at 1e+07 Hz: Andreev 6.27e-18, phonon 5.53e-19 W/sqrt(Hz)
NEP at 1e+08 Hz: Andreev 6.97e-18, phonon 5.53e-19 W/sqrt(Hz)
At this operating point the occupation noise, not the phonon noise,
sets the temperature resolution. That matches the criterion stated in
the code: occupation noise dominates when tauA/C_A is larger than
tau_th/C_e. In the NEP, the phonon part is flat at every frequency
(sqrt(4 kB T^2 G)), and the occupation part rises as
sqrt(1 + (2 pi f tau_th)^2). The energy resolution is computed in
closed form over all frequencies (since 0.11.0; 0.10.x printed
1.810e-22 J here, 3.3 % too high, because its numerical integral
stopped at a finite frequency).
More in the examples.
Where to read on
- Examples: 20 short examples, each with the output it prints.
- Tutorials: complete analyses, from data to a result with error bars.
- Words, units and conventions: the terms used here, explained in plain words, and every unit and sign convention.
- What is in the package: every function, grouped by task.
- How the results are checked: what each test compares with and how closely, and the mistakes fixed in earlier versions.
- Limits: when the package refuses an input and why, and what it deliberately does not do.
- CHANGELOG: what changed in each version.
Where it comes from
Methodological basis:
T. M. Mahim, A. S. M. Mohsin and M. M. Rahman, "Andreev occupation noise sets the sensitivity limit of proximity Josephson thermal detectors"; code for the paper: https://github.com/Tanvir-Mahmud-Mahim/andreev-occupation-noise
This package is the general-purpose engine; the paper repository reproduces the specific study.
Six junction recipes ship with full provenance (Table I of W. Jung et
al., Phys. Rev. Applied 26, 014078 (2026), arXiv:2503.06850);
graphene electron-phonon cooling follows G.-H. Lee et al., Nature
586, 42 (2020); physical constants are CODATA 2018. The phonon NEP is
compared with J. C. Mather, Appl. Opt. 21, 1125 (1982). The
matched-filter energy resolution is the frequency-domain optimal-filter
result (int_0^inf 4 df / NEP^2)^(-1/2) of S. H. Moseley, J. C. Mather
and D. McCammon, J. Appl. Phys. 56, 1257 (1984); its band-limited form
(0.14.0) stops the integral at the readout bandwidth. The Allan
variance follows D. W. Allan, Proc. IEEE 54, 221 (1966) and W. J.
Riley, Handbook of Frequency Stability Analysis, NIST Special
Publication 1065 (2008). The temperature design follows F. Pukelsheim,
Optimal Design of Experiments, SIAM (2006). The Matsubara-sum free
energy of cpr_series and cpr_matsubara follows from Eqs. (6) and (8) of P. W. Brouwer
and C. W. J. Beenakker, Chaos, Solitons & Fractals 8, 1249 (1997); the
tests check it against the closed-form short-junction current. The
heating-curve fit of fit_ep_coupling is the analysis of Lee et al.
(their Fig. 4c and Table I: delta = 3, Sigma = 2.04 to 3.30
W m^-2 K^-3). Near Tc the gap equation
is solved in its Matsubara-sum form, which follows from the integral
form through the partial-fraction expansion
tanh(x/2) / x = sum_n 4 / (x^2 + (2n+1)^2 pi^2); the tests check the
two forms against each other. The spectrum and the Allan variance of
sampled data (0.16.0) follow from summing the sampled autocovariance
var e^(-|k| dt/tau); the tests check both against that sum, done
term by term. The spectrum of averaged samples and the expected
periodogram of a finite record (0.17.0) follow in the same way, from
the autocovariance of the averaged samples (obtained by integrating
var e^(-|t-s|/tau) over two sample intervals) and from the finite
sum sum_{|h|<N} (N - |h|) C(h) e^(-2 pi i j h / N); the tests check
them against the Lorentzian times sinc^2 summed over its aliases,
numerical integration and the quadratic form of the full covariance
matrix. The tail of the Matsubara sums (0.17.0) uses the midpoint form
of the Euler-Maclaurin formula, checked against the full sum. A
replacement recipe number
must arrive with a new source. No phonon-stack parameters are shipped
at all: they are measurements of a real device, and calls without
them raise.
Citing, support and license
If absnoise helps your work, please cite it with the concept DOI
10.5281/zenodo.22048608,
which always resolves to the latest version; every release is archived
on Zenodo. CITATION.cff has the details.
Written and maintained by Tanvir Mahmud Mahim (Department of Electrical and Electronic Engineering, BRAC University), who reviews every change and takes the final decision on scope and releases. Design questions are discussed in the open in issues and pull requests, and the standing rule of CONTRIBUTING.md binds the maintainer exactly as it binds contributors: a change that touches physics arrives with a test, and a constant arrives with its source.
Support runs through the issue tracker. Usage questions are welcome alongside bug reports; a docstring that left a unit or a sign convention unclear is treated as a documentation bug, not user error. While the version is below 1.0 the API may still move between minor versions; such changes are called out in the release notes.
Licensed under Apache-2.0.
Metadata
Release files for absnoise 0.17.1
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 |
|---|---|---|---|---|
| absnoise-0.17.1.tar.gz | 228.0 kB | With provenance | Details for absnoise-0.17.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| absnoise-0.17.1-py3-none-any.whl | Python 3 | none | any | Details for absnoise-0.17.1-py3-none-any.whl |
Total release size: 330.0 kB
Release files / absnoise-0.17.1.tar.gz
| Download URL | absnoise-0.17.1.tar.gz |
|---|---|
| Size | 228.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83309ace0e64b3c3f31b66937d5a3b8f2ab7216967bb51252f76c3021fa36242
|
|
BLAKE2b-256 checksum How to use checksums |
940357e3dc701daf5246278ccf1e31be0777ca1f6fe5eea8ecf0763e48ffefc9
|
| 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 Dec 3, 2026.
Transparency logRelease files / absnoise-0.17.1-py3-none-any.whl
| Download URL | absnoise-0.17.1-py3-none-any.whl |
|---|---|
| Size | 102.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
244725c81627d3e45209ed276e73c9b49405705b0535426dae0f676813fd9f0b
|
|
BLAKE2b-256 checksum How to use checksums |
dd782c38558f6a60dcae127aa159ec0a602af64cd1cbb311841cc43c4a1a15f3
|
| 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 Dec 3, 2026.
Transparency logSecurity for absnoise 0.17.1
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 absnoise-0.17.1.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 Dec 3, 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.