Getting Started
To get started with atomphys, you can install it with pip:
pip install atomphys
To start with, import the Atom
object, and use it to create a Cesium atom. By default, this will automatically populate with all of the states and transitions in the NIST Atomic Spectra Database.
from atomphys import Atom
Cs = Atom('Cs')
Cs
States
You can then lookup states either by index (the states are energy ordered), or by searching by term symbol:
Cs(1)
Cs('P3/2')
You can access properties of a state like the energy or lifetime.
Cs('P1/2').energy
Cs('P1/2').τ
Cs('P1/2').lifetime
By default atomphys uses atomic units. You can use pint to convert to units of your choice.
Cs('P1/2').τ.to('ns')
(1 / Cs('P1/2').lifetime ).to('MHz')
Transitions
You can access transitions origination from a state,
Cs('S1/2').to('P1/2')
as well as properties of that transition, such as wavelength, dipole matrix element, and saturation intensity
Cs('S1/2').to('P1/2').λ.to('nm')
Cs('S1/2').to('P1/2').matrix_element.to('e a0')
Cs('S1/2').to('P1/2').Isat.to('mW/cm^2')