Skip to content

Commit

Permalink
Fix failing Facade tests (#191)
Browse files Browse the repository at this point in the history
* fix failing tests

* trigger CI

* yeah this should work

---------

Co-authored-by: Astral Cai <[email protected]>
  • Loading branch information
Shiro-Raven and astralcai authored Aug 26, 2024
1 parent 74bd315 commit bdd4180
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ninja==1.10.2.3
numpy
openfermion==1.3.0
openfermionpyscf==0.5
packaging==21.0
packaging>=24
pandas==1.3.5
pennylane==0.28.0
PennyLane-Lightning==0.28
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mixed_simulator_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_device_loading(self):
dev = qml.device("cirq.mixedsimulator", wires=2)

assert dev.num_wires == 2
assert dev.shots is None
assert not dev.shots
assert dev.short_name == "cirq.mixedsimulator"

assert isinstance(dev, MixedStateSimulatorDevice)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pasqal_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_device_loading(self):

assert dev.num_wires == 2
assert len(dev.qubits) == 2
assert dev.shots is None
assert not dev.shots
assert dev.short_name == "cirq.pasqal"
assert dev.control_radius == 1.0
assert dev.qubits == sorted([ThreeDQubit(0, 0, 0), ThreeDQubit(control_radius / 2, 0, 0)])
Expand Down
4 changes: 2 additions & 2 deletions tests/test_qsim_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_device_loading(self):
dev = qml.device("cirq.qsim", wires=2)

assert dev.num_wires == 2
assert dev.shots is None
assert not dev.shots
assert dev.short_name == "cirq.qsim"

assert isinstance(dev, QSimDevice)
Expand All @@ -42,7 +42,7 @@ def test_device_loading_options(self):
dev = qml.device("cirq.qsim", wires=2, qsim_options={"t": 2})

assert dev.num_wires == 2
assert dev.shots is None
assert not dev.shots
assert dev.short_name == "cirq.qsim"

assert isinstance(dev, QSimDevice)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_qsimh_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_device_loading(self):
dev = qml.device("cirq.qsimh", wires=2, qsimh_options=qsimh_options)

assert dev.num_wires == 2
assert dev.shots is None
assert not dev.shots
assert dev.short_name == "cirq.qsimh"

assert isinstance(dev, QSimhDevice)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_simulator_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_device_loading(self):
dev = qml.device("cirq.simulator", wires=2)

assert dev.num_wires == 2
assert dev.shots is None
assert not dev.shots
assert dev.short_name == "cirq.simulator"

assert isinstance(dev, SimulatorDevice)
Expand Down

0 comments on commit bdd4180

Please sign in to comment.