State indexing question
State indexing question
I am looking for the easiest way to convert the (L,M) index the "stateinfo" function generates to maybe Hilbert space matrix representation in the end. I would like to know if you have any suggestions on how to do that. Right now I am looking through the stateinfo function to see how you did the index conversion from 0,1,2,3 to (L,M).
Re: State indexing question
See the lin2lm and lm2lin functions in kernel utilities. The operator and state functions also support direct tensor index specification, such as ‘T2,-2’ in the operator description.
To get Hilbert space operators, switch bas.formalism to ‘zeeman-hilb’.
To get Hilbert space operators, switch bas.formalism to ‘zeeman-hilb’.