Skip to content

Commit

Permalink
Merge pull request #156 from georgios-ts/fix-sknorm-failing-test
Browse files Browse the repository at this point in the history
Fixes Sk-norm failing test case.
  • Loading branch information
vprusso authored May 28, 2023
2 parents bd5f22b + c10f312 commit 835fcd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_matrix_props/test_sk_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def test_s1_norm_werner(n, a):
expected = (1 + abs(min(0, a))) / (n * (n - a))

lower_bound, upper_bound = sk_operator_norm(rho, k=1)
np.testing.assert_equal(np.allclose(lower_bound, expected), True)
np.testing.assert_equal(np.allclose(upper_bound, expected), True)
np.testing.assert_equal(np.allclose(lower_bound, expected, atol=1e-4), True)
np.testing.assert_equal(np.allclose(upper_bound, expected, atol=1e-4), True)


def test_sk_norm_hermitian_not_psd():
Expand Down

0 comments on commit 835fcd3

Please sign in to comment.