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

Update SPSA demo to count circuit executions manually. #706

Merged
merged 25 commits into from
Feb 24, 2023
Merged

Conversation

dwierichs
Copy link
Contributor

@dwierichs dwierichs commented Feb 23, 2023

The way the Qiskit aer plugin device counts executions was changed in this patch.
This PR accounts for this change by switching to manual counting of executions.

@dwierichs dwierichs changed the base branch from master to dev February 23, 2023 14:56
Copy link
Contributor

@rmoyard rmoyard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dwierichs for fixing that it looks great 👍 One thing here: I think we should replace device executions by circuits executions

demonstrations/tutorial_spsa.py Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Feb 23, 2023

Thank you for opening this pull request.

You can find the built site at this link.

Deployment Info:

  • Pull Request ID: 706
  • Deployment SHA: f9d47ca3324aba6c056e4ac86e297eb89525928e
    (The Deployment SHA refers to the latest commit hash the docs were built from)

Note: It may take several minutes for updates to this pull request to be reflected on the deployed site.

Copy link
Contributor

@mudit2812 mudit2812 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for the changes! I just left a few non-blocking questions

demonstrations/tutorial_spsa.py Outdated Show resolved Hide resolved
demonstrations/tutorial_spsa.py Outdated Show resolved Hide resolved
demonstrations/tutorial_spsa.py Outdated Show resolved Hide resolved
Copy link
Contributor

@rmoyard rmoyard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ! 👍

@rmoyard rmoyard marked this pull request as ready for review February 23, 2023 21:42
@dwierichs
Copy link
Contributor Author

For some reason, in the second example (VQE), gradient descent was reporting 531 circuit executions per step, which I don't think is correct:
We have 15 Hamiltonian terms (and no grouping for the simple demo), parameter shape (2, 4, 3) and 2 circuit executions per parameter (parameter shift of Pauli rotations). This leads to 15*2*4*3*2=720 circuits per step, which is the reported number now.

Copy link
Contributor

@mudit2812 mudit2812 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes David! The local number of executions I saw for gradient descent was a bit higher than master, but I think it should be fine.

demonstrations/tutorial_spsa.py Show resolved Hide resolved
@dwierichs dwierichs merged commit 942cbb5 into dev Feb 24, 2023
@dwierichs dwierichs deleted the update-spsa branch February 24, 2023 16:15
trbromley added a commit that referenced this pull request Mar 1, 2023
* 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]>

* 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]>

* 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]>

* bump requirements

* oops requirements

* trigger ci

* fix rendering issue

* Update requirements.txt

Co-authored-by: Tom Bromley <[email protected]>

---------

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: David Wierichs <[email protected]>
Co-authored-by: Tom Bromley <[email protected]>
Qottmann added a commit that referenced this pull request Mar 8, 2023
* 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]>

* vqe example

* introduction

* main body first draft with some gaps

* from qml to quantum computing

* small updates

* update hyper parameters and example

* bug fix

* update zstd dill in requirements

* HF state

* compare to right energy

* basis state instead of QubitStateVector

* update hamiltonian and do 100 epochs

* back to H2, resulting energy below exact energy

* back to H2, resulting energy below exact energy

* no restriction to 20MHz

* remove 2 pi

* bug fix on non-hermitian drive hamiltonian, clip envelope - no optimization possible

* alternative normalization option (also does not work

* look at mean gradient in iterations

* amplitude modulation

* hyper parameter update, still not great, best I could get so far

* move to tapered HeH+, reaches gs energy

* stronger penalty term, more realistic amplitudes

* Apply suggestions from code review

Co-authored-by: David Wierichs <[email protected]>
Co-authored-by: lillian542 <[email protected]>
Co-authored-by: Tom Bromley <[email protected]>

* hyper parameters

* umlaute ftw

* switched back to f1(p, t): return polzval(p, t) because it is more explicit and understandable

* update drawing to instance specifics

* naming drive field and comment about parameter length

* specify cost function

* placeholder comment about resulting curve

* update bio

* update bio

* tight layout

* Update demonstrations/tutorial_pulse_programming101.py

Co-authored-by: David Wierichs <[email protected]>

* plot label changes

* latex matplotlib fix

* reference jax docs on jitting

* official pwc

* sentence about amplitude

* commit about fix ts

* refernce typo

* add pulse example

* move convenience function part just above gradients

* bug fix

* nice result with clip and pwc and realistic values

* update text

* update text

* conclusion

* adabelief

* paper titles in quotation marks

* anharmonic resolved

* absolute of mean gradient

* review comment

* review comment label in pulse plot

* review comment qc overview page

* Apply suggestions from code review

Co-authored-by: David Wierichs <[email protected]>

* move convenience after gradient, change pwc example to different shapes

* merging sections

* tapering comment and realistic physical system

* comment about canceling exponents GHz and ns

* bug fix local run

* abstract, num rename to shape

* shapes in text

* update optimizer and learning rate remark

* minus sign in anharmonicity definition

* Apply suggestions from code review

Co-authored-by: Tom Bromley <[email protected]>

* missing plot label

* evolve link :func:

* black

* print energy difference

* rerun

* revert changes

* rerun

* retrigger

* Update demonstrations/tutorial_pulse_programming101.py

Co-authored-by: lillian542 <[email protected]>

* add see-also section for VQE

* also add pulse module reference

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

* use pyscf for openshell H3

* change date and fix interface warning

* enable float64

* update

* small update

* 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]>

