Skip to main content

PairInteraction - A Rydberg Interaction Calculator

PyPI Package arXiv:2605.14993 License: LGPL v3 CI Workflow Quality Gate Status C++ Coverage - pytest Python Coverage - pytest Documentation

Note: This is a completely new version of the PairInteraction software that is not backward compatible to versions below v1.0.

The PairInteraction software calculates properties of Rydberg atoms. The software consists of a Python library and a graphical user interface for obtaining single-atom properties and calculating pair potentials, making use of a high-performance C++ backend. For a more detailed description of the software that is written to be accessible also to non-specialists, see the About page of the project. The software can be installed via pip (requires Python >= 3.10, for tips see our extended installation instructions):

pip install pairinteraction

You can use the PairInteraction software as a Python library, see our quick start guide to get started in 5 minutes, or you can launch its graphical user interface from the command line:

pairinteraction

Supported Species

  • Alkali atoms and hydrogen: H, Li, Na, K, Rb, Cs
  • Divalent atoms: Sr88_sqdt, Sr87_mqdt, Sr88_mqdt, Yb171_mqdt, Yb173_mqdt, Yb174_mqdt
  • Rydberg ions: Sr88_ion

Species whose identifier ends with _mqdt are described by multi-channel quantum defect theory (MQDT), all other species by single-channel quantum defect theory (SQDT). For the underlying quantum defects and the publications to cite, see the quantum defect references. Is your species missing? Contributions of quantum defects are very welcome, please do not hesitate to contact us.

Highlights

  • For calculating Rydberg pair potentials, the software uses a similar approach to the old version of PairInteraction, the Alkali.ne Rydberg Calculator, and the rydcalc library. We optimized the construction and diagonalization of Hamiltonians, typically achieving a speedup of 5-20x compared to other implementations.

    benchmarking results

    Figure: Benchmarking the construction and diagonalization of a Hamiltonian of a pair of Rb 60S atoms for 100 different internuclear distances on an AMD Ryzen 7 5700G CPU using Windows 11. The Hilbert space comprises pair states that differ at most by 4 in n, l and 25GHz in energy. When supported, symmetries were used to reduce the Hilbert space size. See the benchmarking tool.

  • The software uses single-channel quantum defect theory (SQDT) and also multi-channel quantum defect theory (MQDT) for the accurate description of atoms.

    The construction of Hamiltonians is accelerated by using pre-calculated matrix elements, which are stored in database tables. These tables are automatically downloaded from GitHub [1,2] and cached locally when needed.

  • Electric and magnetic fields in arbitrary directions can be included in the calculations. Diamagnetism is supported.

How to Cite

If you use PairInteraction in your research, please cite our paper:

Johannes Mögerle, Frederic Hummel, Alicia Keil, Tangi Legrand, Eduard J. Braun, Henri Menke, Jonathan King, Beatriz Olmos, Sebastian Hofferberth, Hans Peter Büchler, Sebastian Weber, Accurate Modeling of Rydberg Atoms and Their Interactions: Theory and Implementation in PairInteraction, arXiv:2605.14993

If you would like to read more about the underlying theory and methods, we also refer to the original tutorial paper:

Sebastian Weber, Christoph Tresp, Henri Menke, Alban Urvoy, Ofer Firstenberg, Hans Peter Büchler, Sebastian Hofferberth, Tutorial: Calculation of Rydberg interaction potentials, J. Phys. B: At. Mol. Opt. Phys. 50, 133001 (2017), arXiv:1612.08053

Quantum Defects

PairInteraction relies on quantum defects provided by the community. We encourage users to cite the relevant publications for their atomic species alongside PairInteraction.

Click to expand for quantum defect references
Element Model Identifier References
H SQDT H Schrödinger equation for hydrogen
Li SQDT Li 10.1017/CBO9780511524530 (1994)
10.1103/PhysRevA.34.2889 (1986)
Na SQDT Na 10.1088/0953-4075/30/10/009 (1997)
10.1070/QE1995v025n09ABEH000501 (1995)
10.1103/PhysRevA.45.4720 (1992)
K SQDT K 10.1088/0031-8949/27/4/012 (1983)
10.1016/0030-4018(81)90225-X (1981)
Rb SQDT Rb 10.1103/PhysRevA.83.052515 (2011)
10.1103/PhysRevA.74.054502 (2006)
10.1103/PhysRevA.74.062712 (2006)
10.1103/PhysRevA.67.052502 (2003)
Cs SQDT Cs 10.1103/PhysRevA.93.013424 (2016)
10.1103/PhysRevA.35.4650 (1987)
10.1103/PhysRevA.26.2733 (1982)
Sr88 SQDT Sr88_sqdt singlet sector: 10.1103/PhysRevA.108.022815 (2023)
singlet sector: 10.17169/refubium-34581 (2022)
triplet sector: 10.1016/j.cpc.2020.107814 (2021)
Sr87 MQDT Sr87_mqdt 10.1088/1361-6455/ab4c22 (2019)
Sr88 MQDT Sr88_mqdt 10.1088/1361-6455/ab4c22 (2019)
Sr88+ SQDT Sr88_ion urn:nbn:se:su:diva-184811 (2020)
10.1007/978-3-030-33770-4 (2019)
10.1007/BF01426593 (1991)
Yb171 MQDT Yb171_mqdt 10.1103/PhysRevX.15.011009 (2025)
10.1103/mzsv-rckx (2025)
Yb173 MQDT Yb173_mqdt MQDT model formulated by us
Yb174 MQDT Yb174_mqdt 10.1103/PhysRevX.15.011009 (2025)
10.1103/mzsv-rckx (2025)

