finesse.utilities.homs.HG_to_LG_matrix

finesse.utilities.homs.HG_to_LG_matrix(hgs, lgs)[source]

Returns a matrix that will convert a Hermite-Gaussian mode vector into Laguerre- Gaussian modes. The HG and LG modes provided to this function must contain all the required modes. A 2nd order HG mode will require 2nd order LG modes.

Parameters
hgsarray_like

Array of (n,m) indicies

lgsarray_like

Array of (p,l) indicies

Returns
Kmatrix

Matrix to multiply with a HG mode vector to get the equivalent LG modes.