- qspec.models. HyperfineZeeman ( model , i , j_l , j_u , gi , gj_l , gj_u , f_l=None , f_u=None , q=None , rho_ml=None , rho_as_par=False , scale_par_with_shift=None , linear=False , label=None )[source]
-
A hyperfine structure model in an external magnetic field, summing the submodel over all allowed transitions $|F_lm_l\rangle\rightarrow|F_um_u\rangle$. The Zeeman shifts are calculated with
qspec.physics.zeeman_lineariflinearisTrue, else withqspec.physics.hyper_zeeman_num. The relative intensities are the Racah intensitieshf_int, multiplied by the squared Clebsch-Gordan coefficients, the polarization components $q_{m_u - m_l}$ and the lower state populations $\rho(F_l, m_l)$. In addition to the parameters ofHyperfine, the magnetic field is the parameterB_field(T).- Parameters:
-
- modelModel
A submodel whose parameters are adopted by this model.
- iscalar
The nuclear spin quantum number $I$.
- j_lscalar
The electronic total angular momentum quantum number $J_l$ of the lower state.
- j_uscalar
The electronic total angular momentum quantum number $J_u$ of the upper state.
- giscalar
The nuclear g-factor $g_I$.
- gj_lscalar
The electronic g-factor $g_J$ of the lower state.
- gj_uscalar
The electronic g-factor $g_J$ of the upper state.
- f_lscalar | None
The total angular momentum quantum number(s) $F_l$ of the lower state to consider. If
None, all are considered.- f_uscalar | None
The total angular momentum quantum number(s) $F_u$ of the upper state to consider. If
None, all are considered.- qarray_like | None
The polarization vector $\vec{q} = (q_{-1}, q_0, q_1)$ in the helicity basis, or an integer in
{-1, 0, 1}for pure $\sigma^-$, $\pi$ or $\sigma^+$ light. IfNone, all components are equal. The vector is normalized to a sum of 1.- rho_mlIterable[array_like] | None
The lower state populations. Must be an iterable of arrays. If
None, the default list is given byrho_ml = [np.ones(2 * f + 1) for f in f_l].- rho_as_parbool
Whether to parameterize the transition intensities by the lower state populations
rho(F, m)and the polarization componentsq(-1),q(0)andq(1)(True) instead of one intensity parameter per transition (False).- scale_par_with_shiftstr | None
Choose a parameter that is scaled with the Zeeman shift such as the Lorentz width
"Gamma".- linearbool
Whether the Zeeman shift is linear (
True) or nonlinear (False). If nonlinear, the Zeeman shift is calculated numerically, decreasing computing speed.- labelstr | None
A label for the
Splitter(isotope / isomer / transition).
- Attributes:
-
- descriptionstr
A description of the model hierarchy, e.g.,
"Offset.Summed[0].Hyperfine.Voigt".- dxfloat
A hint for an x-axis step size for a smooth display of the model.
- errorstr
An error message if there is an issue with the model parameters (not implemented).
- fixeslist[fix_type]
The fix states of the parameters, see
Model.set_fix.- linkslist[bool]
Whether the parameters are linked to the parameters with the same name in a
Linkedmodel.- modelModel | None
The submodel.
- nameslist[str]
The names of the parameters.
- pdict[str, int]
A map of the parameter names to their indexes.
- sizeint
The number of parameters required by the model.
- typestr
The name of the model type.
- valslist[float]
The current values of the parameters.
- Raises:
-
- ValueError
If
qis neither a 3d-vector nor in{-1, 0, 1}.