Skip to main content

A Rydberg Interaction Calculator

Project description

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

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, singlet sector Sr88_singlet 10.1103/PhysRevA.108.022815 (2023)
10.17169/refubium-34581 (2022)
Sr88 SQDT, triplet sector Sr88_triplet 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)
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]

  • MQDT.jl - Learn how to calculate states and matrix elements using multi-channel quantum defect theory with our tool written in Julia.

  • RydState - Learn how to calculate Rydberg states and matrix elements using single 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 - Julia package for 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pairinteraction-2.5.1.tar.gz (251.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pairinteraction-2.5.1-cp312-abi3-win_amd64.whl (28.7 MB view details)

Uploaded CPython 3.12+Windows x86-64

pairinteraction-2.5.1-cp312-abi3-manylinux_2_28_x86_64.whl (71.2 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ x86-64

pairinteraction-2.5.1-cp312-abi3-macosx_15_0_x86_64.whl (48.2 MB view details)

Uploaded CPython 3.12+macOS 15.0+ x86-64

pairinteraction-2.5.1-cp312-abi3-macosx_14_0_arm64.whl (46.9 MB view details)

Uploaded CPython 3.12+macOS 14.0+ ARM64

pairinteraction-2.5.1-cp311-cp311-win_amd64.whl (28.7 MB view details)

Uploaded CPython 3.11Windows x86-64

pairinteraction-2.5.1-cp311-cp311-manylinux_2_28_x86_64.whl (71.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pairinteraction-2.5.1-cp311-cp311-macosx_15_0_x86_64.whl (48.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

pairinteraction-2.5.1-cp311-cp311-macosx_14_0_arm64.whl (46.9 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

pairinteraction-2.5.1-cp310-cp310-win_amd64.whl (28.7 MB view details)

Uploaded CPython 3.10Windows x86-64

pairinteraction-2.5.1-cp310-cp310-manylinux_2_28_x86_64.whl (71.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pairinteraction-2.5.1-cp310-cp310-macosx_15_0_x86_64.whl (48.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

pairinteraction-2.5.1-cp310-cp310-macosx_14_0_arm64.whl (46.9 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file pairinteraction-2.5.1.tar.gz.

File metadata

  • Download URL: pairinteraction-2.5.1.tar.gz
  • Upload date:
  • Size: 251.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pairinteraction-2.5.1.tar.gz
Algorithm Hash digest
SHA256 fb198e6b84a35e96ed17ae8e69dcbf63cf070e2d736c3f9e4aeba59cb10c20af
MD5 60fa292ca36794bdf00fd7e46bd563f6
BLAKE2b-256 aae9d39d32645080334a002af7174643a7a13d86bc58158f5ed40b6dc45868c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1.tar.gz:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pairinteraction-2.5.1-cp312-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.5.1-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 653c105863dc60b20bd8618c02bf8af5af3c86caa7cb3d3f4b5bd63c3332b9e4
MD5 45d7f87905c7d5ff56bd7f84f23d75f5
BLAKE2b-256 c9e353e0ac5c7134f4ca985d8a7f3e742f2bfce49fc2147fc789ef4841a41f88

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1-cp312-abi3-win_amd64.whl:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pairinteraction-2.5.1-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.5.1-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 719558520ce40e5f6c8c00622609146e29b634a6e0eb7cd508c3fa306b9a02d6
MD5 fe055df147f83255ca5679de362b5dac
BLAKE2b-256 9d9760203269ea3d0538eb09a7977b1efa130b853301e229a7b97225937c1fee

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1-cp312-abi3-manylinux_2_28_x86_64.whl:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pairinteraction-2.5.1-cp312-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.5.1-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 5a55ddfb81168ff8717323bf0043abc1df7a466e2e2a07d195d3a32325117423
MD5 6cd8bffb24b8407d9b2c2d229e2d54fd
BLAKE2b-256 4aaf155cc9b0b6ec10bec5cdcfb95ae345bcc25327e626e2e9563c7ac22897ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1-cp312-abi3-macosx_15_0_x86_64.whl:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pairinteraction-2.5.1-cp312-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.5.1-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 83fdcc060985ac358d9af8f5883cc39e8229bf76ffcc6912563fa99beccddd81
MD5 c1426be89a380e5670381f143ac2a3f6
BLAKE2b-256 14fcb381ec6bdf309cfe588df7148e5cd4dcd880614a64a01a4d0ff4fb4a3a13

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1-cp312-abi3-macosx_14_0_arm64.whl:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pairinteraction-2.5.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.5.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f58a6a53d7b0619acfb2ec50c2130beda1411fbf278b51070965aa8695d5855d
MD5 266712b43614377e45d1b46defd29869
BLAKE2b-256 2e0bdcdb3bbb32ab12b18ab2a11040ea85e3b87ec1b04ec661946d55d2c5ceb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1-cp311-cp311-win_amd64.whl:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pairinteraction-2.5.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.5.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4b10b653a08bcb651a7a55df6b2ee98b6e24147b474887f3fe7c244eab373dce
MD5 c00cb26ce8903f941650ce5874a76ea0
BLAKE2b-256 f4cd332220ee2e0bc99cc71fd3716a7a1b092267a49a5700211b26a2d2c3fc6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pairinteraction-2.5.1-cp311-cp311-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.5.1-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 6935b0f5c733f95020cf4be6888b2458969395457001f9ba61eea7e344b6c03f
MD5 38771fc389709ab63bdd461374df47bb
BLAKE2b-256 b30f64cf1ce0fba9918ede737fc26cd25fdd22ba05bd5998287c67a4a696b38c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1-cp311-cp311-macosx_15_0_x86_64.whl:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pairinteraction-2.5.1-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.5.1-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f5fa2bad53d7425382d283a9bd92dcf3a7d08cdd0f54874cdb1c083b9cc2e49f
MD5 7f1a02bcbc9c492b1be31d63f034e27b
BLAKE2b-256 21660607dbe289469fcba1e8dda01bdaccfd4a4e854727dea9a4f7f433ae5c69

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1-cp311-cp311-macosx_14_0_arm64.whl:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pairinteraction-2.5.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.5.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a1d6865f15b9393e7a384f81903d32bd486b4970aace45a8f454da383a906229
MD5 9edcea7d504bb3775a6a99ab0fed03c3
BLAKE2b-256 5f2ad865580005086f5e3547a2a14f46959939bcd0e358cf206978582306f55c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1-cp310-cp310-win_amd64.whl:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pairinteraction-2.5.1-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.5.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 da508b37bddac53cde7a1189c3846059aac1f3cafba27b5121d65d8a21c4fa50
MD5 481433b2fd89c7730ad2a5f5a656ff86
BLAKE2b-256 2926a611b61ac815d43677687bef73aacef341ac770ec00d36d7e99791dcd5c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pairinteraction-2.5.1-cp310-cp310-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.5.1-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 caf0806aec48573cda7e5df832bef766bd6fa4c1e0c5ecda8068080d3545ba80
MD5 4cfc3b6db6d4625506b85694ef317311
BLAKE2b-256 51a2c994e6d8e6762d4ff61fe9f2454f1f3ce5d25b337baca13c4d8732927b1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1-cp310-cp310-macosx_15_0_x86_64.whl:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pairinteraction-2.5.1-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.5.1-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d7e3d1761011950a05ddf1c1bbc4a0091a2a2d2a012969278f83d7808267770a
MD5 5a622c55d00b1274a0c72b296a9d4c60
BLAKE2b-256 a28f2fbc040d0046bdccd6b184ceda3b664d1488375b3a6576616ed5bbd4606d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.5.1-cp310-cp310-macosx_14_0_arm64.whl:

Publisher: publish-pypi.yml on pairinteraction/pairinteraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page