Skip to content

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

Merged
timmysilv merged 5 commits intodevfrom
timmysilv/0.30-updates
Apr 27, 2023
Merged

use lightning in quantumvolume; fix qnspsa for new return; use H.sparse_matrix#757
timmysilv merged 5 commits intodevfrom
timmysilv/0.30-updates

Conversation

@timmysilv
Copy link
Copy Markdown
Contributor

@timmysilv timmysilv commented Apr 24, 2023

as the title states.

I checked the QNSPSA one with an older braket plugin (1.10.3) because it's what I had installed and didn't complain about me using the latest master of PennyLane. Perhaps it's too soon to bump this demo, because the braket plugin isn't even compatible with the latest pennylane (which is when the new return system first becomes default)

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 26, 2023

Thank you for opening this pull request.

You can find the built site at this link.

Deployment Info:

  • Pull Request ID: 757
  • Deployment SHA: d6c591e75c28e9c8b8d841ed01e230378e54a90f
    (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.

@timmysilv timmysilv requested a review from a team April 26, 2023 16:33
@timmysilv timmysilv changed the title use lightning in quantumvolume; fix qnspsa for new return use lightning in quantumvolume; fix qnspsa for new return; use H.sparse_matrix Apr 26, 2023
Copy link
Copy Markdown
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 @timmysilv it looks good to me!

@timmysilv
Copy link
Copy Markdown
Contributor Author

updated the description with a word of warning about bumping qnspsa now

@timmysilv timmysilv enabled auto-merge (squash) April 27, 2023 15:28
@timmysilv timmysilv merged commit 30a6039 into dev Apr 27, 2023
@timmysilv timmysilv deleted the timmysilv/0.30-updates branch April 27, 2023 15:50
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 <josh146@gmail.com>
Co-authored-by: GitHub Nightly Merge Action <actions@github.com>
Co-authored-by: Rashid N H M <95639609+rashidnhm@users.noreply.github.com>

Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
Co-authored-by: Josh Izaac <josh146@gmail.com>
Co-authored-by: GitHub Nightly Merge Action <actions@github.com>

* 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 <rmoyard@gmail.com>

* 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 <josh146@gmail.com>

* simplify code, update outputs and figures

* Apply suggestions from code review

Co-authored-by: Romain Moyard <rmoyard@gmail.com>

* 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 <josh146@gmail.com>
Co-authored-by: Romain Moyard <rmoyard@gmail.com>

* 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 <rmoyard@gmail.com>
Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>

* 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 <mudit.pandey@xanadu.ai>

---------

Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>

* 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 <49409390+trbromley@users.noreply.github.com>
Co-authored-by: Josh Izaac <josh146@gmail.com>

* add warning to quantum neural net

---------

Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
Co-authored-by: Josh Izaac <josh146@gmail.com>

* revert workflow changes

* add small gbs fixes

* trigger ci

* image link wrong

* trigger ci

---------

Co-authored-by: Josh Izaac <josh146@gmail.com>
Co-authored-by: GitHub Nightly Merge Action <actions@github.com>
Co-authored-by: Rashid N H M <95639609+rashidnhm@users.noreply.github.com>
Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Co-authored-by: Romain Moyard <rmoyard@gmail.com>
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
Co-authored-by: David Wierichs <davidwierichs@gmail.com>
Co-authored-by: trbromley <brotho02@gmail.com>
Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
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 <josh146@gmail.com>
Co-authored-by: GitHub Nightly Merge Action <actions@github.com>
Co-authored-by: Rashid N H M <95639609+rashidnhm@users.noreply.github.com>

Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
Co-authored-by: Josh Izaac <josh146@gmail.com>
Co-authored-by: GitHub Nightly Merge Action <actions@github.com>

* 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 <rmoyard@gmail.com>

* 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 <josh146@gmail.com>

* simplify code, update outputs and figures

* Apply suggestions from code review

Co-authored-by: Romain Moyard <rmoyard@gmail.com>

* 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 <josh146@gmail.com>
Co-authored-by: Romain Moyard <rmoyard@gmail.com>

* 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 <rmoyard@gmail.com>
Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>

* 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 <mudit.pandey@xanadu.ai>

---------

Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>

* 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 <49409390+trbromley@users.noreply.github.com>
Co-authored-by: Josh Izaac <josh146@gmail.com>

* add warning to quantum neural net

---------

Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
Co-authored-by: Josh Izaac <josh146@gmail.com>

* 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 <josh146@gmail.com>
Co-authored-by: GitHub Nightly Merge Action <actions@github.com>
Co-authored-by: Rashid N H M <95639609+rashidnhm@users.noreply.github.com>
Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Co-authored-by: Romain Moyard <rmoyard@gmail.com>
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
Co-authored-by: David Wierichs <davidwierichs@gmail.com>
Co-authored-by: trbromley <brotho02@gmail.com>
Co-authored-by: Christina Lee <chrissie.c.l@gmail.com>
Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
Co-authored-by: KetpuntoG <65235481+KetpuntoG@users.noreply.github.com>
Co-authored-by: ashishks0522 <ashish.singh@xanadu.ai>
Co-authored-by: Ashish Kanwar Singh <104938869+ashishks0522@users.noreply.github.com>
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 <josh146@gmail.com>
Co-authored-by: GitHub Nightly Merge Action <actions@github.com>
Co-authored-by: Rashid N H M <95639609+rashidnhm@users.noreply.github.com>

Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
Co-authored-by: Josh Izaac <josh146@gmail.com>
Co-authored-by: GitHub Nightly Merge Action <actions@github.com>

* 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 <rmoyard@gmail.com>

* 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 <josh146@gmail.com>

* simplify code, update outputs and figures

* Apply suggestions from code review

Co-authored-by: Romain Moyard <rmoyard@gmail.com>

* 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 <josh146@gmail.com>
Co-authored-by: Romain Moyard <rmoyard@gmail.com>

* 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 <rmoyard@gmail.com>
Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>

* 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 <mudit.pandey@xanadu.ai>

---------

Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>

* 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 <49409390+trbromley@users.noreply.github.com>
Co-authored-by: Josh Izaac <josh146@gmail.com>

* add warning to quantum neural net

---------

Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
Co-authored-by: Josh Izaac <josh146@gmail.com>

* 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 <mudit.pandey@xanadu.ai>
Co-authored-by: Matthew Silverman <matthews@xanadu.ai>

* update date

---------

Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
Co-authored-by: Matthew Silverman <matthews@xanadu.ai>

* 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 <matthews@xanadu.ai>

---------

Co-authored-by: Matthew Silverman <matthews@xanadu.ai>

* 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 <albornoz.catalina@hotmail.com>

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

---------

Co-authored-by: GitHub Nightly Merge Action <actions@github.com>
Co-authored-by: Rashid N H M <95639609+rashidnhm@users.noreply.github.com>
Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Co-authored-by: Romain Moyard <rmoyard@gmail.com>
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
Co-authored-by: David Wierichs <davidwierichs@gmail.com>
Co-authored-by: trbromley <brotho02@gmail.com>
Co-authored-by: Christina Lee <chrissie.c.l@gmail.com>
Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
Co-authored-by: Guillermo Alonso-Linaje <65235481+KetpuntoG@users.noreply.github.com>
Co-authored-by: CatalinaAlbornoz <albornoz.catalina@hotmail.com>
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