Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 17, 2024
1 parent 64dde1c commit 86e3dcb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/development/deprecations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Pending deprecations
- Deprecated in v0.39
- Will be removed in v0.40

* ``qml.broadcast`` has been deprecated. Users should use for loops instead.
* ``qml.broadcast`` has been deprecated. Users should use ``for`` loops instead.

- Deprecated in v0.39
- Will be removed in v0.40
Expand Down
10 changes: 5 additions & 5 deletions doc/releases/changelog-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@
* The `'ancilla'` argument for `qml.iterative_qpe` has been deprecated. Instead, use the `'aux_wire'` argument.
[(#6277)](https://github.com/PennyLaneAI/pennylane/pull/6277)

* `qml.shadows.shadow_expval` has been deprecated. Instead, users should use the `qml.shadow_expval` measurement
process in their circuits.
* `qml.shadows.shadow_expval` has been deprecated. Instead, use the `qml.shadow_expval` measurement
process.
[(#6277)](https://github.com/PennyLaneAI/pennylane/pull/6277)

* `qml.broadcast` has been deprecated. Users should use for loops instead.
* `qml.broadcast` has been deprecated. Please use `for` loops instead.
[(#6277)](https://github.com/PennyLaneAI/pennylane/pull/6277)

* The ``QubitStateVector`` template is deprecated.
Instead, use ``StatePrep``.
[(#6172)](https://github.com/PennyLaneAI/pennylane/pull/6172)
Instead, use ``StatePrep``.
[(#6172)](https://github.com/PennyLaneAI/pennylane/pull/6172)

* `Device`, `QubitDevice`, and `QutritDevice` will no longer be accessible via top-level import in v0.40.
They will still be accessible as `qml.devices.LegacyDevice`, `qml.devices.QubitDevice`, and `qml.devices.QutritDevice`
Expand Down
4 changes: 2 additions & 2 deletions pennylane/templates/broadcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ def broadcast(unitary, wires, pattern, parameters=None, kwargs=None):
For more details, see *Usage Details* below.
.. warnings::
.. warning::
``qml.broadcast`` has been deprecated. Please use for loops instead.
``qml.broadcast`` has been deprecated. Please use ``for`` loops instead.
Args:
unitary (func): quantum gate or template
Expand Down

0 comments on commit 86e3dcb

Please sign in to comment.