Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daxfohl committed Mar 2, 2025
1 parent 963e73e commit f3f7ac2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions cirq-core/cirq/devices/grid_qubit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,17 +401,13 @@ def test_numpy_index(dtype):
assert q.row == 5
assert q.col == 6
assert q.dimension == 2
assert isinstance(q.row, dtype)
assert isinstance(q.col, dtype)
assert isinstance(q.dimension, int)

q = cirq.GridQid(np5, np6, dimension=np3)
hash(q) # doesn't throw
assert q.row == 5
assert q.col == 6
assert q.dimension == 3
assert isinstance(q.row, dtype)
assert isinstance(q.col, dtype)
assert isinstance(q.dimension, int)


Expand Down
2 changes: 0 additions & 2 deletions cirq-core/cirq/devices/line_qubit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,15 +295,13 @@ def test_numpy_index(dtype):
assert q.x == 5
assert q.x == dtype(5)
assert q.dimension == 2
assert isinstance(q.x, dtype)
assert isinstance(q.dimension, int)

q = cirq.LineQid(np5, dtype(3))
hash(q) # doesn't throw
assert q.x == 5
assert q.x == dtype(5)
assert q.dimension == 3
assert isinstance(q.x, dtype)
assert isinstance(q.dimension, int)


Expand Down

0 comments on commit f3f7ac2

Please sign in to comment.