There was an error while loading. Please reload this page.
1 parent e8429bb commit 31641efCopy full SHA for 31641ef
1 file changed
tests/python/linalg/givens_test.py
@@ -421,15 +421,14 @@ def test_givens_decomposition_slater_compressed_near_identity_trims_when_binding
421
"""When the budget is below the exact count, trim to exactly the budget."""
422
norb, nocc = 8, 4
423
scale = 1e-3
424
- tol = 10 * scale
+ tol = 1e-12
425
coeffs = expm(1j * scale * ffsim.random.random_hermitian(norb, seed=RNG)).T[
426
list(range(nocc))
427
]
428
429
exact = ffsim.linalg.givens_decomposition_slater(coeffs, tol=tol)
430
n_existing = len(exact)
431
- if n_existing == 0:
432
- pytest.skip("decomposition already empty")
+ assert n_existing > 0
433
434
max_givens = n_existing - 1
435
rotations = ffsim.linalg.givens_decomposition_slater(
0 commit comments