Skip to main content

Atomic Physics for Python

Project description


atomphys logo

A Python package to help with atomic physics calculations.

Tests Codecov GitHub PyPI Binder


Source Code:

atomphys is meant to be a good starting off point for your atomic physics calculations. It can automate much of the frustrating process of searching for and compiling physical data and simple pyhsical relations, and help you more quickly get to the good stuff.

It's designed with a natural interface and is easy to use.


>>> from atomphys import Atom
>>> Rb = Atom('Rb')

>>> print(Rb('S1/2').to('P1/2').λ.to('nm'))
795 nm

>>> print(Rb('P1/2').τ.to('ns'))
27.7 ns


To install atomphys, simply use pip:

$ pip install atomphys


  • Integration with Pint for robust handling of units
  • Automatically fetch energy level and transition data from the NIST Atomic Spectra Database
  • Use transition data to calculation state lifetimes, polarizabilities, transition dipole moments, cross sections, and saturation intensities


Python 3.6+

atomphys makes extensive use of the excellent package Pint to handle units.

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

atomphys-0.0.4.tar.gz (48.0 kB view hashes)

Uploaded source

Built Distribution

atomphys-0.0.4-py3-none-any.whl (50.9 kB view hashes)

Uploaded py3

Supported by

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