Skip to content

Commit

Permalink
Transforms API code example typo (#5014)
Browse files Browse the repository at this point in the history
Typo in the `Composability of transforms` section.

---------

Co-authored-by: Thomas R. Bromley <49409390+trbromley@users.noreply.github.com>
  • Loading branch information
isaacdevlugt and trbromley authored Jan 8, 2024
1 parent 38117cd commit 82496aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
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

0 comments on commit 82496aa

Please sign in to comment.