Spectral phase#

class lasy.optical_elements.SpectralPhase(phase, omega)[source]#

Class for an optical element that adds a spectral phase to a laser pulse.

The amplitude multiplier corresponds to:

\[T(\omega) = \exp(i(\phi(\omega)))\]

where \(\phi(\omega)\) is the spectral phase.

Parameters:
phase1D ndarray of floats (in rad)

Phase that should be applied to the laser pulse. The phase is assumed to be unwrapped.

omega1D ndarray of floats (in rad/s)

Angular frequencies at which the phase is defined.

amplitude_multiplier(x, y, omega)[source]#

Return the amplitude multiplier.

Parameters:
x, y, omegandarrays of floats

Define points on which to evaluate the multiplier. These arrays need to all have the same shape.

Returns:
multiplierndarray of complex numbers

Contains the value of the multiplier at the specified points.