Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
madcpf committed Jul 20, 2024
1 parent b303ac5 commit 805e442
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions unitary/alpha/quantum_world_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,9 +905,7 @@ def test_density_matrix():

testing.assert_array_equal(board.density_matrix(objects=[light1]), rho_green)
testing.assert_array_equal(board.density_matrix(objects=[light2]), rho_red)
testing.assert_array_equal(
board.density_matrix(objects=[light3]), rho_red, rho_green
)
testing.assert_array_equal(board.density_matrix(objects=[light3]), rho_red)

testing.assert_array_equal(
board.density_matrix(objects=[light1, light2]), np.kron(rho_green, rho_red)
Expand All @@ -916,7 +914,7 @@ def test_density_matrix():
board.density_matrix(objects=[light2, light3]), np.kron(rho_red, rho_red)
)
testing.assert_array_equal(
board.density_matrix(objects=[light1, light3]), np.kron(rho_green, rho_red)
board.density_matrix(objects=[light3, light1]), np.kron(rho_red, rho_green)
)

testing.assert_array_equal(
Expand Down

0 comments on commit 805e442

Please sign in to comment.