Commit 45f97fc
authored
Adjust tolerance in compute_lambda_thc_test.py test (#1208)
After updating dependency versions, one of the tests in
`compute_lambda_thc_test.py` fails. This seems to be due to some
numerical drift introduced by these version updates:
* `pyscf` updated from 2.9.0 to 2.12.1
* `numpy` updated from 1.26.4 to 2.2.6
The test involves a small electronic structure calculation followed by a
BFGS optimization (perform_bfgs_opt=True with bfgs_maxiter=10 in
kpoint_thc_via_isdf). Even small changes in the floating-point
operations from newer numpy/scipy versions or updates to pyscf's
integral evaluations can cause these sorts of minor deviations in the
final output after optimization iterations.1 parent a40fea6 commit 45f97fc
File tree
1 file changed
+1
-1
lines changed- src/openfermion/resource_estimates/pbc/thc
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
0 commit comments