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. hyper_zeeman_12_d  (  j ,  m ,  a_hyper=0.0 ,  gi=0.0 ,  gj=0.0 ,  b_field=0.0 ,  g_n_as_gyro=False ,  as_freq=True  )[source]

The first derivatives $\partial E_\pm / \partial\mathcal{B}$ of the two eigenvalues of the hyperfine structure + Zeeman effect Hamiltonian for a nuclear spin of $I=1/2$ and the magnetic quantum number $m$, calculated analytically using the Breit-Rabi equation, see hyper_zeeman_12.

Parameters:
jscalar

The electronic total angular momentum quantum number $J$.

mscalar

The magnetic quantum number $m_F$.

a_hyperarray_like

The magnetic dipole hyperfine constant $A = \mu_I \mathcal{B}_J / (IJ)$ (MHz if as_freq else eV).

giarray_like

The nuclear g-factor $g_I$ or the gyromagnetic ratio $\gamma_I$ (MHz/T) if g_n_as_gyro is True.

gjarray_like

The electronic g-factor $g_J$.

b_fieldarray_like

The B-field $\mathcal{B}$ (T).

g_n_as_gyrobool

Whether gi is the nuclear g-factor (False) or the gyromagnetic ratio $\gamma_I$ (True). The default is False.

as_freqbool

The derivatives can be returned in energy (False, eV/T) or frequency units (True, MHz/T). The default is True.

Returns:
(x0, x1)tuple[ndarray, ndarray]

The first derivatives of the two solutions of the Breit-Rabi equation, where x0 and x1 correspond to $F = J \mp 1/2$, respectively (MHz/T if as_freq else eV/T).