-
Notifications
You must be signed in to change notification settings - Fork 186
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
ZNE demo using catalyst #1207
base: master
Are you sure you want to change the base?
ZNE demo using catalyst #1207
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is still a WIP and some of the chunks I made comments are are block-commented out, so happy to take subsequent passes on this as it is developed!
1. an example quantum circuit to run | ||
2. a way to execute circuits | ||
|
||
The circuits we use here will be ..., and the method of execution will be a noisy simulation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The circuits we use here will be ...,
. Is the ellipsis a placeholder for types of circuits used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup exactly! @cosenal is going to fill in some of the code, and I wasn't sure what he was changing the circuits too :)
print(mitigated_circuit()) | ||
|
||
############################################################################## | ||
# But there's still a big unanswered question! _If I can do this all in PennyLane, what is Catalyst |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually a great question and one that took me a while to thoroughly understand and appreciate!
Co-Authored-By: Vincent Russo <[email protected]>
------------------------------------------------------------------------------------------------------------ **Title:** How to implement VQD with PennyLane **Summary:** **Relevant references:** **Possible Drawbacks:** **Related GitHub Issues:** ---- If you are writing a demonstration, please answer these questions to facilitate the marketing process. * GOALS — Finding first excitation energy is necessary to model reaction * AUDIENCE — Chemistry researchers, beginners in quantum computing. * KEYWORDS — Quantum Chemistry * 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)) - [x] Tutorial - [x] Demo - [x] How-to [sc-64060] --------- Co-authored-by: Guillermo Alonso-Linaje <[email protected]> Co-authored-by: soranjh <[email protected]> Co-authored-by: Ivana Kurečić <[email protected]> Co-authored-by: Ivana Kurečić <[email protected]>
## Changes - FIx metadata URL
See title change.
…1184) ## Ticket - [sc-70154-update-qml-readme-to-highlight-image-standards](https://app.shortcut.com/xanaduai/story/70154/update-qml-readme-to-highlight-image-standards) ## Changes - Add instructions to `README.md` about image standards to be followed while writing demos this QML repository. - Requirements sources from this [doc](https://www.notion.so/xanaduai/Image-standards-for-web-projects-264c09e45a8941a597918b878a2f1a5e) - Since QML is public & the notion doc is private (accessible by Xanadu only) added the relevant standards in text form in the `README.md` ## Preview - https://github.com/PennyLaneAI/qml/blob/2e9da1bb2bef3cd8a2eb504459f686ab20b9ec0c/README.md
@josh146 @dime10 @nathanshammah The tutorial is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @natestemen . I've left some comments and suggestions for non-technical aspects of the Demo. Please let me know if you have any questions or concerns.
After you take a look at these comments, we will still be missing @josh146 's approval, and then it will be ready for merging and we can coordinate the launch via Discord.
"id": "alessandro_cosentino", | ||
"affiliation": "Unitary Fund" | ||
}, | ||
{ | ||
"id": "nate_stemen", | ||
"affiliation": "Unitary Fund" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cosenal and @natestemen ! We've actually had a recent update and your author info will get pulled from your pennylane.ai profiles instead of the repository files. That way you can update all the info independently, without making pull requests, and add additional links and other stuff.
Could you please alter this section as follows?
"id": "alessandro_cosentino", | |
"affiliation": "Unitary Fund" | |
}, | |
{ | |
"id": "nate_stemen", | |
"affiliation": "Unitary Fund" | |
"username": "username_here" | |
}, | |
{ | |
"username": "username_here" |
You just go to pennylane.ai, create an account (if you don't have one already), and then set up your profile(s). The information that gets pulled is the picture, name, and headline, but please feel free to add anything else you'd like.
Please let me know if I can help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ikurecic do we also remove the files in _static/authors
then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cosenal , yes, you can remove those files.
"dateOfPublication": "2024-09-09T00:00:00+00:00", | ||
"dateOfLastModification": "2024-09-09T00:00:00+00:00", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tk
"previewImages": [ | ||
{ | ||
"type": "thumbnail", | ||
"uri": "/_static/demo_thumbnails/regular_demo_thumbnails/thumbnail_qrack_catalyst_integration.png" | ||
}, | ||
{ | ||
"type": "large_thumbnail", | ||
"uri": "/_static/demo_thumbnails/large_demo_thumbnails/thumbnail_large_qrack_catalyst_integration.png" | ||
} | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tk
# The probability of error is specified by the value of the `noise` constructor argument (or | ||
# the `QRACK_GATE_DEPOLARIZATION` environment variable). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean this?
# The probability of error is specified by the value of the `noise` constructor argument (or | |
# the `QRACK_GATE_DEPOLARIZATION` environment variable). | |
# The probability of error is specified by the value of the ``noise`` constructor argument (or | |
# the ``QRACK_GATE_DEPOLARIZATION`` environment variable). |
], | ||
"seoDescription": "Digital Zero-Noise Extrapolation with Catalyst", | ||
"doi": "", | ||
"canonicalURL": "/qml/demos/tutorial_zne_catalyst", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"canonicalURL": "/qml/demos/tutorial_zne_catalyst", |
Removing due to today's repository update.
# whenever the device of choice is not supported by Catalyst. To help, | ||
# we conlcude with a landscape of the QEM techniques available on Pennylane. | ||
# | ||
# .. list-table:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding this table, Romain mentioned on Discord that those zne functions in Catalyst are not yet differentiable. @rmoyard is that still the case? In which case, should I remove the checkmark from the Catalyst/Differentiable cell?
Co-authored-by: Ivana Kurečić <[email protected]>
"previewImages": [ | ||
{ | ||
"type": "thumbnail", | ||
"uri": "/_static/demo_thumbnails/regular_demo_thumbnails/thumbnail_qjit_compile_grovers_algorithm_with_catalyst.png" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ikurecic are those thumbnails just placeholders?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cosenal , whoops, I mistakenly put the wrong thumbnails in, thanks so much for noticing. I'll fix this now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should be fixed now. Thanks for the tip.
############################################################################## | ||
# About the authors | ||
# ----------------- | ||
# .. include:: ../_static/authors/alessandro_cosentino.txt | ||
# | ||
# .. include:: ../_static/authors/nate_stemen.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ikurecic should this stay here, or is this created as part of the build process now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@natestemen You can remove it. It doesn't cause any trouble to keep it, but you can remove it.
Using ZNE with PennyLane | ||
------------------------ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to either rename this section (for example, 'Demo overview') or simply put in an image (the OGthumbnail at 70% width) instead of the section title?
It's quite a confusing structure for readers as it is right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, good suggestion. Done in bc166cf
Co-authored-by: Ivana Kurečić <[email protected]>
What is zero-noise extrapolation (ZNE) | ||
----------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is zero-noise extrapolation (ZNE) | |
----------- | |
What is zero-noise extrapolation (ZNE) | |
-------------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tutorial looks great 😍
recommend reading the `Mitiq docs <https://mitiq.readthedocs.io/en/stable/guide/zne-5-theory.html>`_ | ||
and the references therein), let's first review what happens when using the protocol in practice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
Title: Digital Zero-Noise Extrapolation with Catalyst
Summary: A simple tutorial walking through how to use the latest features of Catalyst's implementation of ZNE.
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 capabilities of Catalyst.
AUDIENCE — Who is this for?
Quantum application scientists, and error mitigation researchers.
KEYWORDS — What words should be included in the marketing post?
Error mitigation, JIT
Which of the following types of documentation is most similar to your file?
(more details here)