-
Notifications
You must be signed in to change notification settings - Fork 243
Upload nonlinear amplitude transformation demo #1738
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
Open
drdren
wants to merge
67
commits into
master
Choose a base branch
from
dren-nonlinear-QSVT
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 55 commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
3997239
Upload nonlinear amplitude transformation demo
drdren a7b0e4a
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren 335df76
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren d501d82
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren 2cd34b0
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren 78adab8
Merge branch 'master' into dren-nonlinear-QSVT
drdren 25ffba0
Add requirements to install pyqsp
drdren eb77784
Upload thumbnails and figure
drdren 825b4b2
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren 2109524
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren 311cb47
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren 852df44
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren b868a35
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren ede1c47
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren 3d17876
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren af2ac92
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren c372945
Fix figure name
drdren 8a22ca9
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren 6912422
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren 59db055
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren c5b8b5c
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren e6639f9
Merge branch 'master' into dren-nonlinear-QSVT
drdren a73c75b
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren 300a2b3
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren a782e96
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren 9670073
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
drdren 1d756dc
Change qml to qp
drdren 038c4d7
Merge branch 'master' into dren-nonlinear-QSVT
drdren a6cb8b5
Apply suggestion from @drdren
rishabh-gupta28 bd3b1f8
Apply suggestion from @drdren
rishabh-gupta28 a87cfc6
Apply suggestion from @drdren
rishabh-gupta28 abcbf97
Apply suggestion from @drdren
rishabh-gupta28 feddad0
Apply suggestion from @drdren
rishabh-gupta28 7fcf98a
Apply suggestion from @drdren
rishabh-gupta28 2653f1f
Apply suggestion from @drdren
rishabh-gupta28 94830fe
Apply suggestion from @drdren
rishabh-gupta28 952ec09
Apply suggestion from @drdren
rishabh-gupta28 df2d547
Apply suggestion from @drdren
rishabh-gupta28 e9bb93b
Apply suggestion from @drdren
rishabh-gupta28 0d7fd1d
Apply suggestion from @drdren
rishabh-gupta28 f6a4a71
Apply suggestion from @drdren
rishabh-gupta28 8bd9563
Apply suggestion from @drdren
rishabh-gupta28 33c09fd
Apply suggestion from @drdren
rishabh-gupta28 59a5532
Apply suggestion from @drdren
rishabh-gupta28 ef64c31
Update bibliography formatting
drdren a3bb6f1
Update referencing method
drdren 57febb5
Grammar fixes
drdren d77ab17
Merge branch 'master' into dren-nonlinear-QSVT
drdren 833831e
Fix formatting
drdren 5b73507
fix: simplify build workflow expressions for CodeQL
Copilot 72e33c3
Undo Copilot's changes. May have to update formatting again.
7423153
Revert "fix: simplify build workflow expressions for CodeQL"
cee8e88
Fix formatting
drdren dc3d59d
Merge branch 'master' into dren-nonlinear-QSVT
drdren 5f8b51e
Formatting
drdren a7091d4
Space out the tip
drdren 4c9d016
Extra comments for the introduction.
ca3aa98
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
rishabh-gupta28 ab8c7d7
Update demonstrations_v2/tutorial_nonlinear_amplitude_transformation/…
rishabh-gupta28 e0af08a
Apply suggestion from @drdren
rishabh-gupta28 9b5af1f
Apply suggestion from @drdren
rishabh-gupta28 10cadd9
Apply suggestion from @drdren
rishabh-gupta28 bf225a9
Apply suggestion from @drdren
rishabh-gupta28 e9826c7
Apply suggestion from @drdren
rishabh-gupta28 efd0cd5
Apply suggestion from @rishabh-gupta28
rishabh-gupta28 249b0ef
Merge branch 'master' into dren-nonlinear-QSVT
drdren 43d509a
Update authors
drdren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Binary file added
BIN
+46.9 KB
...emo_thumbnails/pennylane-demo-nonlinear-transformation-qsvt-large-thumbnail.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
BIN
+45.4 KB
...aph_demo_thumbnails/pennylane-demo-nonlinear-transformation-qsvt-open-graph.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
BIN
+11.7 KB
...ular_demo_thumbnails/pennylane-demo-nonlinear-transformation-qsvt-thumbnail.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
BIN
+105 KB
...mplitude-transformation/pennylane-demo-nonlinear-transformation-qsvt-method.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
754 changes: 754 additions & 0 deletions
754
demonstrations_v2/tutorial_nonlinear_amplitude_transformation/demo.py
Large diffs are not rendered by default.
Oops, something went wrong.
148 changes: 148 additions & 0 deletions
148
demonstrations_v2/tutorial_nonlinear_amplitude_transformation/metadata.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,148 @@ | ||
| { | ||
| "title": "Nonlinear amplitude transformation", | ||
| "authors": [ | ||
| { | ||
| "username": "rishabhgupta" | ||
| } | ||
| ], | ||
| "executable_stable": true, | ||
| "executable_latest": true, | ||
| "dateOfPublication": "2026-04-08T10:00:00+00:00", | ||
| "dateOfLastModification": "2026-04-08T15:48:14+00:00", | ||
| "categories": [ | ||
| "Quantum Machine Learning" | ||
| ], | ||
| "tags": [], | ||
| "previewImages": [ | ||
| { | ||
| "type": "thumbnail", | ||
| "uri": "/_static/demo_thumbnails/regular_demo_thumbnails/pennylane-demo-nonlinear-transformation-qsvt-thumbnail.png" | ||
| }, | ||
| { | ||
| "type": "large_thumbnail", | ||
| "uri": "/_static/demo_thumbnails/large_demo_thumbnails/pennylane-demo-nonlinear-transformation-qsvt-large-thumbnail.png" | ||
| } | ||
| ], | ||
| "seoDescription": "Learn about the nonlinear amplitude transformation using QSVT", | ||
| "doi": "", | ||
| "references": [ | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the bibliography in demo.py is correct, then this references section should be changed accordingly. |
||
| { | ||
| "id": "Bravyi2004", | ||
| "type": "article", | ||
| "title": "Universal Quantum Computation with ideal Clifford gates and noisy ancillas", | ||
| "authors": "Sergei Bravyi and Alexei Kitaev", | ||
| "year": "2004", | ||
| "journal": "arXiv", | ||
| "url": "https://arxiv.org/abs/quant-ph/0403025" | ||
| }, | ||
| { | ||
| "id": "Fowler", | ||
| "type": "article", | ||
| "title": "Surface codes: Towards practical large-scale quantum computation", | ||
| "authors": "Austin G. Fowler, Matteo Mariantoni, John M. Martinis, Andrew N. Cleland", | ||
| "year": "2012", | ||
| "journal": "Phys. Rev. A", | ||
| "url": "https://journals.aps.org/pra/abstract/10.1103/PhysRevA.86.032324" | ||
| }, | ||
| { | ||
| "id": "Gidney2024", | ||
| "type": "article", | ||
| "title": "Magic state cultivation: growing T states as cheap as CNOT gates", | ||
| "authors": "Craig Gidney, Noah Shutty, Cody Jones", | ||
| "year": "2024", | ||
| "journal": "arXiv", | ||
| "url": "https://arxiv.org/abs/2409.17595" | ||
| }, | ||
| { | ||
| "id": "QuEra2025", | ||
| "type": "article", | ||
| "title": "Experimental demonstration of logical magic state distillation", | ||
| "authors": "Pedro Sales Rodriguez, et al.", | ||
| "year": "2025", | ||
| "journal": "Nature", | ||
| "url": "https://www.nature.com/articles/s41586-025-09367-3" | ||
| }, | ||
| { | ||
| "id": "Ruiz2025", | ||
| "type": "article", | ||
| "title": "Unfolded distillation: very low-cost magic state preparation for biased-noise qubits", | ||
| "authors": "Diego Ruiz, Jérémie Guillaud, Christophe Vuillot, Mazyar Mirrahimi", | ||
| "year": "2025", | ||
| "journal": "arXiv", | ||
| "url": "https://arxiv.org/abs/2507.12511" | ||
| }, | ||
| { | ||
| "id": "Itogawa2025", | ||
| "type": "article", | ||
| "title": "Efficient magic state distillation by zero-Level distillation", | ||
| "authors": "Tomohiro Itogawa, Yugo Takada, Yutaka Hirano, Keisuke Fujii", | ||
| "year": "2025", | ||
| "journal": "PRX Quantum", | ||
| "url": "https://journals.aps.org/prxquantum/abstract/10.1103/thxx-njr6" | ||
| }, | ||
| { | ||
| "id": "Hirano2024", | ||
| "type": "article", | ||
| "title": "Leveraging Zero-Level Distillation to Generate High-Fidelity Magic States", | ||
| "authors": "Yutaka Hirano, Tomohiro Itogawa, Keisuke Fujii", | ||
| "year": "2024", | ||
| "journal": "arXiv", | ||
| "url": "https://arxiv.org/abs/2404.09740" | ||
| }, | ||
| { | ||
| "id": "Google2025", | ||
| "type": "article", | ||
| "title": "Magic state cultivation on a superconducting quantum processor", | ||
| "authors": "Emma Rosenfeld, et al.", | ||
| "year": "2025", | ||
| "journal": "arXiv", | ||
| "url": "https://arxiv.org/abs/2512.13908" | ||
| }, | ||
| { | ||
| "id": "Chen2025", | ||
| "type": "article", | ||
| "title": "Efficient Magic State Cultivation on ℝ\u21192", | ||
| "authors": "Zi-Han Chen, Ming-Cheng Chen, Chao-Yang Lu, Jian-Wei Pan", | ||
| "year": "2025", | ||
| "journal": "arXiv", | ||
| "url": "https://arxiv.org/abs/2503.18657" | ||
| }, | ||
| { | ||
| "id": "Hirano2025", | ||
| "type": "article", | ||
| "title": "Efficient magic state cultivation with lattice surgery", | ||
| "authors": "Yutaka Hirano, Riki Toshio, Tomohiro Itogawa, Keisuke Fujii", | ||
| "year": "2025", | ||
| "journal": "arXiv", | ||
| "url": "https://arxiv.org/abs/2510.24615" | ||
| }, | ||
| { | ||
| "id": "Heinrich2019", | ||
| "type": "article", | ||
| "title": "Robustness of Magic and Symmetries of the Stabiliser Polytope", | ||
| "authors": "Markus Heinrich and David Gross", | ||
| "year": "2019", | ||
| "journal": "Quantum", | ||
| "url": "https://quantum-journal.org/papers/q-2019-04-08-132" | ||
| } | ||
| ], | ||
| "basedOnPapers": [], | ||
| "referencedByPapers": [], | ||
| "relatedContent": [ | ||
| { | ||
| "type": "demonstration", | ||
| "id": "tutorial_magic_state_distillation", | ||
| "weight": 1.0 | ||
| }, | ||
| { | ||
| "type": "demonstration", | ||
| "id": "tutorial_game_of_surface_codes", | ||
| "weight": 0.5 | ||
| }, | ||
| { | ||
| "type": "demonstration", | ||
| "id": "tutorial_lattice_surgery", | ||
| "weight": 0.5 | ||
| } | ||
| ] | ||
| } | ||
1 change: 1 addition & 0 deletions
1
demonstrations_v2/tutorial_nonlinear_amplitude_transformation/requirements.in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| pyqsp |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.