The identifier can be used to specify an atomic species in the PairInteraction software.

Documentation

User Guide

  • Installation - Whether you prefer an installation via pip or compiling from source, we've got all the information you need.

  • Tutorials - Covering both the graphical user interface and the Python library, these tutorials enable you to leverage PairInteraction for your projects.

  • API Reference - Documentation of classes and functions of PairInteraction's Python library.

  • Publications - Find out more about the theory behind PairInteraction and how to cite it and the quantum defects you use.

  • FAQs - Frequently asked questions.

Contributor Guide

Utility Tools [External Links]

  • RydState - Learn how to calculate Rydberg states and matrix elements using single-channel and multi-channel quantum defect theory with our tool written in Python.

Contributors

The software is currently maintained by:

In addition, the following people contributed significantly to the current and/or previous versions of the software (ordered by date of first contribution):

  • Henri Menke - Former co-maintainer, Numerov integrator, contributions to the Python interface, continuous integration, packaging and binary builds
  • Johannes Block - Calculation of Rydberg pair potentials near surfaces via static Green tensor
  • Alexander Papageorge - Julia interface in legacy PairInteraction
  • Patrick Mischke - GUI button for fitting c3/c6 coefficients, archlinux package
  • Nicolas Zuber - Tutorial on Rydberg-ion interaction
  • Simon Hollerith - Documentation of the graphical user interface (not yet in new version)
  • Frederic Hummel - Multi-channel quantum defect theory, matrix elements
  • Eduard J. Braun - Perturbative calculations, installation instructions for Windows
  • Alicia Keil - Enhanced and redesigned calculation of Rydberg pair potentials near surfaces

We warmly welcome new contributions! Please see our contributor guide for more information!

The development of the PairInteraction software has been supported by the Institute for Theoretical Physics III of the University of Stuttgart, the Federal Ministry of Education and Research under the Grants QRydDemo and MUNIQC-Atoms, and the company Atom Computing. The development of the original version of the software started at the 5th Institute of Physics of the University of Stuttgart.

University of Stuttgart Federal Ministry of Education and Research Atom Computing

License

The PairInteraction software is licensed under LGPL v3. For more information, see LICENSE.txt.

Metadata

Release files for pairinteraction 2.6.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 pairinteraction 2.6.0
File Size Uploaded
pairinteraction-2.6.0.tar.gz 263.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pairinteraction 2.6.0
File
pairinteraction-2.6.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details
pairinteraction-2.6.0-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details
pairinteraction-2.6.0-cp312-abi3-macosx_15_0_x86_64.whl CPython 3.12 abi3 macOS 15.0+ x86-64 Details
pairinteraction-2.6.0-cp312-abi3-macosx_14_0_arm64.whl CPython 3.12 abi3 macOS 14.0+ ARM64 Details
pairinteraction-2.6.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
pairinteraction-2.6.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details
pairinteraction-2.6.0-cp311-cp311-macosx_15_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 15.0+ x86-64 Details
pairinteraction-2.6.0-cp311-cp311-macosx_14_0_arm64.whl CPython 3.11 CPython 3.11 macOS 14.0+ ARM64 Details
pairinteraction-2.6.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
pairinteraction-2.6.0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details
pairinteraction-2.6.0-cp310-cp310-macosx_15_0_x86_64.whl CPython 3.10 CPython 3.10 macOS 15.0+ x86-64 Details
pairinteraction-2.6.0-cp310-cp310-macosx_14_0_arm64.whl CPython 3.10 CPython 3.10 macOS 14.0+ ARM64 Details

Total release size: 585.4 MB

Release files / pairinteraction-2.6.0.tar.gz

Download URL pairinteraction-2.6.0.tar.gz
Size 263.8 kB
Tags Source
SHA-256 checksum
How to use checksums
07ada4e9b152bac48aa4eaaf7856e1650b3860b1e9e2eda209777956208681bf
BLAKE2b-256 checksum
How to use checksums
8fa46081c53b8165ab0dd05f5d1a3d90301e932551598288450d4bd20c3512ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / pairinteraction-2.6.0-cp312-abi3-win_amd64.whl

Download URL pairinteraction-2.6.0-cp312-abi3-win_amd64.whl
Size 28.7 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f4ab414ed8c339144864fa4d576823fc34922bc380136601cbc2bc6f24bebdfa
BLAKE2b-256 checksum
How to use checksums
bf19349a41d25e1482936d597a50093e5e680a85ea0c489b830c97e167f8aa38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / pairinteraction-2.6.0-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL pairinteraction-2.6.0-cp312-abi3-manylinux_2_28_x86_64.whl
Size 71.4 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
227c480183d09a38ec0fc14642ee1930b9bfd4b848079627441a666e8c7d3c15
BLAKE2b-256 checksum
How to use checksums
7197a38948ed1dc9b49f084557a7a30f29ba30f0e90ef905aab841a32fe26028
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / pairinteraction-2.6.0-cp312-abi3-macosx_15_0_x86_64.whl

Download URL pairinteraction-2.6.0-cp312-abi3-macosx_15_0_x86_64.whl
Size 48.2 MB
Tags CPython 3.12 abi3 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
f7e8a608e35dcf674cadf8f7a9157370d79c8d848abf0a2dcb88098a22fafcb2
BLAKE2b-256 checksum
How to use checksums
61f732b1accbe6a1243e5a85ef778e02750629dbe1ac6af9e8ccc21111eca160
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / pairinteraction-2.6.0-cp312-abi3-macosx_14_0_arm64.whl

Download URL pairinteraction-2.6.0-cp312-abi3-macosx_14_0_arm64.whl
Size 46.6 MB
Tags CPython 3.12 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
00647e39bb604db238445e5edb88f50b7034f15e4a7344f3c77fccd641c15985
BLAKE2b-256 checksum
How to use checksums
f83c88dbbc858d1209161efa01827ad6775696f9dee8ab0f0a2e2e72b42e14ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / pairinteraction-2.6.0-cp311-cp311-win_amd64.whl

Download URL pairinteraction-2.6.0-cp311-cp311-win_amd64.whl
Size 28.7 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
2c8fd3c28990d31a877b028d6169d79442c1fb03459be690a6179a0fb91410a6
BLAKE2b-256 checksum
How to use checksums
5a17383203cf0b099f553975f2085eaba05d185e5db9432a2233c167bf623aba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / pairinteraction-2.6.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL pairinteraction-2.6.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 71.6 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8d9e11f320b984c3615161825be4852702bdd14eba5d735a3c10b1b483509451
BLAKE2b-256 checksum
How to use checksums
ed5d239fb47df2c414e98e90fd5cfac6fa40eef6d97ad7c01c87f6f9d7179c30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / pairinteraction-2.6.0-cp311-cp311-macosx_15_0_x86_64.whl

Download URL pairinteraction-2.6.0-cp311-cp311-macosx_15_0_x86_64.whl
Size 48.2 MB
Tags CPython 3.11 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
1372fb82b4b758abfd10536236a258327f875fc3645d30fb2913dc4a749fab52
BLAKE2b-256 checksum
How to use checksums
fee6485d60109623cf9b93f52fb417171dc4e7c2dbdb2f695646bab71e4e63bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / pairinteraction-2.6.0-cp311-cp311-macosx_14_0_arm64.whl

Download URL pairinteraction-2.6.0-cp311-cp311-macosx_14_0_arm64.whl
Size 46.6 MB
Tags CPython 3.11 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
4f336cebd23cccd3497748395fdfb84421ffd94029868ad0516359b9296453c5
BLAKE2b-256 checksum
How to use checksums
57bd45db903eeb3f01905e67a1c316f86ed55ed702a9798347a8551c0696004d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / pairinteraction-2.6.0-cp310-cp310-win_amd64.whl

Download URL pairinteraction-2.6.0-cp310-cp310-win_amd64.whl
Size 28.7 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
ec235e27434801d00606f375489e29079438117cc0fe68f5034af87eb467f2ef
BLAKE2b-256 checksum
How to use checksums
7af787c33ddabcedf4e210b5b83ccd61e3863d54d63c6e61c366a0249749db96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / pairinteraction-2.6.0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL pairinteraction-2.6.0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 71.5 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d87d814b8c16af4850f1f33218b3c53bc33c5361c6b25d189122974c7445b909
BLAKE2b-256 checksum
How to use checksums
e1fc1b5eb517b61ada87c7660dbb329c2f50337659bdd2ac4a208a07ec08bf26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / pairinteraction-2.6.0-cp310-cp310-macosx_15_0_x86_64.whl

Download URL pairinteraction-2.6.0-cp310-cp310-macosx_15_0_x86_64.whl
Size 48.2 MB
Tags CPython 3.10 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
958e454c1f2f26a293d34a7295f7cc4d590c856fd6d54c7676280a3179c4108d
BLAKE2b-256 checksum
How to use checksums
2239a4890bf38fa09beda6ed7026658995657408295d6f777dc22e74e4fb3479
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / pairinteraction-2.6.0-cp310-cp310-macosx_14_0_arm64.whl

Download URL pairinteraction-2.6.0-cp310-cp310-macosx_14_0_arm64.whl
Size 46.6 MB
Tags CPython 3.10 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
3d99c6f764bef4e96f12371e92997dcfeb962d981a2385fd6c4ee387cc1bc8ce
BLAKE2b-256 checksum
How to use checksums
48a4d1433e08554ecd60c1fdfe518a1fa0e4d1ae8e8da1de62026ecf07f39d95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log
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