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.ScatteringRate. generate_y  (  x ,  theta ,  phi ,  decimals=8  )[source]

The fluorescence spectrum for the direction of emission $\hat{e}_r(\theta, \phi)$ in the coordinate system of the detection geometry, see Geometry.

Parameters:
xarray_like

The frequency of light in the atom's rest frame (MHz).

thetaarray_like

The angle $\theta$ of the emission direction (rad).

phiarray_like

The angle $\phi$ of the emission direction (rad).

decimalsint

The precision of the vector calculus in considered decimal places.

Returns:
yndarray

The fluorescence spectrum for incident light with the frequencies x for the directions of emission defined by theta and phi with shape (x.size, theta.size, phi.size).