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

Transforms API code example typo #5014

Merged
merged 4 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
9 changes: 7 additions & 2 deletions doc/releases/changelog-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,24 @@

<h4>Community contributions 🥳</h4>

* The transform ``split_non_commuting`` now accepts measurements of type `probs`, `sample` and `counts` which accept both wires and observables. [(#4972)](https://github.com/PennyLaneAI/pennylane/pull/4972)
* The transform `split_non_commuting` now accepts measurements of type `probs`, `sample` and `counts` which accept both wires and observables.
[(#4972)](https://github.com/PennyLaneAI/pennylane/pull/4972)

<h3>Breaking changes 💔</h3>

<h3>Deprecations 👋</h3>

<h3>Documentation 📝</h3>

* A typo in a code example in the `qml.transforms` API has been fixed.
[(#5014)](https://github.com/PennyLaneAI/pennylane/pull/5014)

<h3>Bug fixes 🐛</h3>

<h3>Contributors ✍️</h3>

This release contains contributions from (in alphabetical order):

Abhishek Abhishek,
Matthew Silverman.
Isaac De Vlugt,
Matthew Silverman.
4 changes: 2 additions & 2 deletions pennylane/transforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ def null_postprocessing(results):
.. code-block:: python

dev = qml.device("default.qubit", wires=1)
@qml.merge_rotations
@qml.cancel_inverses
@qml.transforms.merge_rotations
@qml.transforms.cancel_inverses
@qml.qnode(device=dev):
def circuit(x, y):
qml.Hadamard(wires=0)
Expand Down
Loading