GFactor

GFactor
is a parameter for AtomicState that specifies the Landé g_J-factor for the state, as an alternative to specifying values for L and S for the state.
GFactor[state]
returns the value specified for GFactor in AtomicState state, or GFactor[StateLabel[state]] if it is not specified.
  • If GFactor is specified for a state, it is used in calculating the magnetic-field-interaction Hamiltonian for that state. If it is not specified, the values for J, L, and S are used to calculate the Landé g_J-factor. If they are not specified, then the placeholder GFactor[StateLabel[state]] is used.
  • GFactor is automatically threaded over a list of AtomicState objects appearing as its argument.
In[1]:=
Click for copyable input
Define an atomic system with explicit g-factors specified for the states:
In[2]:=
Click for copyable input
Out[2]=
The value for GFactor is used when constructing the magnetic-field-interaction Hamiltonian:
In[3]:=
Click for copyable input
Out[3]//MatrixForm=
[an error occurred while processing this directive]