Skip to content

QRAM demo#1769

Open
drdren wants to merge 19 commits intomasterfrom
dren-QRAM
Open

QRAM demo#1769
drdren wants to merge 19 commits intomasterfrom
dren-QRAM

Conversation

@drdren
Copy link
Copy Markdown
Contributor

@drdren drdren commented Apr 23, 2026

Before submitting

Please complete the following checklist when submitting a PR:

  • Ensure that your tutorial executes correctly, and conforms to the
    guidelines specified in the README.

  • Remember to do a grammar check of the content you include.

  • All tutorials conform to
    PEP8 standards.
    To auto format files, simply pip install black, and then
    run black -l 100 path/to/file.py.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.


Title:

Summary:

Relevant references:

Possible Drawbacks:

Related GitHub Issues:


If you are writing a demonstration, please answer these questions to facilitate the marketing process.

  • GOALS — Why are we working on this now?

    Eg. Promote a new PL feature or show a PL implementation of a recent paper.

  • AUDIENCE — Who is this for?

    Eg. Chemistry researchers, PL educators, beginners in quantum computing.

  • KEYWORDS — What words should be included in the marketing post?

  • Which of the following types of documentation is most similar to your file?
    (more details here)

  • Tutorial
  • Demo
  • How-to

@drdren drdren requested review from a team as code owners April 23, 2026 21:40
@github-actions
Copy link
Copy Markdown

👋 Hey, looks like you've updated some demos!

🐘 Don't forget to update the dateOfLastModification in the associated metadata files so your changes are reflected in Glass Onion (search and recommendations).

Please hide this comment once the field(s) are updated. Thanks!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

Your preview is ready 🎉!

You can view your changes here

Deployed at: 2026-04-24 18:06:34 UTC

Comment thread demonstrations_v2/tutorial_intro_qram/demo.py
Copy link
Copy Markdown
Contributor Author

@drdren drdren left a comment

Choose a reason for hiding this comment

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

Update links

Comment thread demonstrations_v2/tutorial_intro_qram/demo.py Outdated
Comment thread demonstrations_v2/tutorial_intro_qram/demo.py Outdated
Comment thread demonstrations_v2/tutorial_intro_qram/demo.py Outdated
Copy link
Copy Markdown
Contributor Author

@drdren drdren left a comment

Choose a reason for hiding this comment

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

Update links

Comment thread demonstrations_v2/tutorial_intro_qram/demo.py Outdated
Comment thread demonstrations_v2/tutorial_intro_qram/demo.py Outdated
Comment thread demonstrations_v2/tutorial_intro_qram/demo.py Outdated
@JerryChen97
Copy link
Copy Markdown
Contributor

This one is actually still in draft right?

Copy link
Copy Markdown
Contributor Author

@drdren drdren left a comment

Choose a reason for hiding this comment

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

Thank you very much for this demo! It reads very well and shows off the various QRAM methods. I have left some comments that could improve the flow and impact of this demo.

Comment thread demonstrations_v2/tutorial_intro_qram/demo.py Outdated
memory (QROM) <https://pennylane.ai/qml/demos/tutorial_intro_qrom/>`__, where a classical table of
bitstrings is loaded into a target register; instead of treating the data as a fixed read-only
lookup table, QRAM is usually discussed as an addressable memory model that can be queried
coherently and, depending on the setting, extended toward read-write memory access.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The reader might have heard that QRAM is "impossible" or extremely challenging. It might be good to address that in the intro to give a sense of how impactful this demo is.

Efficient data access is important in `quantum machine
learning <https://pennylane.ai/qml/quantum-machine-learning/>`__, search algorithms, and `state
preparation <https://pennylane.ai/qml/demos/tutorial_initial_state_preparation/>`__. In this
demonstration, we introduce quantum random access memory (QRAM), a data-loading model that addresses
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The importance of QRAM could be emphasised more here; many quantum algorithms such as those you have mentioned assume the existence of cheap/efficient/simultaneous data loading of (large) datasets. QRAM is the data loading approach that could enable those algorithms.

learning <https://pennylane.ai/qml/quantum-machine-learning/>`__, search algorithms, and `state
preparation <https://pennylane.ai/qml/demos/tutorial_initial_state_preparation/>`__. In this
demonstration, we introduce quantum random access memory (QRAM), a data-loading model that addresses
this problem from a more architectural perspective. This is already familiar from `quantum read-only
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I understand that are you introducing QROM to make QRAM seem more familiar, but this sentence construction seems to imply that QROM solves the data loading problem from above. Why isn't QROM sufficient to load data?

lookup table, QRAM is usually discussed as an addressable memory model that can be queried
coherently and, depending on the setting, extended toward read-write memory access.

"""
Copy link
Copy Markdown
Contributor Author

@drdren drdren Apr 24, 2026

Choose a reason for hiding this comment

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

Please double check the citations and bibliography!

bitstrings is loaded into a target register; instead of treating the data as a fixed read-only
lookup table, QRAM is usually discussed as an addressable memory model that can be queried
coherently and, depending on the setting, extended toward read-write memory access.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is there a particular call-to-action that you'd like the reader to take? E.g., try out these QRAM methods to load your data, or read paper X to see how QRAM is used in reality, or see how QRAM's resources scale up as the dataset becomes larger?

"title": "Intro to quantum random access memory (QRAM)",
"authors": [
{
"username": "dren"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Please list all authors' PennyLane usernames here. Make sure that the PennyLane accounts have profile photos and that the bios follow our guidelines that I sent you.

Comment on lines +19 to +24
"type": "thumbnail",
"uri": "/_static/demo_thumbnails/regular_demo_thumbnails/thumbnail_qrom.png"
},
{
"type": "large_thumbnail",
"uri": "/_static/demo_thumbnails/large_demo_thumbnails/thumbnail_large_qrom.png"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We will create thumbnails for you. Do you have any ideas? Thumbnails must be very very simple because they are tiny on the screen but must (a) capture the essence of your demo graphically and (b) entice the reader to click onto your demo. Check out our demo library to see which thumbnails you like!

We will have our illustrator create the thumbnail for you, but do draft it for us.

"uri": "/_static/demo_thumbnails/large_demo_thumbnails/thumbnail_large_qrom.png"
}
],
"seoDescription": "Learn how to enter data into a quantum computer with a quantum read-only memory (QROM) approach.",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Do you have a good description for this that search engines will pick up?

],
"basedOnPapers": [],
"referencedByPapers": [],
"relatedContent": [
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Any other related demos that you'd like to point to? QROM for sure.

Comment thread demonstrations_v2/tutorial_intro_qram/demo.py Outdated
Comment thread demonstrations_v2/tutorial_intro_qram/demo.py Outdated
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.

2 participants