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.Laser. get_kpol  (  k ,  electric ,  q_axis=2  )[source]

The irreducible tensor polarization of the laser for a multipole order.

Parameters:
kint

The multipole order $k \geq 1$.

electricbool

Whether the electric (True) or the magnetic (False) field component is returned.

q_axisarray_like

The quantization axis. Must be an integer in {0, 1, 2} or a 3d-vector. The default is q_axis = 2 (z-axis).

Returns:
polndarray

The rank-k electric or magnetic irreducible tensor polarization in the helicity basis for the given quantization axis.