Skip to content

Commit dbddf34

Browse files
committed
adjust
1 parent 61b18e3 commit dbddf34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_device.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,10 @@ def test_load_from_device_function(self, num_wires, shots):
423423

424424
dev = qml.device("aqt.sim", wires=num_wires, api_key=SOME_API_KEY)
425425

426-
427426
assert dev.num_wires == num_wires
428-
assert dev.shots.total_shots == shots
429-
assert dev.analytic == False
427+
# Due to the deprecation of device.shots, the following two properties (shots, analytic) should be changed.
428+
assert dev.shots.total_shots is None
429+
assert dev.analytic == True
430430
assert dev.circuit == []
431431
assert dev.circuit_json == ""
432432
assert dev.samples is None

0 commit comments

Comments
 (0)