- qspec.simulate.Laser ( freq , intensity = 1.0 , polarization = None , k = None , instance = None )[source]
Class representing a laser that has a frequency $\nu$, an intensity $I = \frac{1}{2}\varepsilon_0c\vec{E}^2$, a polarization $\vec{\varepsilon} = \vec{E} / |E|$ and a direction $\vec{k}$.
- Parameters:
-
- freqarray_like
The frequency $\nu$ of the laser (MHz).
- intensityarray_like
The intensity $I$ of the laser $(\mu\mathrm{W} / \mathrm{mm}^2 = \mathrm{W} / \mathrm{m}^2)$.
- polarizationarray_like | qspec.simulate.Polarization
The polarization of the laser $\vec{\varepsilon}$ as a complex vector in cartesian coordinates or as a
Polarization
object.- karray_like
The direction of the laser $\vec{k}$. The user input is normalized to a vector with length 1.
- instanceqspec.simulate.Laser | ctypes.LP_c_char
An existing
Laser
instance. If this is specified, the other parameters are omitted.