Skip to content

pairinteraction

Python library and GUI for computing Rydberg atom properties and pair potentials

Weak copyleft (OSI) · LGPL-3.0-or-later or GPL-3.0-or-later
  • Linux

Listed by , founder & editor

48

Health

Slowing

Overview

Stars

58

Last commit

22 days ago

Nov 2026

Repository age

10 years

since Sep 2016

Latest version

v2.7.0

Sep 2026

Contributors

–

2 active in 90 days

Releases

6

last 12 months

Language

Python

PairInteraction calculates properties of Rydberg atoms. It ships as a Python library and a graphical interface, both backed by a C++ core. You can use it to get single-atom properties and to compute pair potentials.

It supports alkali atoms and hydrogen, divalent atoms such as Sr and Yb, and the Sr88 Rydberg ion. It uses single-channel and multi-channel quantum defect theory. Electric and magnetic fields in arbitrary directions can be included, and diamagnetism is supported. Pre-calculated matrix elements are downloaded and cached locally when needed. The authors report a 5 to 20 times speedup over other implementations for Hamiltonian construction and diagonalization.

Install it with pip on Python 3.10 or newer, then start the GUI with the pairinteraction command. A Flathub package exists for Linux. It is dual licensed under LGPL-3.0-or-later or GPL-3.0-or-later. Version 2 is not backward compatible with versions below 1.0.

Who it's for

Atomic physics researchers

It computes pair potentials with fields and MQDT for common species.

Skip if: Your species is not supported and you cannot contribute quantum defects.

Graduate students learning Rydberg physics

The GUI and a short Python quick start make exploration easy.

Skip if: You need a general quantum simulation toolkit.

Python users scripting parameter sweeps

The library exposes the same calculations to your own code.

Skip if: You are on a Python older than 3.10.

The problem it solves

Modeling Rydberg atoms and their interactions needs large Hamiltonians that are slow to build and diagonalize. This tool provides optimized, ready-made calculations so you do not write them yourself.

Strengths

  • Reported 5-20x speedup over other implementations
  • Supports both SQDT and MQDT descriptions
  • Handles electric and magnetic fields in any direction
  • Installs with pip and has a GUI

Trade-offs

  • Limited to the listed atomic species
  • Version 2 is not compatible with versions below 1.0
  • Matrix element tables are downloaded when needed
  • Narrow scientific focus

Self-host pairinteraction

Self-hostable
No (desktop or local app)

Quick start

pip install pairinteraction

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is it free?

Yes. It is open source under LGPL-3.0-or-later or GPL-3.0-or-later.

How do I install it?

Run pip install pairinteraction with Python 3.10 or newer.

Does it have a GUI?

Yes. Launch it by running pairinteraction from the command line.

Which atoms are supported?

Alkali atoms and hydrogen, divalent atoms such as Sr and Yb, and the Sr88 ion.

Similar tools in Simulation software

QSpeakers

Simulation software

59 6 6 days ago Slowing GPL-3.0

optics-lab

Simulation software

44 2 32 days ago Slowing Apache-2.0

SimulIDE

Simulation software

6 3 7 months ago Dormant AGPL-3.0

CircuitSim

Simulation software

4 8 months ago Slowing Apache-2.0