Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

qspec.simulate. Polarization.def_q_axis  (  q_axis = 2 q_fixed = False  )[source]

Define the quantization axis. This changes either Polarization.x or Polarization.q, depending on q_fixed.

Parameters:
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).

q_fixedbool

Whether q (True) or x (False) should stay the same with the new quantization axis.

Returns:
outNone

API navigation