qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec.simulate. Atom  (  states=None ,  decay_map=None ,  mass=0  )[source]

An atom and its inner structure.

Parameters:
statesIterable[State] | None

The states $|\mathrm{[label]}\pi JIFm\rangle$ of the atom.

decay_mapDecayMap | None

The DecayMap connecting the atomic states. If None, an empty DecayMap is used.

massscalar

The mass $m$ of the atom (u).

Attributes:
d_emndarray

Multipole transition strengths ordered by the rank $k$, starting at k = 1 (dipole).

decay_mapDecayMap

The DecayMap connecting the atomic states.

ekndarray

A map of the electric multipole orders of the transitions between the states.

emkndarray

A map of the multipole orders of the transitions between the states.

gsndarray

The indexes of the states with the same label as the first state Atom.states[0].

instanceCppHandler

The wrapped C++ instance.

l0ndarray

The matrix $L_0$ of the partial spontaneous decay rates between the states ($2\pi\,\mathrm{MHz}$). $(L_0)_{ij}$ is the rate from state $j$ into state $i$, such that the column sums $\sum_i (L_0)_{ij}$ are the total decay rates $\Gamma_j$ (see Atom.get_gamma).

l1ndarray

The matrix $L_1$ of the (negative) damping rates of the density-matrix elements, derived from Atom.l0 ($2\pi\,\mathrm{MHz}$). It holds $(L_1)_{ij} = -\frac{1}{2}(\Gamma_i + \Gamma_j)$, where $\Gamma_i$ is the total decay rate of state $i$. The off-diagonal elements are the decay rates of the coherences and the diagonal elements $-\Gamma_i$ the population losses. Only spontaneous decay is included, i.e., there is no additional pure dephasing. In the master equation, $L_1$ is multiplied element-wise with the density matrix, $\dot{\rho} \leftarrow L_1\circ\rho$.

massfloat

The mass $m$ of the atom (u).

mkndarray

A map of the magnetic multipole orders of the transitions between the states.

sizeint

The number of states of the atom.

stateslist[State]

A list of the atom states $|\mathrm{[label]}\pi JIFm\rangle$.