-
Notifications
You must be signed in to change notification settings - Fork 216
Add demo on loading classical data with low-depth circuits #1554
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
fkiwit
wants to merge
33
commits into
PennyLaneAI:master
Choose a base branch
from
fkiwit:master
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 all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
ee33999
Add demo on low depth MNIST circuits
fkiwit 482b090
Fixed the metadata and changed the number of characters to 100 using …
fkiwit cdba56e
Remove redundant packages from demonstrations_v2/low_depth_circuits_m…
fkiwit 65c8925
Merge branch 'master' into master
DSGuala 3c7710f
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit 0c0c993
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit 30e62de
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit fd7f769
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit c92aa4f
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit b874d32
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit 36a3841
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit b33525f
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit 9684f30
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit dad72d9
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit bbabcd6
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit 25db1b7
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit 7e4ce55
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit 0573e42
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit 9197f4f
Remove tqdm, remove table, add link to pennylane dataset, a bit more …
fkiwit aaef933
Merge branch 'master' into master
DSGuala 9021b07
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit e19a272
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit 14135cf
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit 16a0676
Merge branch 'master' into master
fkiwit 675327a
add images and update metadata
DSGuala 4ff933c
update dateOfPublication
DSGuala e96a661
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
daniela-angulo 78363ca
Update demonstrations_v2/low_depth_circuits_mnist/requirements.in
DSGuala acd8fbc
Apply suggestions from code review
daniela-angulo 01f7e62
Apply suggestions from code review
daniela-angulo 74c3e57
Merge pull request #1 from PennyLaneAI/add-low-depth-image-circuits-t…
fkiwit aa27a99
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit e433140
Update demonstrations_v2/low_depth_circuits_mnist/demo.py
fkiwit 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
There are no files selected for viewing
Binary file added
BIN
+49.3 KB
...large_demo_thumbnails/pennylane-demo-loading-data-low-depth-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
+47 KB
.../opengraph_demo_thumbnails/pennylane-demo-loading-data-low-depth-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
+12.2 KB
...ils/regular_demo_thumbnails/pennylane-demo-loading-data-low-depth-thumbnail.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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
106 changes: 106 additions & 0 deletions
106
demonstrations_v2/low_depth_circuits_mnist/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,106 @@ | ||
| { | ||
| "title": "Loading classical data with low-depth circuits", | ||
| "authors": [ | ||
| { | ||
| "username": "flokiwit" | ||
| }, | ||
| { | ||
| "username": "bernhard" | ||
| }, | ||
| { | ||
| "username": "criofrio" | ||
| } | ||
| ], | ||
| "executable_stable": true, | ||
| "executable_latest": true, | ||
| "dateOfPublication": "2025-11-25T00:00:00+00:00", | ||
| "dateOfLastModification": "2025-11-17T00:00:00+00:00", | ||
| "categories": [ | ||
| "Quantum Machine Learning" | ||
| ], | ||
| "tags": [], | ||
| "previewImages": [ | ||
| { | ||
| "type": "thumbnail", | ||
| "uri": "/_static/demo_thumbnails/regular_demo_thumbnails/pennylane-demo-loading-data-low-depth-thumbnail.png" | ||
| }, | ||
| { | ||
| "type": "large_thumbnail", | ||
| "uri": "/_static/demo_thumbnails/opengraph_demo_thumbnails/pennylane-demo-loading-data-low-depth-open-graph.png" | ||
| } | ||
| ], | ||
| "seoDescription": "This demo shows how to efficiently encode classical image data into quantum states using low-depth circuits, and train a variational quantum classifier on a low-depth MNIST dataset.", | ||
| "doi": "", | ||
| "references": [ | ||
| { | ||
| "id": "kiwit2025", | ||
| "type": "article", | ||
| "title": "Typical Machine Learning Datasets as Low-Depth Quantum Circuits", | ||
| "authors": "Kiwit, F.J., Jobst, B., Luckow, A., Pollmann, F., Riofrío, C.A.", | ||
| "year": "2025", | ||
| "journal": "Quantum Sci. Technol.", | ||
| "doi": "10.1088/2058-9565/ae0123", | ||
| "url": "https://doi.org/10.1088/2058-9565/ae0123" | ||
| }, | ||
| { | ||
| "id": "le2011a", | ||
| "type": "article", | ||
| "title": "A flexible representation of quantum images for polynomial preparation, image compression, and processing operations", | ||
| "authors": "Le, P.Q., Dong, F., Hirota, K.", | ||
| "year": "2011", | ||
| "journal": "Quantum Inf. Process", | ||
| "doi": "10.1007/s11128-010-0177-y", | ||
| "url": "https://doi.org/10.1007/s11128-010-0177-y" | ||
| }, | ||
| { | ||
| "id": "le2011b", | ||
| "type": "other", | ||
| "title": "A Flexible Representation and Invertible Transformations for Images on Quantum Computers", | ||
| "authors": "Le, P.Q., Iliyasu, A.M., Dong, F., Hirota, K.", | ||
| "year": "2011", | ||
| "booktitle": "New Advances in Intelligent Signal Processing. Studies in Computational Intelligence, vol 372", | ||
| "publisher": "Springer, Berlin, Heidelberg", | ||
| "doi": "10.1007/978-3-642-11739-8_9", | ||
| "url": "https://doi.org/10.1007/978-3-642-11739-8_9" | ||
| }, | ||
| { | ||
| "id": "sun2011", | ||
| "type": "other", | ||
| "title": "A Multi-Channel Representation for Images on Quantum Computers Using the RGBα Color Space", | ||
| "authors": "Sun, B. et al.", | ||
| "year": "2011", | ||
| "booktitle": "2011 IEEE 7th International Symposium on Intelligent Signal Processing, Floriana, Malta", | ||
| "pages": "1–6", | ||
| "doi": "10.1109/WISP.2011.6051718", | ||
| "url": "https://doi.org/10.1109/WISP.2011.6051718" | ||
| }, | ||
| { | ||
| "id": "sun2013", | ||
| "type": "article", | ||
| "title": "An RGB Multi-Channel Representation for Images on Quantum Computers", | ||
| "authors": "Sun, B., Iliyasu, A., Yan, F., Dong, F., Hirota, K.", | ||
| "year": "2013", | ||
| "journal": "J. Adv. Comput. Intell. Intell. Inform.", | ||
| "volume": "17", | ||
| "number": "3", | ||
| "pages": "404–417", | ||
| "doi": "10.20965/jaciii.2013.p0404", | ||
| "url": "https://doi.org/10.20965/jaciii.2013.p0404" | ||
| }, | ||
| { | ||
| "id": "jobst2024", | ||
| "type": "article", | ||
| "title": "Efficient MPS representations and quantum circuits from the Fourier modes of classical image data", | ||
| "authors": "Jobst, B., Shen, K., Riofrío, C.A., Shishenina, E., Pollmann, F.", | ||
| "year": "2024", | ||
| "journal": "Quantum", | ||
| "volume": "8", | ||
| "pages": "1544", | ||
| "doi": "10.22331/q-2024-12-03-1544", | ||
| "url": "https://doi.org/10.22331/q-2024-12-03-1544" | ||
| } | ||
| ], | ||
| "basedOnPapers": ["10.1088/2058-9565/ae0123"], | ||
| "referencedByPapers": [], | ||
| "relatedContent": [] | ||
| } | ||
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,2 @@ | ||
| autoray==0.8 | ||
| tqdm==4.67.1 |
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.