Skip to content

Commit

Permalink
Fix UCCSD(T) test
Browse files Browse the repository at this point in the history
  • Loading branch information
basilib committed Sep 25, 2024
1 parent 7421bc8 commit 28dc8f7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions vayesta/tests/ewf/test_h2_pbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def setUpClass(cls):
cls.ref_values = {
("e_corr", -1): cls.cc.e_corr / nk,
("e_tot", -1): cls.cc.e_tot / nk,
("e_ccsd_t", -1): cls.cc.ccsd_t() / nk,
("e_corr", 1e-3): -0.0153692736073979,
("e_tot", 1e-3): -1.2835024529439953,
}
Expand Down Expand Up @@ -199,7 +200,7 @@ def test_dm2_demo(self):
self.assertAllclose(dm2, dm2_exact)

def test_ccsd_t(self):
exact_ccsd_t = self.cc.ccsd_t()
exact_ccsd_t = self.ref_values[("e_ccsd_t", -1)]
emb = self.emb(-1)
emb_ccsd_t = emb.get_ccsd_t_corr_energy(global_t1=False)
self.assertAllclose(emb_ccsd_t, exact_ccsd_t)
Expand Down Expand Up @@ -271,6 +272,7 @@ def setUpClass(cls):
cls.ref_values = {
("e_corr", -1): cls.cc.e_corr / nk,
("e_tot", -1): cls.cc.e_tot / nk,
("e_ccsd_t", -1): cls.cc.uccsd_t() / nk,
("e_corr", 1e-3): -0.01654717440912164,
("e_tot", 1e-3): -1.7250820680314027,
}
Expand Down Expand Up @@ -310,11 +312,7 @@ def _get_ref_t2_ao(self, t2):

def test_dm2_demo(self):
pass

# PYSCF issue with periodic UCCSD(T)
def test_ccsd_t(self):
pass


# --- 2D


Expand Down

0 comments on commit 28dc8f7

Please sign in to comment.