Skip to content

Commit

Permalink
Tape fix (#68)
Browse files Browse the repository at this point in the history
* Changed raised assert

* Changed requirements for build test, will revert
  • Loading branch information
Chase Roberts authored Jan 29, 2021
1 parent ec66bea commit fe5860e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
projectq>=0.5.1
pennylane>=0.11
git+https://github.com/PennyLaneAI/pennylane.git
pybind11
2 changes: 1 addition & 1 deletion tests/test_basis_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def circuit():
qml.BasisState(np.array([0, 1, 0, 1]), wires=list(range(self.num_subsystems)))
return qml.expval(qml.PauliZ(0))

self.assertRaises(pennylane._device.DeviceError, circuit)
self.assertRaises(ValueError, circuit)


if __name__ == '__main__':
Expand Down

0 comments on commit fe5860e

Please sign in to comment.