Skip to content

Commit

Permalink
add backends to test
Browse files Browse the repository at this point in the history
  • Loading branch information
splch committed Oct 30, 2023
1 parent d85db42 commit dc1bc7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 8 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@
# List of all devices that do *not* support analytic expectation
# value computation. This generally includes hardware devices
# and hardware simulators.
hw_devices = [SimulatorDevice]
hw_devices = [
SimulatorDevice,
QPUDevice,
HarmonyQPUDevice,
Aria1QPUDevice,
Aria2QPUDevice,
Forte1QPUDevice,
]

# List of all device shortnames
shortnames = [d.short_name for d in analytic_devices + hw_devices]
Expand Down
6 changes: 1 addition & 5 deletions tests/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ def mock_submit_job(*args):
dev.apply([])

def test_failedcircuit(self, monkeypatch):

monkeypatch.setattr(
requests, "post", lambda url, timeout, data, headers: (url, data, headers)
)
Expand Down Expand Up @@ -246,7 +245,7 @@ def mock_submit_job(*args):
pass

mocker.patch("pennylane_ionq.device.IonQDevice._submit_job", mock_submit_job)
dev = IonQDevice(wires=(0,1,2), gateset="native")
dev = IonQDevice(wires=(0, 1, 2), gateset="native")

with qml.tape.QuantumTape() as tape:
GPI(0.1, wires=[0])
Expand Down Expand Up @@ -275,6 +274,3 @@ def mock_submit_job(*args):
"targets": [1, 2],
"phases": [0.2, 0.3],
}



0 comments on commit dc1bc7f

Please sign in to comment.