Page 1 of 1

State indexing question

Posted: Tue Jul 13, 2021 12:59 pm
by faq_user
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

Posted: Tue Jul 13, 2021 12:59 pm
by kuprov
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’.