* add demo illustration

* add to main text

* added abstract sentence to relate to picture and moved reference to VQE tutorial to VQE section

* 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]>

* Apply suggestions from code review

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

* add polyval comment

* add link to each qc system

* comment about parameter order and calling parametrized Hamiltonians

* driving field -> control field

* code review suggestion

* comment about objective hamiltonian

* further comment about objective hamiltonian

* clean up the messy pwc section

* add toctree

* comment about wrapper function

* small things

* small fixes

* PULSE DEMO 2.0 - physics bam!

* update text according to version 2.0

* typo

* Apply suggestions from code review

Co-authored-by: Alvaro Ballon <[email protected]>

* add vqe reference in abstract

* hook in the abstract

* interaction picture confusion

* p_i explicitly

* update plot title fig 1

* change bib order

* cross resonance comment

* commit about explicit functional form

* commit about explicit functional form

* small typos

* re-trigger

* fix v0.29.1

* Update demonstrations/tutorial_pulse_programming101.py

---------

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: David Wierichs <[email protected]>
Co-authored-by: lillian542 <[email protected]>
Co-authored-by: Tom Bromley <[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: trbromley <[email protected]>
Co-authored-by: Guillermo Alonso-Linaje <[email protected]>
Co-authored-by: Alvaro Ballon <[email protected]>
KetpuntoG added a commit that referenced this pull request Apr 3, 2023
* 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]>
KetpuntoG added a commit that referenced this pull request Apr 19, 2023
* 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

* bm macro

* remove duplicate gallery entry

---------

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]>
lillian542 pushed a commit that referenced this pull request Apr 21, 2023
* 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

* bm macro

* remove duplicate gallery entry

---------

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]>
albi3ro added a commit that referenced this pull request May 2, 2023
* 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]>

* 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]>

* 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]>

