Skip to content

Commit

Permalink
Bug fix in interactive solver for non-canonical UMP2
Browse files Browse the repository at this point in the history
  • Loading branch information
hung.pham committed Dec 5, 2023
1 parent 148a6fc commit 83f30e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyscf/mp/ump2.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ def update_amps(mp, t2, eris):
eris_ovov = numpy.asarray(eris.ovov).reshape(nocca,nvira,nocca,nvira).conj() * .5
eris_OVOV = numpy.asarray(eris.OVOV).reshape(noccb,nvirb,noccb,nvirb).conj() * .5
eris_ovOV = numpy.asarray(eris.ovOV).reshape(nocca,nvira,noccb,nvirb).conj().copy()
u2aa = eris_ovov.transpose(0,2,1,3) - eris_ovov.transpose(0,2,3,1)
u2bb = eris_OVOV.transpose(0,2,1,3) - eris_OVOV.transpose(0,2,3,1)
u2ab = eris_ovOV.transpose(0,2,1,3)
u2aa += eris_ovov.transpose(0,2,1,3) - eris_ovov.transpose(0,2,3,1)
u2bb += eris_OVOV.transpose(0,2,1,3) - eris_OVOV.transpose(0,2,3,1)
u2ab += eris_ovOV.transpose(0,2,1,3)
u2aa = u2aa + u2aa.transpose(1,0,3,2)
u2bb = u2bb + u2bb.transpose(1,0,3,2)

Expand Down

0 comments on commit 83f30e6

Please sign in to comment.