Skip to content

Commit

Permalink
Update tests/test_states/test_basis.py
Browse files Browse the repository at this point in the history
Co-authored-by: Purva Thakre <66048318+purva-thakre@users.noreply.github.com>
  • Loading branch information
vprusso and purva-thakre authored Nov 15, 2023
1 parent 7acae82 commit 5512830
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_states/test_basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
(4, 0, np.array([[1], [0], [0], [0]])),
])
def test_basis(dim, pos, expected_result):
bool_mat = np.isclose(basis(dim, pos), expected_result)
np.testing.assert_equal(np.all(bool_mat), True)
np.testing.assert_array_equal(basis(dim, pos), expected_result)


def test_basis_invalid_dim():
Expand Down

0 comments on commit 5512830

Please sign in to comment.