convertidx#
- convertidx(varargin)
Conversion between state vector index and (F,M) quantum numbers. If the number of inputs is 3, then the inputs should be (Fg,Fe,index), the outputs will be (F,M,q). Here Fg, Fe are lists of ground or excited states angular momentum quantum number F; q = 0 means it is the ground state, q = 1 means it is the excited state. If the number of inputs is 5, then the inputs should be (Fg,Fe,F,M,q), the outputs will be the index.