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. lambda_ge_rec  (  t ,  n ,  delta ,  a_ge ,  a_me ,  s ,  f ,  m ,  p0=None ,  dt=None ,  time_resolved=False ,  show=False  )[source]

The evolution of the density matrix of a $\Lambda$-system, such as the alkali metals or the singly-charged alkaline-earth metals, driven by a single laser, taking into account photon recoils. The states are $|g_k\rangle$ and $|m_k\rangle$, the two ends of the $\Lambda$, and the intermediate state $|e_k\rangle$, ordered as $(g_0, m_0, e_0, g_1, m_1, e_1, \dots, g_n, m_n, e_n)$, where $k$ is the number of photon recoils. The photon recoils are modeled using a discrete subspace and not the continuous momentum space. The number of photon recoils increases by one when the system is excited from $|g\rangle$ to $|e\rangle$. Vice-versa, the number of photon recoils decreases by one when the system is deexcited from $|e\rangle$ to $|g\rangle$ via stimulated emission. When the system decays into $|g\rangle$ via spontaneous emission, described by the Einstein coefficient a_ge, the number of photon recoils does not change.

Parameters:
tarray_like

The time $t$ after which the density matrix is returned (μs). If all times from 0 to t are required, use time_resolved=True.

nint_like

The maximum number $n$ of photon recoils to consider.

deltascalar

The detuning of the laser relative to the $g\rightarrow e$ transition (MHz).

a_gescalar

The Einstein coefficient of the $e\rightarrow g$ transition ($2\pi\,\mathrm{MHz}$).

a_mescalar

The Einstein coefficient of the $e\rightarrow m$ transition ($2\pi\,\mathrm{MHz}$).

sscalar

The saturation parameter of the $g\rightarrow e$ transition.

fscalar

The transition frequency of the $g\rightarrow e$ transition (MHz).

mscalar

The mass of the atom (u).

p0array_like | None

The initial density matrix. Must either have shape (6, ), containing the elements [gg, mm, ee, gm, eg, em] without recoil, or be the full flattened density matrix with all the recoil information. If None, initially all population is in the state $|g_0\rangle$.

dtscalar | None

The width of the time steps (μs). If None, it is 0.1 / (a_ge + rabi) with the Rabi frequency of the laser.

time_resolvedbool

Whether to return the complete history of the result. If True, a 2-tuple (t, rho) is returned, where rho has shape (t.size, 3 * (n + 1)) and t is an array of equally spaced times, such that numerical integrations can be performed easily.

showbool

Whether to plot the result.

Returns:
rho_diagndarray | tuple[ndarray, ndarray]

The diagonal density matrix elements after the time t.

Raises:
ValueError

If t is not a scalar or if p0 has the wrong size.