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.5.0.tar.gz (255.7 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.0-cp312-abi3-win_amd64.whl (28.7 MB view details)

Uploaded CPython 3.12+Windows x86-64

pairinteraction-2.5.0-cp312-abi3-manylinux_2_28_x86_64.whl (71.9 MB view details)

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

pairinteraction-2.5.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.5.0-cp312-abi3-macosx_14_0_arm64.whl (46.9 MB view details)

Uploaded CPython 3.12+macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pairinteraction-2.5.0-cp311-cp311-manylinux_2_28_x86_64.whl (72.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.11macOS 15.0+ x86-64

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

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pairinteraction-2.5.0-cp310-cp310-manylinux_2_28_x86_64.whl (72.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.10macOS 15.0+ x86-64

pairinteraction-2.5.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.5.0.tar.gz.

File metadata

  • Download URL: pairinteraction-2.5.0.tar.gz
  • Upload date:
  • Size: 255.7 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.0.tar.gz
Algorithm Hash digest
SHA256 b6086b0669732bb98b09a21bbf590729af9bdb7a54ccc096398d671a4bd4e780
MD5 29d532fe676d1cf1d871d3f5d3bce18b
BLAKE2b-256 0908651ec52e2babd60d8b3ae75a431732ee84bc98e6ac9d106559e01891be6b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pairinteraction-2.5.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7ded0d9ae2493d9a4d41bbba101c682b7ba7e9785af304b1f4ee20fd488b23f2
MD5 3393c1b42a540c86da5410760c8863c6
BLAKE2b-256 aec49e52bc97df044bf03ee417b085a3e644bebfe8bad0cbce0f5ed56d9fde65

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pairinteraction-2.5.0-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cb5f5fbd9d4b4f17e13cb9e61a8359e2e9433415821f822ec21c55d4638fc3ef
MD5 129c04133f20b54c81619193a7e4a734
BLAKE2b-256 be539c025ca76198037a0330558406ba83446279c1c9fe61dd07ed8c728a6830

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pairinteraction-2.5.0-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 79dae88097a99aac09238d74259a2c795615893315e207612ea17ac41d38cb20
MD5 c8c766302a54bab2fc5130cbf7b93f6a
BLAKE2b-256 cabe1ef9a9f947c05343e25b1c0303c90bb8b51f727b27318654f5210e9fd8c6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pairinteraction-2.5.0-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 adc4cb94660ff9a089fee970bacfa71d64bf1a41da81b96afe76f27d6592da30
MD5 ab1e1bf9cb9818e9377e500f5b20d40d
BLAKE2b-256 e3848ae8090a1d0bc61b2b31df50085a1e00fd339001d73a71dfe6e6e49e139e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pairinteraction-2.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 69ebe63fc668e660ef3cbb1f21ca04d3f38ffad32cda4530bb0ab4a1d6b28741
MD5 f7fab9dbc187acf18bb3d0c3258109f3
BLAKE2b-256 22c197b88f1ea40900995aa7f1ce1a4c779a70eeaf4a45b994524288875cea78

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pairinteraction-2.5.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eaa30a2cd3f020de8b152bb79097cf590aca74e2bcedb49db48240cf51b61c92
MD5 713abfcbe2b8543fd9b3f683fbec780a
BLAKE2b-256 d94089783f03538ca868cd1eb7a347195e65e66a3a8042f16d09cd559dd6fba3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pairinteraction-2.5.0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 d348551a81bc35189bd34112d8d338d09dfc2d6b45a7142aede6e623e9fc92e8
MD5 bb1324f1f79609a96a67e4344a20e34d
BLAKE2b-256 0f081e2fd4da410d32e2ab4feea7c5178e2e493931070de490749785d949f38b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pairinteraction-2.5.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c316a2351084348ee9a395ee2838f5346a89e776970422ae0b685666ca993755
MD5 30a27d7a4d583de142178cef18dfd1ee
BLAKE2b-256 33df50dbc507b9be48b10b08cf8b843b418dc1f9104257aa8198e5fe3aa9776b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pairinteraction-2.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e21d4f17778bcc11bdaf1ca3a94bd09d1cdb136dded65c59070bbcfef6f31437
MD5 2283350a15724fc0363a11e2c2992f8d
BLAKE2b-256 6c76b57feded009e7c71bd227f1375ae6a610e407f53c83d5e30e7b28c33c485

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pairinteraction-2.5.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7d516f535c32eb4c6c355b47fa51ca3bdbab9294659da760e3b958f223bf6928
MD5 d6511695d0313361b28f10e70267ffab
BLAKE2b-256 e0e2babe78e53750f7569c679f5f1d506eea8e37152db183b0b48bd8131845f9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pairinteraction-2.5.0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 2db401365bd776f05191f1f956196e57c862340a440744c27a4d206ed3a8e321
MD5 33f0458d35108ca71d4029153166c8f9
BLAKE2b-256 cd1ba595a0678f19fcdda8357962e67b793901f18a3b2c9acfeee64f492a64f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pairinteraction-2.5.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d531e0e7cabd94438c6cdf7138b43cee2e3af054373064cb8c17a6eb95961465
MD5 e3a51996f595b73727b6d96835f7becc
BLAKE2b-256 d0ed11ca0a606c9f36c0809adf1cfd7d937a6f0f7248795641722bcd405bde82

See more details on using hashes here.

Provenance

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