Skip to content

Commit

Permalink
conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFerracin committed Feb 23, 2024
1 parent 75eca71 commit 1b09476
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 193 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,6 @@
from mrmustard.physics import triples


def test_reorder_abc():
"""Test that the reorder_abc function works correctly"""
A = np.array([[1, 2], [2, 3]])
b = np.array([4, 5])
c = np.array(6)
same = reorder_abc((A, b, c), (0, 1))
assert all(np.allclose(x, y) for x, y in zip(same, (A, b, c)))
flipped = reorder_abc((A, b, c), (1, 0))
assert all(np.allclose(x, y) for x, y in zip(flipped, (A[[1, 0], :][:, [1, 0]], b[[1, 0]], c)))
c = np.array([[6, 7], [8, 9]])
flipped = reorder_abc((A, b, c), (1, 0)) # test transposition of c
assert all(
np.allclose(x, y) for x, y in zip(flipped, (A[[1, 0], :][:, [1, 0]], b[[1, 0]], c.T))
)


def test_reorder_abc():
"""Test that the reorder_abc function works correctly"""
A = np.array([[1, 2], [2, 3]])
Expand Down
177 changes: 0 additions & 177 deletions tests/test_physics/test_bargmann/test_bargmann_repr.py

This file was deleted.

0 comments on commit 1b09476

Please sign in to comment.