HyQD / coupled-cluster

Upstream coupled cluster code
MIT License
3 stars 3 forks source link

Fix index order in diagonal blocks of rcc2 and rccsd ob density matrices #83

Closed haakoek closed 2 years ago

haakoek commented 2 years ago

The index order used for the diagonal blocks is inconsistent with the definition of the obd density matrix we have used, that is, rho^q_p = <tilde(psi)|a_p^\dagger a_q|psi>. This leads to errors in the static dipole moment when using complex orbitals from Quest. Correcting the index order solves this problem. This index order is consistent with the index order used in the rnoccd code.