Skip to content

Commit

Permalink
Introduce Specialunitary and use in VQE workflow (#689)
Browse files Browse the repository at this point in the history
* Development branch

* Bumped requirement package versions (#667)

* Bumped jax versions

* Updated neural-tangents

* Merge dev in master following v0.28.0 release of PennyLane (#671) (#672)

* Development branch

* Bumped requirement package versions (#667)

* Bumped jax versions

* Updated neural-tangents

* Apply suggestions from code review

Co-authored-by: Josh Izaac <[email protected]>
Co-authored-by: GitHub Nightly Merge Action <[email protected]>
Co-authored-by: Rashid N H M <[email protected]>

Co-authored-by: Jay Soni <[email protected]>
Co-authored-by: Josh Izaac <[email protected]>
Co-authored-by: GitHub Nightly Merge Action <[email protected]>

* add demo, v0.1

* update demo with shots optimization

* improvements to text, remove notes, draw circuit.

* black

* remove qml.optimize dependency

* update, improve code

* Update chemical reactions demo to use pyscf for openshell H3 (#704)

* use pyscf for openshell H3

* change date and fix interface warning

* Change ibm device in Quantum volume (#703)

* Ibm oslo

* Update to new hardware

* Change to Lima

* Typo

* Replace

* One below

* Update demos to remove warnings (#705)

* Added interface, removed deprecated functionality

* Addressing PR comments

---------

Co-authored-by: Romain Moyard <[email protected]>

* tmp

* Update classical shadows (#708)

* More

* typo

* Trigger CI

* lightning req no depth

* Trigger CI

* Update SPSA demo to count circuit executions manually. (#706)

* new version of SPSA demo

* Update demonstrations/spsa.py

Co-authored-by: Josh Izaac <[email protected]>

* simplify code, update outputs and figures

* Apply suggestions from code review

Co-authored-by: Romain Moyard <[email protected]>

* review and tweaking

* make spsa an executing tutorial

* move file

* fix links

* fix some more links

* author bio

* line breaks, undo link change, fixing them actually

* links...

* links again... bio

* update to count executions manually

* reword device executions -> circuit executions. avoid recreating device and qnode

* print executions

---------

Co-authored-by: Josh Izaac <[email protected]>
Co-authored-by: Romain Moyard <[email protected]>

* large update, include gradient evaluation discussion

* some jax

* add paper plot

* images

* black

* tmp

* add thumbnail

* change to png

* black

* uncomment. improve line breaks/naming

* hist colors

* update figure and size

* colors, text

* formulation around sampled_grad plot

* new image

* png

* links

* cosmetics

* cosmetics

* new figures

* increase embedded image sizes

* update intro

* optimization curve image

* review

* Apply suggestions from code review

Co-authored-by: Guillermo Alonso-Linaje <[email protected]>

* debugging, intro teaser

* Apply suggestions from code review

Co-authored-by: Guillermo Alonso-Linaje <[email protected]>

* review

* new thumbnail

* Apply suggestions from code review

Co-authored-by: Isaac De Vlugt <[email protected]>

* finalizing review

* whitespace

* update date to 30th, incl preprint number, add reference in intro

* change date to 3rd of April

* fix links

* Apply suggestions from code review

* Update tutorial_here_comes_the_sun.py

* change to first position

---------

Co-authored-by: Josh Izaac <[email protected]>
Co-authored-by: GitHub Nightly Merge Action <[email protected]>
Co-authored-by: Rashid N H M <[email protected]>
Co-authored-by: Jay Soni <[email protected]>
Co-authored-by: soranjh <[email protected]>
Co-authored-by: Romain Moyard <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: Guillermo Alonso-Linaje <[email protected]>
Co-authored-by: Isaac De Vlugt <[email protected]>
Co-authored-by: Nathan Killoran <[email protected]>
  • Loading branch information
11 people authored Apr 3, 2023
1 parent 8ead7a1 commit 4409fe7
Show file tree
Hide file tree
Showing 8 changed files with 587 additions and 3 deletions.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
576 changes: 576 additions & 0 deletions demonstrations/tutorial_here_comes_the_sun.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions demonstrations/tutorial_stochastic_parameter_shift.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def spsr_circuit(gate_pars, s=None, sign=+1):
#
# Leonardo Banchi and Gavin E. Crooks. "Measuring Analytic Gradients of
# General Quantum Evolution with the Stochastic Parameter Shift Rule."
# `arXiv:2005.10299 <https://arxiv.org/abs/2005.10299>`__ (2020).
# `Quantum **5** 386 <https://quantum-journal.org/papers/q-2021-01-25-386/>`__ (2021).
#
# .. [#li2016]
#
Expand All @@ -416,4 +416,4 @@ def spsr_circuit(gate_pars, s=None, sign=+1):
#
# About the author
# ----------------
# .. include:: ../_static/authors/nathan_killoran.txt
# .. include:: ../_static/authors/nathan_killoran.txt
10 changes: 9 additions & 1 deletion demos_optimization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ in quantum neural networks.

:html:`<div class="gallery-grid row">`

.. gallery-item::
:tooltip: Construct and optimize circuits with SU(N) gates
:figure: demonstrations/here_comes_the_sun/thumbnail_tutorial_here_comes_the_sun.png
:description: :doc:`demos/tutorial_here_comes_the_sun`
:tags: quantumcomputing circuitdesign

.. gallery-item::
:tooltip: Learn how to implement QAOA workflows with PennyLane
:figure: demonstrations/qaoa_module/qaoa_layer.png
Expand Down Expand Up @@ -175,7 +181,7 @@ in quantum neural networks.
demos/tutorial_vqe_qng
demos/tutorial_barren_plateaus
demos/tutorial_local_cost_functions
demos/spsa
demos/tutorial_spsa
demos/tutorial_general_parshift
demos/tutorial_doubly_stochastic
demos/tutorial_stochastic_parameter_shift
Expand All @@ -194,3 +200,5 @@ in quantum neural networks.
demos/tutorial_diffable-mitigation
demos/tutorial_implicit_diff_susceptibility
demos/tutorial_barren_gadgets
demos/tutorial_here_comes_the_sun

0 comments on commit 4409fe7

Please sign in to comment.