SelectStates

SelectStates[sys, crit]
selects the atomic states from the atomic system sys that satisfy the state-selection criteria crit.
SelectStates[sys, crit, n]
selects the first n states satisfying the criteria.
  • State-selection criteria are specified as for StatePosition: Boolean expressions involving the state parameters, such as StateLabel=2&&F=1. As a shorthand, if all states with a particular label are to be selected, just the label itself can be specified.
In[1]:=
Click for copyable input
Define a hyperfine-Zeeman system:
In[2]:=
Click for copyable input
Select states with F=1:
In[3]:=
Click for copyable input
Select states labeled 1 with | M |=1:
In[4]:=
Click for copyable input
Select all states with label 2:
In[5]:=
Click for copyable input
[an error occurred while processing this directive]