S

S
is a parameter for AtomicState that specifies the electronic spin angular momentum quantum number.
S[state]
returns the value specified for S in AtomicState state, or S[StateLabel[state]] if it is not specified.
  • S should be set to integer or half-integer values.
  • S is used to determine the g-factor for an atomic state. If the parameter GFactor is specified, or the g-factor is not required, then the value of S is not used.
  • See documentation for L.
  • S is automatically threaded over a list of AtomicState objects appearing as its argument.
In[1]:=
Click for copyable input
Two-level atomic system with Zeeman structure:
In[2]:=
Click for copyable input
Out[2]=
Get the values of S:
In[3]:=
Click for copyable input
Out[3]=
The values of L, S, and J are used to find the Landé g-factor for each state:
In[4]:=
Click for copyable input
Out[4]=
The g-factor enters in the magnetic-field interaction Hamiltonian:
In[5]:=
Click for copyable input
Out[5]//MatrixForm=
[an error occurred while processing this directive]