- qspec.simulate. Interaction.master ( t , delta = None , m = 0 , v = None , y0 = None )[source]
Solver for the master equation. 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 / density matrix of the atom. This must be None or have shape (#states, ), (n or 1, #states) or (n or 1, #states, #states). If #states == n, it is interpreted as (n, #states). If None, the ground states are populated equally.
- Returns:
-
- outNone
The integrated master equation as a complex-valued array of shape (n, #states, #states, #times).