Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device suite passes in clean environment #1641

Merged
merged 7 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ and requirements-ci.txt (unpinned). This latter would be used by the CI.

<h3>Bug fixes</h3>

* The device suite tests can now execute successfully if no shots configuration variable is given.
[(#1641)](https://github.com/PennyLaneAI/pennylane/pull/1641)

albi3ro marked this conversation as resolved.
Show resolved Hide resolved
* `MottonenStatepreparation` can now be run with a single wire label not in a list.
[(#1620)](https://github.com/PennyLaneAI/pennylane/pull/1620)

Expand Down
2 changes: 1 addition & 1 deletion pennylane/devices/tests/test_measurements.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_supported_observables_can_be_implemented(self, device_kwargs, observabl
device_kwargs["wires"] = 3
dev = qml.device(**device_kwargs)

if device_kwargs["shots"] is not None and observable == "SparseHamiltonian":
if device_kwargs.get("shots", None) is not None and observable == "SparseHamiltonian":
pytest.skip("SparseHamiltonian only supported in analytic mode")

assert hasattr(dev, "observables")
Expand Down