Skip to content

Commit

Permalink
Daily rc sync to master (#6200)
Browse files Browse the repository at this point in the history
Automatic sync from the release candidate to master during a feature
freeze.

---------

Co-authored-by: Astral Cai <astral.cai@xanadu.ai>
Co-authored-by: Christina Lee <christina@xanadu.ai>
Co-authored-by: Utkarsh <utkarshazad98@gmail.com>
Co-authored-by: Pietropaolo Frisoni <pietropaolo.frisoni@xanadu.ai>
Co-authored-by: Guillermo Alonso-Linaje <65235481+KetpuntoG@users.noreply.github.com>
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
Co-authored-by: Justin Pickering <79890410+justinpickering@users.noreply.github.com>
Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
Co-authored-by: Jack Brown <jack@xanadu.ai>
Co-authored-by: Diksha Dhawan <40900030+ddhawan11@users.noreply.github.com>
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Co-authored-by: soranjh <soran.jahangiri@gmail.com>
Co-authored-by: Cristian Emiliano Godinez Ramirez <57567043+EmilianoG-byte@users.noreply.github.com>
Co-authored-by: Alex Preciado <alex.preciado@xanadu.ai>
Co-authored-by: Jorge J. Martínez de Lejarza <61199780+gmlejarza@users.noreply.github.com>
Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com>
Co-authored-by: Josh Izaac <josh146@gmail.com>
Co-authored-by: GitHub Actions Bot <>
  • Loading branch information
18 people committed Sep 3, 2024
1 parent 20c024b commit 6547219
Show file tree
Hide file tree
Showing 33 changed files with 1,200 additions and 333 deletions.
Binary file added doc/_static/templates/arithmetic/adder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/_static/templates/arithmetic/modexp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/_static/templates/arithmetic/multiplier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/_static/templates/arithmetic/outadder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/_static/templates/arithmetic/phaseadder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions doc/code/qml_spin.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
qml.spin
=========

Overview
--------

This module contains functions and classes for creating and manipulating Hamiltonians for the spin models.

.. currentmodule:: pennylane.spin

.. automodapi:: pennylane.spin
:no-heading:
:no-main-docstr:
:skip: Lattice
:include-all-objects:
2 changes: 1 addition & 1 deletion doc/development/deprecations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pending deprecations
- Will be removed in v0.39

* The logic for internally switching a device for a different backpropagation
compatible device is now deprecated, as it was in place for the deprecated `default.qubit.legacy`.
compatible device is now deprecated, as it was in place for the deprecated ``default.qubit.legacy``.

- Deprecated in v0.38
- Will be removed in v0.39
Expand Down
3 changes: 2 additions & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ PennyLane is **free** and **open source**, released under the Apache License, Ve
code/qml_qaoa
code/qml_qchem
code/qml_qnn

code/qml_spin

.. toctree::
:maxdepth: 1
:caption: Internals
Expand Down
39 changes: 39 additions & 0 deletions doc/introduction/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,45 @@ state preparation is typically used as the first operation.

.. _intro_ref_temp_subroutines:

Arithmetic templates
--------------------

Quantum arithmetic templates enable in-place and out-place modular operations such
as addition, multiplication and exponentiation.

.. gallery-item::
:description: :doc:`PhaseAdder <../code/api/pennylane.PhaseAdder>`
:figure: _static/templates/arithmetic/phaseadder.png

.. gallery-item::
:description: :doc:`Adder <../code/api/pennylane.Adder>`
:figure: _static/templates/arithmetic/adder.png

.. gallery-item::
:description: :doc:`OutAdder <../code/api/pennylane.OutAdder>`
:figure: _static/templates/arithmetic/outadder.png

.. gallery-item::
:description: :doc:`Multiplier <../code/api/pennylane.Multiplier>`
:figure: _static/templates/arithmetic/multiplier.png

.. gallery-item::
:description: :doc:`OutMultiplier <../code/api/pennylane.OutMultiplier>`
:figure: _static/templates/arithmetic/outmultiplier.png

.. gallery-item::
:description: :doc:`ModExp <../code/api/pennylane.ModExp>`
:figure: _static/templates/arithmetic/modexp.png

.. gallery-item::
:description: :doc:`IntegerComparator <../code/api/pennylane.IntegerComparator>`
:figure: _static/templates/arithmetic/integercomparator.png


.. raw:: html

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

Quantum Chemistry templates
---------------------------

Expand Down
Loading

0 comments on commit 6547219

Please sign in to comment.