Skip to main content

A Rydberg Interaction Calculator

Project description

PairInteraction - A Rydberg Interaction Calculator

PyPI Package arXiv:1612.08053 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 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.4.0.tar.gz (248.3 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.4.0-cp312-abi3-win_amd64.whl (28.6 MB view details)

Uploaded CPython 3.12+Windows x86-64

pairinteraction-2.4.0-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.4.0-cp312-abi3-macosx_15_0_x86_64.whl (48.2 MB view details)

Uploaded CPython 3.12+macOS 15.0+ x86-64

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

Uploaded CPython 3.12+macOS 14.0+ ARM64

pairinteraction-2.4.0-cp311-cp311-win_amd64.whl (28.6 MB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.11macOS 15.0+ x86-64

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

Uploaded CPython 3.11macOS 14.0+ ARM64

pairinteraction-2.4.0-cp310-cp310-win_amd64.whl (28.6 MB view details)

Uploaded CPython 3.10Windows x86-64

pairinteraction-2.4.0-cp310-cp310-manylinux_2_28_x86_64.whl (71.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.10macOS 15.0+ x86-64

pairinteraction-2.4.0-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.4.0.tar.gz.

File metadata

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

File hashes

Hashes for pairinteraction-2.4.0.tar.gz
Algorithm Hash digest
SHA256 541c29de3da6404af9e375da520aa8a7dd24462047ccc2f58145cc30bf355556
MD5 6354d29f708bb1e1ac3d43dd400d0a14
BLAKE2b-256 12a6b265096eec558294a9d1a638e81cedd4a25fd63cc92d358b79adb84b875f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0.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.4.0-cp312-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.4.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e915822c6e84e065db9a8d2ed65fe8ca7f3885503dddd03991956175b8330d2a
MD5 25c68333409b9dfc620874cce2e2c2b8
BLAKE2b-256 b7afcd85e338342ffb84d356bb2104faf2eceb3d3a70d0c6b5bd64f028d169b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0-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.4.0-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.4.0-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6a6b26c99b8fc2a916987da1281bdbbaf9673d1ce397eb034a10aa6654952286
MD5 75e8571e7ffcf8049b8c0abda1b9f2e6
BLAKE2b-256 7b27567b033bb6bfd56fb9d2fc35b85e204c70bd702df0a9ad2d97fbbd2b56ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0-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.4.0-cp312-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.4.0-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 750c5f9092ec59bb3b1f3f367a8f2632f48282eaedf911369156987a99ca065e
MD5 bce68473acdf72fa1a0c9e064e39b13b
BLAKE2b-256 2b0e3aa5d1f86ee544744aff3d34d41efd6e247f7bd74a24194c84cf21fc43c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0-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.4.0-cp312-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.4.0-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e959d3f4dc136f8b9f0a23d3c9b3d6ccf7016ecfa77fa11a4ea2f64232d10e2e
MD5 7b0daf9e8d266de0b1ee504648d9f268
BLAKE2b-256 bfc71dd70c0e99d0572c23242b870dcbc5a7f1e8bbea5a5d103e5f89418972a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0-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.4.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 309aee48c9b9ba33f14bec63d5164d2b64933e89b2c9de6f690bc4a1465fefca
MD5 a96d5fd586d77b4cb493ec40dd53d7a3
BLAKE2b-256 17c05fce773607f435679387408f5ebf61d20c23f1c30028a3dba183da362933

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0-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.4.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.4.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2452b6386ec9c97fe265e6367adf97c14365312020984a3f22888c0ead3ef61a
MD5 c6e98870d3685e0dc3212426f6deaea8
BLAKE2b-256 296f8f728797e55c4850097ab4def21812d805bd0dc36550321fab7e46970bed

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0-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.4.0-cp311-cp311-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.4.0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 ba5e2cf8b01dabaed1d3b74c22fe299abfd3b5ecf3bd87a034b969132bbfd5b5
MD5 e7763c8232a466f6ddcfa59f0bfbbaf6
BLAKE2b-256 37a5efae7f83e436d8baff659fca0bf26cb45f17a82fad3af1df5d0b48df6dc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0-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.4.0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.4.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2c67e241f6e8e386dd10b9c9b29773569f1fc61f90c1bca5253b573f22481268
MD5 81a63c4743c8459317f8b4c98f9e52c9
BLAKE2b-256 5b49099ffe0779a39928268689fcf2fca0d0bf0d869e975be3cab8678d2dfc75

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0-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.4.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 09b5886e394c72cf6dfaeebf62edeca759c6ad25d0c1d775436fbd6bd7dca3a4
MD5 406f5ca60aac3136e7256ab94cf48b80
BLAKE2b-256 f1bf407852c703fe5710ebb74e8e44f9c9458095b667a56f2b1cdcc193cf2c4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0-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.4.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.4.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 29804b1cf11a676abc7eeb64c37992175b9a375a91ffb95d95bbe6656e91ee40
MD5 33792aa5b7f95befe5ed2ef2f0451e03
BLAKE2b-256 e29baa2959da7f9440d842fb97f7c41c4eb4c9eca33c01709a61ef0a6b52e602

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0-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.4.0-cp310-cp310-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.4.0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 5971b48ffa9a4fab4370b7524cfdbdc85bc348e82dfb8988b21726f7b4936e5b
MD5 2a244be444961b76392ed9843067242b
BLAKE2b-256 599cb5fed0555b921405b89fbbe663051054d182461da70c8a364d69bcc8d28f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0-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.4.0-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pairinteraction-2.4.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 768729a15c6cfcec55476f67fbaab60b2eb6aab67fcdec9e4b6f04d03f3944d8
MD5 1f9e1ce2a41f66812fb3b57799bd0ff2
BLAKE2b-256 b3fdc8585b339489b7261a963b926fafa19ad2dae96870d7386e5377915341a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pairinteraction-2.4.0-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