- qspec.simulate. Polarization.def_q_axis ( q_axis = 2 , q_fixed = False )[source]
Define the quantization axis. This changes either
Polarization.xorPolarization.q, depending onq_fixed.- Parameters:
-
- q_axisarray_like
The quantization axis. Must be an integer in
{0, 1, 2}or a 3d-vector. The default isq_axis = 2(z-axis).- q_fixedbool
Whether
q(True) orx(False) should stay the same with the new quantization axis.
- Returns:
-
- outNone