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]

Defines the quantization axis. This changes either 'x' or '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 2 (z-axis).

q_fixedbool

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

Returns:
outNone

API navigation