Skip to content

Commit

Permalink
fix failing test (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
astralcai authored Aug 26, 2024
1 parent 24d1468 commit d796936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,12 @@ def test_apply_errors_basis_state(self):
dev = QulacsDevice(1)

with pytest.raises(
ValueError, match="BasisState parameter must consist of 0 or 1 integers."
ValueError, match="Basis state must only consist of 0s and 1s"
):
dev.apply([qml.BasisState(np.array([-0.2, 4.2]), wires=[0, 1])])

with pytest.raises(
ValueError, match="BasisState parameter and wires must be of equal length."
ValueError, match="State must be of length 1; got length 2"
):
dev.apply([qml.BasisState(np.array([0, 1]), wires=[0])])

Expand Down

0 comments on commit d796936

Please sign in to comment.