Author Topic: Quantum number conversion  (Read 3058 times)


  • Member
  • *
  • Posts: 23
    • View Profile
Quantum number conversion
« 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!


  • Administrator
  • Member
  • *****
  • Posts: 59
    • View Profile
Re: Quantum number conversion
« Reply #1 on: November 15, 2013, 06:04:10 PM »
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’.