Commit 88a3653
Add demo on loading classical data with low-depth circuits (#1554)
**Title:**
Add demo on loading classical data with low-depth circuits
**Summary:**
This pull request adds a new demonstration on how to efficiently load
classical image data into quantum states using low-depth quantum
circuits, based on the paper "Typical Machine Learning Datasets as
Low‑Depth Quantum Circuits". The demo uses the MNIST dataset and shows
how to train a variational quantum classifier on the encoded data. This
demo leverages the new qml.data module for dataset loading.
**Relevant references:**
- "Typical Machine Learning Datasets as Low‑Depth Quantum Circuits"
(2025) [1]
- "A flexible representation of quantum images for polynomial
preparation, image compression, and processing operations" [2, 3]
- "A Multi-Channel Representation for images on quantum computers using
the RGBα color space" [4, 5]
- "Efficient MPS representations and quantum circuits from the Fourier
modes of classical image data" [6]
**Possible Drawbacks:**
The dataset required for this demo is large (~1GB), which might be a
consideration for users with limited bandwidth or storage.
**Related GitHub Issues:**
None
----
If you are writing a demonstration, please answer these questions to
facilitate the marketing process.
* GOALS — Why are we working on this now?
Promote the new `qml.data` feature for loading datasets and show a
PennyLane implementation of a recent paper on efficient data loading for
QML.
* AUDIENCE — Who is this for?
QML researchers, students, and practitioners interested in efficient
data loading techniques and their application to image classification
tasks.
* KEYWORDS — What words should be included in the marketing post?
Quantum Machine Learning, Quantum Datasets, Image Loading, Low-depth
circuits, Variational Quantum Classifier, MNIST, PennyLane, qml.data
* Which of the following types of documentation is most similar to your
file?
(more details
[here](https://www.notion.so/xanaduai/Different-kinds-of-documentation-69200645fe59442991c71f9e7d8a77f8))
- [ ] Tutorial
- [x] Demo
- [ ] How-to
---------
Co-authored-by: Diego <67476785+DSGuala@users.noreply.github.com>
Co-authored-by: Daniela Angulo <42325731+daniela-angulo@users.noreply.github.com>
Co-authored-by: Diego <diego_guala@hotmail.com>1 parent 14db0fa commit 88a3653
8 files changed
Lines changed: 737 additions & 0 deletions
File tree
- _static
- demo_thumbnails
- large_demo_thumbnails
- opengraph_demo_thumbnails
- regular_demo_thumbnails
- demonstration_assets/low_depth_circuits_mnist
- demonstrations_v2/low_depth_circuits_mnist
Large diffs are not rendered by default.
Lines changed: 122 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments