Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Jun 14, 2024
1 parent d4dfb31 commit 6a13965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_entropy_in_circuit(backend, density_matrix, base):
values = [backend.to_numpy(x) for x in entropy]
backend.assert_allclose(values, target, atol=PRECISION_TOL)

target_spectrum = [1.0] + list([0, 0, np.log(2), np.log(2)] / np.log(base))
target_spectrum = [0.0] + list([0, 0, np.log(2), np.log(2)] / np.log(base))
entropy_spectrum = np.ravel(np.concatenate(entropy.spectrum)).tolist()
backend.assert_allclose(entropy_spectrum, target_spectrum, atol=PRECISION_TOL)

Expand Down

0 comments on commit 6a13965

Please sign in to comment.