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. State  (  freq_j ,  parity ,  j ,  i ,  f ,  m ,  ls=None ,  jj=None ,  hyper_const=None ,  gj=0.0 ,  gi=0.0 ,  label=None  )[source]

An atomic quantum state $|\mathrm{[label]}\pi JIFm\rangle$.

Parameters:
freq_jscalar

The absolute frequency of the state without the hyperfine structure or the environment (MHz).

paritystr | bool

The parity $\pi$ of the state is used to check the selection rules. It can be either "even" ("e", False) or "odd" ("o", True).

jscalar

The electronic total angular momentum quantum number $J$.

iscalar

The nuclear spin quantum number $I$.

fscalar

The total angular momentum quantum number $F$.

mscalar

The $z$-projection quantum number $m$ of the total angular momentum f.

lsscalar_nd | None

A list or a single pair of electronic angular momentum and spin quantum numbers $(l_i, s_i)$. If this is a list of LS-pairs, a list of $j_i$ quantum numbers can be specified for the parameter jj. IMPORTANT: Since $L$ and $S$ are not good quantum numbers, this parameter has no effect, currently.

jjscalar_1d | None

A list of two electronic total angular momentum quantum numbers $(j_0, j_1)$ used in the jj-coupling scheme if ls is a list. IMPORTANT: Since $j_i$ are not good quantum numbers, this parameter has no effect, currently.

hyper_constarray_like | None

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).

gjscalar

The electronic g-factor $g_J$.

giscalar

The nuclear g-factor $g_I$.

labelstr | None

The label of the state. The label is used to link states via a DecayMap. If None, the label is "{freq_j}({j})" with freq_j rounded to an integer.

Attributes:
ffloat

The total angular momentum quantum number $F$.

freqfloat

The frequency of the hyperfine-structure state, shifted by the Environment (MHz).

freq_jfloat

The unperturbed frequency of the fine-structure state (MHz).

gifloat

The nuclear g-factor $g_I$.

gjfloat

The electronic g-factor $g_J$.

hyper_constndarray

The hyperfine-structure constants $(A, B, C)$ as a 3d-vector (MHz).

ifloat

The nuclear spin quantum number $I$.

instanceCppHandler

The wrapped C++ instance.

jfloat

The electronic total angular momentum quantum number $J$.

labelstr

The label of the state. The label is used to link states via DecayMap.

mfloat

The projection quantum number $m$ of the total angular momentum $F$.

Raises:
ValueError

If the quantum numbers are not multiples of 1/2, if they do not form a valid state, or if ls or parity are invalid.