Quantum-Dynamics-Hub / libra-code

https://quantum-dynamics-hub.github.io/libra/index.html
GNU General Public License v3.0
48 stars 44 forks source link

Cross terms for LHA d2Ham, some documentation updates #165

Closed mdutra21 closed 2 years ago

mdutra21 commented 2 years ago

The cross-term part is in the dof2 loop, it's similar to the 'pure' second derivatives but the calculation of Q_2i and Q_2j is a bit different. I've also changed some of the variable names to more clearly reflect what they store -- i and j now refer to the two basis functions being used, while 1 and 2 refer to the DoFs.