Skip to content

Commit

Permalink
Fixed tests; changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mudit2812 committed Aug 30, 2023
1 parent 4580fac commit 91c3553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
* Support for Python 3.8 has been removed.
[(#49)](https://github.com/PennyLaneAI/pennylane-honeywell/pull/49)

* The old return type system has been removed.
[(#)]()

### Improvements

### Documentation
Expand Down
9 changes: 1 addition & 8 deletions tests/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,13 +882,9 @@ def circuit(x, y):
([0, 1, 1], REF_RESULTS_011),
],
)
@pytest.mark.parametrize("old_return", [True, False])
def test_reference_results_correct_expval(self, wire_flip_idx, ref_result, old_return, monkeypatch):
def test_reference_results_correct_expval(self, wire_flip_idx, ref_result, monkeypatch):
"""Tests that a simple circuit with a known specific result from the platform leads to the proper
expectation value in PennyLane."""
if old_return:
qml.disable_return()

num_wires = len(wire_flip_idx)
dev = qml.device(
"honeywell.hqs",
Expand Down Expand Up @@ -918,9 +914,6 @@ def circuit():
expected = (-1) ** np.array(wire_flip_idx)
assert np.all(expected == res)

if old_return:
qml.enable_return()

def test_analytic_error(self):
"""Test that instantiating the device with `shots=None` results in an error"""
with pytest.raises(ValueError, match="does not support analytic"):
Expand Down

0 comments on commit 91c3553

Please sign in to comment.