Skip to content

Commit

Permalink
uncomment failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
purva-thakre committed Nov 9, 2023
1 parent 0fbd763 commit 589517a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_state_metrics/test_matsumoto_fidelity.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from toqito.states import basis


#def test_matsumoto_fidelity_default():
#"""Test Matsumoto fidelity default arguments."""
#rho = np.array([[1 / 2, 0, 0, 1 / 2], [0, 0, 0, 0], [0, 0, 0, 0], [1 / 2, 0, 0, 1 / 2]])
#sigma = rho
def test_matsumoto_fidelity_default():
"""Test Matsumoto fidelity default arguments."""
rho = np.array([[1 / 2, 0, 0, 1 / 2], [0, 0, 0, 0], [0, 0, 0, 0], [1 / 2, 0, 0, 1 / 2]])
sigma = rho

#res = matsumoto_fidelity(rho, sigma)
#np.testing.assert_equal(np.isclose(res, 1), True)
res = matsumoto_fidelity(rho, sigma)
np.testing.assert_equal(np.isclose(res, 1), True)


def test_matsumoto_fidelity_non_identical_states_1():
Expand Down

0 comments on commit 589517a

Please sign in to comment.