Skip to content

Commit

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

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."
)
else:
return CliffordBackend(backend)

return CliffordBackend(backend)


@pytest.mark.parametrize("nqubits", [2, 10, 50, 100])
Expand Down

0 comments on commit bbffcee

Please sign in to comment.