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.7.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.7.0
File Size Uploaded
pairinteraction-2.7.0.tar.gz 266.8 kB Details

Built distributions (wheels)

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

Total release size: 585.9 MB

Release files / pairinteraction-2.7.0.tar.gz

Download URL pairinteraction-2.7.0.tar.gz
Size 266.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4d6743d995011614da451395c3fdd1aa39b6e5e2f19478289ebacb34735430f5
BLAKE2b-256 checksum
How to use checksums
8ccc13edb0fc7d53465a415bda3211c847513dbf01907617d0bfb88d263e2a2e
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 21, 2026.

Transparency log

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

Download URL pairinteraction-2.7.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
1257aa193af55c9326112b5cb68250169fd7ffeaebe476d0aac755f04fc53edf
BLAKE2b-256 checksum
How to use checksums
bc8b461733259dae98d90bdcb8b2c599f27329d3b6cbfb362481c47da70190d8
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 21, 2026.

Transparency log

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

Download URL pairinteraction-2.7.0-cp312-abi3-manylinux_2_28_x86_64.whl
Size 71.5 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
13c7f0e94caee4e48615a547b88909c672aa83413d27a322e28a1048fcfce33d
BLAKE2b-256 checksum
How to use checksums
5dc9187bbadbdce313f7bac13b3de9b6b70c02a0f1cd08b2840c4c9601e34429
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 21, 2026.

Transparency log

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

Download URL pairinteraction-2.7.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
243a3c7b40c721e24b6f9bc5768465274f23bcbc2ddc51eab88f670ce2f5cab4
BLAKE2b-256 checksum
How to use checksums
4e6696390d4bac4fc85b06d0ae86cfbb1fb63102e3fa9fa1e118022214698162
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 21, 2026.

Transparency log

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

Download URL pairinteraction-2.7.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
d0f09aad98f8f34512cce6abb3fadaf848009e625684d985b6a44710b1988860
BLAKE2b-256 checksum
How to use checksums
1c7026f60951e33d628c35f75ae3b123435522be3988ceca3d71227ff52311bb
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 21, 2026.

Transparency log

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

Download URL pairinteraction-2.7.0-cp311-cp311-win_amd64.whl
Size 28.7 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
43f5bd6efd40e5f4dc5d803bdccea1e7a0ee0179695004ceef1769664465b03d
BLAKE2b-256 checksum
How to use checksums
dc0e90a6cc756ca33387b74918d06251d0e3264ec5a435fd7b869bfd61d57508
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 21, 2026.

Transparency log

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

Download URL pairinteraction-2.7.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 71.7 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
44e38edbfda04e73dc6c0cfdd272371b8f4a3baf4af54c8dacf00e16c66b7948
BLAKE2b-256 checksum
How to use checksums
e4f88e99a13389ef0d731838c278fb332713dbaa14d2c4c521214b5dd39b76f4
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 21, 2026.

Transparency log

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

Download URL pairinteraction-2.7.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
7d7ff1a789b2a4122b2da1b12def1e76e0473c9cc0b2ed6c56890bf47ed3617b
BLAKE2b-256 checksum
How to use checksums
bff89aa057a8de72bf28283e89e3370b717e751380b1fb22617554a83b695f8d
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 21, 2026.

Transparency log

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

Download URL pairinteraction-2.7.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
dea381b7ae5baec1d32be3ff97327a824a81b6f07d4a15bc485ac13d0bf11c6b
BLAKE2b-256 checksum
How to use checksums
f734eb5cedf96b7388bfc7eab4adcc5364bdaf0c2e56ac496a2217393139cc4d
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 21, 2026.

Transparency log

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

Download URL pairinteraction-2.7.0-cp310-cp310-win_amd64.whl
Size 28.7 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
461403e28c230106b9b25834fdebea26114e5c099be882a52f61f20a9312f254
BLAKE2b-256 checksum
How to use checksums
8974a1fc7f858502dab406630d542c2be874a5c8f1516559ac0161d572afc843
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 21, 2026.

Transparency log

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

Download URL pairinteraction-2.7.0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 71.7 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a72d5bd2d7c61e8e23ea4b3d0eb04fcdb834d524f7dc3db5044d070b1f90d8f9
BLAKE2b-256 checksum
How to use checksums
c6969d8bb911f61632a58aeb964a2fad03fa42b279a0b73f99af5e4e181d74cf
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 21, 2026.

Transparency log

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

Download URL pairinteraction-2.7.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
553fa7d2365fffa701cf5a54ab4f5958fd7fe3c7b0974c940e3268167035fdb7
BLAKE2b-256 checksum
How to use checksums
a3e837a8ee9c507dfb67bd36d18699437f2c3a9ba116b787c8bb0b0da81adae2
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 21, 2026.

Transparency log

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

Download URL pairinteraction-2.7.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
cb57bc87bfa69b719a4f957c6ad4fd2f3bbd53e808a52b6d703c610ecab5bc2d
BLAKE2b-256 checksum
How to use checksums
a63db67d90940e78e8915387cfcb9b24589d17597548ebae9b54006a0b239d6b
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 21, 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