Spin Dynamics Forum
Spinach support => Simulations => Topic started by: faq_user on November 15, 2013, 06:03:52 PM
I am trying out the new version, 1.3.1916 spinach. 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). Thanks a lot!
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’.