Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

qspec.simulate. Interaction.rates  (  t delta = None m = 0 v = None y0 = None  )[source]

Solver for the rate equations. Solutions for n samples can be calculated in parallel.

Parameters:
tarray_like

The times when to compute the solution (us).

deltaarray_like

An array of frequency shifts for the laser(s) (MHz). 'delta' must be a scalar or a 1d- or 2d-array with shapes (n, ) or (n, #lasers), respectively.

mOptional[int]

The index of the shifted laser. If delta is a 2d-array, 'm' ist omitted.

varray_like

Atom velocities (m/s). Must be a scalar or have shape (n, ) or (n, 3). In the first two cases, the velocity vector(s) is(are) assumed to be aligned with the x-axis.

y0array_like

The initial state of the atom. This must be None or have shape (#states, ) or (n, #states). If None, the ground states are populated equally.

Returns:
outNone

The integrated rate equations as a real-valued array of shape (n, #states, #times).

API navigation