finesse.components.laser.Laser.get_output_field

Laser.get_output_field(homs)[source]

Get optical field outputted as a HOM vector.

Returns the complex amplitude of the modes specified in homs. This does not respect the add_gouy_phase` attribute of the laser element and will always return the complex amplitude without the gouy phase. If the gouy phase is required then it is recommended to use a FieldDetector at the laser output with add_gouy_phase set to True.

Parameters:
homssequence

Collection of (n, m) higher order modes to retrieve the output field for. Typically this is just the model.homs value. The output E vector will match the ordering of homs.

Returns:
sequence

The output fields for homs. If a given (n, m) has no defined coefficients, its field defaults to 0.