StatePosition

StatePosition[sys, crit]
gives the position in the atomic system sys of the states satisfying the state-selection criteria crit.
StatePosition[sys, crit, n]
gives the positions of the first n atomic states found.
  • State-selection criteria are specified as for SelectStates: 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.
  • The positions are returned in the same syntax used by Position.
In[1]:=
Click for copyable input
Define a hyperfine-Zeeman system:
In[2]:=
Click for copyable input
Find the positions of the states with F=1:
In[3]:=
Click for copyable input
Find the positions of the states labeled 1 with | M |=1:
In[4]:=
Click for copyable input
Find the positions of the states with label 2:
In[5]:=
Click for copyable input
[an error occurred while processing this directive]