Skip to content

Commit

Permalink
minor syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Feb 16, 2024
1 parent 977afe5 commit f0c1297
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_backends_clifford.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ def construct_clifford_backend(backend):
str(excinfo.value)
== "TensorflowBackend for Clifford Simulation is not supported yet."
)

if isinstance(backend, PyTorchBackend):
with pytest.raises(NotImplementedError) as excinfo:
clifford_backend = CliffordBackend(backend)
assert (
str(excinfo.value)
== "PyTorchBackend for Clifford Simulation is not supported yet."
)
else:
return CliffordBackend(backend)

return CliffordBackend(backend)


THETAS_1Q = [
Expand Down

0 comments on commit f0c1297

Please sign in to comment.