- qspec.simulate.gen_electronic_state ( freq_j = 0.0 , parity = None , j = 0 , i = 0 , ls = None , jj = None , hyper_const = None , gj = None , gi = 0 , label = None )[source]
Creates all substates of a fine-structure state $|\mathrm{[label]}\pi JI\rangle$ using a common label.
- Parameters:
-
- freq_jquant_like
The energetic position of the state without the hyperfine structure or the magnetic field (MHz).
- paritybool | str
The parity $\pi$ of the state is used to check the selection rules. If None, it is inferred from
ls
if possible. It can be either'even'
('e'
,False
) or'odd'
('o'
,True
).- jquant_like
The electronic total angular momentum quantum number $J$.
- iquant_like
The nuclear spin quantum number $I$.
- lsquant_like | Iterable
A list or a single pair of electronic angular momentum and spin quantum numbers $(l_i, s_i)$ used to check the selection rules and to calculate the electronic g-factor in the LS-coupling scheme. If this is a list of LS-pairs, the parameter
jj
requires a list of $j_i$ quantum numbers.- jjquant_like | Iterable
A list of two electronic total angular momentum quantum numbers $(j_0, j_1)$ used to calculate the electronic g-factor in the jj-coupling scheme. Either a list of two $(l_i, s_i)$ pairs needs to be specified for the parameter
ls
or a list of g-factors $g_{j_i}$ for the parametergj
.- hyper_constIterable[array_like]
A list of the hyperfine-structure constants. Currently, constants up to the electric quadrupole order are supported ($A$, $B$). If 'hyper_const' is a scalar, it is assumed to be the constant $A$ and the other orders are 0 (MHz).
- gjarray_like
A list of two $g_{j_i}$ or a single electronic g-factor $g_J$. If
gj
is a list,jj
is required andls
is overwritten. Ifgj
is a scalar, bothls
andjj
are overwritten.- giarray_like
The nuclear g-factor $g_I$.
- labelstr
The label of the states. The labels are used to link states via a
DecayMap
.
- Returns:
-
- stateslist[qspec.simulate.State]
A list of the created states $|\mathrm{[label]}\pi JIFm\rangle$.