Esempio n. 1
0
 def test2(self):
     lval, lvec = analyticalLowestEigenvalue(self.x, self.pot)
     ret = findLowestEigenVector(self.x.copy(), self.pot)
     self.assertLess(np.abs(ret.eigenval - lval) / np.abs(lval), 1e-2)
 def test2(self):
     lval, lvec = analyticalLowestEigenvalue(self.x, self.pot)
     ret = findLowestEigenVector(self.x.copy(), self.pot)
     self.assertLess(np.abs(ret.eigenval - lval) / np.abs(lval), 1e-2)
Esempio n. 3
0
 def test(self):
     lval, lvec = analyticalLowestEigenvalue(self.x, self.pot)
     ret = self.finder.run(100)
     self.assertLess(np.abs(ret.eigenval - lval) / np.abs(lval), 1e-2)
 def test(self):
     lval, lvec = analyticalLowestEigenvalue(self.x, self.pot)
     ret = self.finder.run(100)
     self.assertLess(np.abs(ret.eigenval - lval) / np.abs(lval), 1e-2)