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

Remove qml.broadcast template #6527

Merged
merged 7 commits into from
Nov 12, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
more removals
  • Loading branch information
andrijapau committed Nov 7, 2024
commit c2feeecfd17a865035d9f17853023b11ec593ec0
48 changes: 0 additions & 48 deletions doc/introduction/templates.rst
Original file line number Diff line number Diff line change
@@ -360,54 +360,6 @@ Other useful templates which do not belong to the previous categories can be fou

.. _intro_ref_temp_constr:

Broadcasting function
---------------------

PennyLane offers a broadcasting function to easily construct templates: :func:`~.broadcast`
takes either quantum gates or templates and applies them to wires in a specific pattern.

.. warning::

While the broadcasting function can make template construction very convenient, it
adds an overhead and is therefore not recommended when speed is a major concern.

.. gallery-item::
:description: :doc:`Broadcast (Single) <../code/api/pennylane.broadcast>`
:figure: _static/templates/broadcast_single.png

.. gallery-item::
:description: :doc:`Broadcast (Double) <../code/api/pennylane.broadcast>`
:figure: _static/templates/broadcast_double.png

.. gallery-item::
:description: :doc:`Broadcast (Double Odd) <../code/api/pennylane.broadcast>`
:figure: _static/templates/broadcast_double_odd.png

.. gallery-item::
:description: :doc:`Broadcast (Chain) <../code/api/pennylane.broadcast>`
:figure: _static/templates/broadcast_chain.png

.. gallery-item::
:description: :doc:`Broadcast (Ring) <../code/api/pennylane.broadcast>`
:figure: _static/templates/broadcast_ring.png

.. gallery-item::
:description: :doc:`Broadcast (Pyramid) <../code/api/pennylane.broadcast>`
:figure: _static/templates/broadcast_pyramid.png

.. gallery-item::
:description: :doc:`Broadcast (All-to-All) <../code/api/pennylane.broadcast>`
:figure: _static/templates/broadcast_alltoall.png

.. gallery-item::
:description: :doc:`Broadcast (Custom) <../code/api/pennylane.broadcast>`
:figure: _static/templates/broadcast_custom.png

.. raw:: html

<div style='clear:both'></div>

.. _intro_ref_temp_init:

Parameter initializations
-------------------------
2 changes: 1 addition & 1 deletion pennylane/__init__.py
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@
)
from pennylane.ops import *
from pennylane.ops import adjoint, ctrl, cond, exp, sum, pow, prod, s_prod
from pennylane.templates import broadcast, layer
from pennylane.templates import layer
from pennylane.templates.embeddings import *
from pennylane.templates.layers import *
from pennylane.templates.tensornetworks import *
1 change: 0 additions & 1 deletion pennylane/templates/__init__.py
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@
This module contains templates, which are pre-coded routines that can be used in a quantum node.
"""

from .broadcast import *
from .embeddings import *
from .layer import *
from .layers import *
Loading