State indexing question

Topics related to Spinach package
Post Reply
faq_user
Posts: 49
Joined: Tue Jul 13, 2021 8:33 am

State indexing question

Post 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).
kuprov
Posts: 72
Joined: Mon Mar 29, 2021 4:26 pm

Re: State indexing question

Post 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’.
Post Reply