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.ScatteringRate. set_b  (  b  )[source]

Set the magnetic field for all states and update the quantization axis and the resonance positions.

Parameters:
barray_like | None

The magnetic field vector or its $z$-component. If None, there is no magnetic field.