* Updated adaptive circuits demo for new return type (#735)

* Update automatically run demos to be able to execute with v0.30 (#741)

* fix toric code and classical kernels demos (#740)

* FIx photonics and noisy demos (#742)

* FIx two demos

* small change

* wrap relevant results in np.array (#743)

* Updated demos to work with return types (#744)

* Update demos for new return types (#754)

* remove pennylane-sf from dependencies

* try to use developement lightning

* force upgrade of lightnign

* make tutorial_gbs non-executable

---------

Co-authored-by: Romain Moyard <[email protected]>
Co-authored-by: Matthew Silverman <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: lillian542 <[email protected]>

* remove nlopt from list of requirements (#755)

* use dev version of lightning for demo checker (#759)

* Improve formatting of output in toric code demo (#762)

* round outputs on toric code

* Update demonstrations/tutorial_toric_code.py

Co-authored-by: Mudit Pandey <[email protected]>

---------

Co-authored-by: Matthew Silverman <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>

* use lightning in quantumvolume; fix qnspsa for new return; use H.sparse_matrix (#757)

* use lightning in quantumvolume; fix qnspsa for new return

* stop using sparse_hamiltonian

* Update manually run demos (#766)

* Added changes to manual demos

* Updated output as found in rerun

* Trigger CI

* Add warnings to pennylane-sf plugins and expected output (#761)

* add warnings to pennylane-sf plugins, add output

* Apply suggestions from code review

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

* add warning to quantum neural net

---------

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

* revert workflow changes

* add small gbs fixes

* trigger ci

* image link wrong

* trigger ci

---------

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: David Wierichs <[email protected]>
Co-authored-by: trbromley <[email protected]>
Co-authored-by: Matthew Silverman <[email protected]>
Co-authored-by: lillian542 <[email protected]>
Co-authored-by: Tom Bromley <[email protected]>
BM7878 added a commit that referenced this pull request May 10, 2023
* 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]>

* 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]>

* 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]>

* Updated adaptive circuits demo for new return type (#735)

* Update automatically run demos to be able to execute with v0.30 (#741)

* fix toric code and classical kernels demos (#740)

* FIx photonics and noisy demos (#742)

* FIx two demos

* small change

* wrap relevant results in np.array (#743)

* Updated demos to work with return types (#744)

* Update demos for new return types (#754)

* remove pennylane-sf from dependencies

* try to use developement lightning

* force upgrade of lightnign

* make tutorial_gbs non-executable

---------

Co-authored-by: Romain Moyard <[email protected]>
Co-authored-by: Matthew Silverman <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: lillian542 <[email protected]>

* remove nlopt from list of requirements (#755)

* use dev version of lightning for demo checker (#759)

* Improve formatting of output in toric code demo (#762)

* round outputs on toric code

* Update demonstrations/tutorial_toric_code.py

Co-authored-by: Mudit Pandey <[email protected]>

---------

Co-authored-by: Matthew Silverman <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>

* use lightning in quantumvolume; fix qnspsa for new return; use H.sparse_matrix (#757)

* use lightning in quantumvolume; fix qnspsa for new return

* stop using sparse_hamiltonian

* Update manually run demos (#766)

* Added changes to manual demos

* Updated output as found in rerun

* Trigger CI

* Add warnings to pennylane-sf plugins and expected output (#761)

* add warnings to pennylane-sf plugins, add output

* Apply suggestions from code review

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

* add warning to quantum neural net

---------

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

* Updates to utility code

* Added metadata for adjoint_diff_benchmarking.py

* Added metadata for tutorial_multiclass_classification.py

* Added metadata for tutorial_pulse_programming101

* Added metadata for tutorial_qnn_module_torch.py

* Added metadata for tutorial_spsa.py

* Moved categories file

* Added metadata for tutorial_here_comes_the_sun.py

* [skip ci]

[skip ci]

* Added illustrations to metadata and updated URLs to be relative (#789)

* updated metadata files

* hero image added for some demos

* image name updated

* updated hero image

* updated markdown file

* folder rename

---------

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: David Wierichs <[email protected]>
Co-authored-by: trbromley <[email protected]>
Co-authored-by: Christina Lee <[email protected]>
Co-authored-by: Matthew Silverman <[email protected]>
Co-authored-by: lillian542 <[email protected]>
Co-authored-by: Tom Bromley <[email protected]>
Co-authored-by: KetpuntoG <[email protected]>
Co-authored-by: ashishks0522 <[email protected]>
Co-authored-by: Ashish Kanwar Singh <[email protected]>
josh146 added a commit that referenced this pull request Jun 27, 2023
* 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]>

* 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]>

* 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]>

* Updated adaptive circuits demo for new return type (#735)

* Update automatically run demos to be able to execute with v0.30 (#741)

* fix toric code and classical kernels demos (#740)

* FIx photonics and noisy demos (#742)

* FIx two demos

* small change

* wrap relevant results in np.array (#743)

* Updated demos to work with return types (#744)

* Update demos for new return types (#754)

* remove pennylane-sf from dependencies

* try to use developement lightning

* force upgrade of lightnign

* make tutorial_gbs non-executable

---------

Co-authored-by: Romain Moyard <[email protected]>
Co-authored-by: Matthew Silverman <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: lillian542 <[email protected]>

* remove nlopt from list of requirements (#755)

* use dev version of lightning for demo checker (#759)

* Improve formatting of output in toric code demo (#762)

* round outputs on toric code

* Update demonstrations/tutorial_toric_code.py

Co-authored-by: Mudit Pandey <[email protected]>

---------

Co-authored-by: Matthew Silverman <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>

* use lightning in quantumvolume; fix qnspsa for new return; use H.sparse_matrix (#757)

* use lightning in quantumvolume; fix qnspsa for new return

* stop using sparse_hamiltonian

* Update manually run demos (#766)

* Added changes to manual demos

* Updated output as found in rerun

* Trigger CI

* Add warnings to pennylane-sf plugins and expected output (#761)

* add warnings to pennylane-sf plugins, add output

* Apply suggestions from code review

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

* add warning to quantum neural net

---------

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

* dev (#824)

* Update requirements.txt (#825)

* Update resource estimation demo for non-cubic systems (#823)

* Change private methods in adjoint diff tutorial (#832)

* adjoint diff tutorial improvement

* Apply suggestions from code review

Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: Matthew Silverman <[email protected]>

* update date

---------

Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: Matthew Silverman <[email protected]>

* Add fermionic operators demo (#813)

* Fixes for 0.31 release (#835)

* Updated ensemble demo

* Trigger ci

* Update circuit cutting demo

* Updated stop_recording

* Update tutorial to not rely on tape context

* Update demonstrations/tutorial_quantum_circuit_cutting.py

Co-authored-by: Matthew Silverman <[email protected]>

---------

Co-authored-by: Matthew Silverman <[email protected]>

* Modify image in fermionic demo (#838)

* use new image

* Added hero_illustrationd folder to _static, added fermionic_ops_hero.png, modified tutorial_fermionic_operators.py and metadata to add hero image and delete previous image.

---------

Co-authored-by: CatalinaAlbornoz <[email protected]>

* use pinned versions of pennylane and plugins (#840)

---------

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: David Wierichs <[email protected]>
Co-authored-by: trbromley <[email protected]>
Co-authored-by: Christina Lee <[email protected]>
Co-authored-by: Matthew Silverman <[email protected]>
Co-authored-by: lillian542 <[email protected]>
Co-authored-by: Tom Bromley <[email protected]>
Co-authored-by: Guillermo Alonso-Linaje <[email protected]>
Co-authored-by: CatalinaAlbornoz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants