Skip to content

ZNE demo using catalyst #1207

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

Merged
merged 62 commits into from
Nov 15, 2024
Merged

ZNE demo using catalyst #1207

merged 62 commits into from
Nov 15, 2024

Conversation

natestemen
Copy link
Contributor

@natestemen natestemen commented Sep 5, 2024

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)

  • Tutorial
  • Demo
  • How-to

@rmoyard rmoyard self-requested a review September 5, 2024 15:39
@josh146 josh146 marked this pull request as ready for review September 5, 2024 22:40
@josh146 josh146 changed the title ZNE demo using catalyst [Draft] ZNE demo using catalyst Sep 5, 2024
Copy link

@vprusso vprusso left a 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
Copy link

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?

Copy link
Contributor Author

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
Copy link

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!

natestemen and others added 12 commits September 7, 2024 08:59
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
## 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
@cosenal
Copy link
Contributor

cosenal commented Sep 19, 2024

@josh146 @dime10 @nathanshammah The tutorial is ready for review.
(I am not the owner of the PR, so I can't change the title, but please ignore the [Draft] label)

@natestemen natestemen changed the title [Draft] ZNE demo using catalyst ZNE demo using catalyst Sep 20, 2024
@natestemen natestemen requested a review from josh146 September 20, 2024 14:48
Copy link
Contributor

@ikurecic ikurecic left a comment

Choose a reason for hiding this comment

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

Thanks @cosenal and @natestemen , I have left just a couple of minor suggestions, and I will check in with you about the timeline.

results by running circuits at varying noise levels and extrapolating back to a hypothetical
zero-noise case. While this tutorial won't delve into the theory behind ZNE in detail (for which we
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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
and the references therein), let's first review what happens when using the protocol in practice.
and the references therein), let's first review what happens when using the protocol in practice, in three stages.

Could we set the expectations like this or in a similar way? As a first-time reader, the structure confused me a bit.

Co-authored-by: Ivana Kurečić <[email protected]>
Co-authored-by: Josh Izaac <[email protected]>
@ikurecic ikurecic merged commit 22a96cd into PennyLaneAI:master Nov 15, 2024
10 checks passed
@cosenal cosenal deleted the zne-catalyst-tutorial branch November 18, 2024 09:00
ikurecic added a commit that referenced this pull request Nov 25, 2024
Follow-up of [#1207](#1207) to
add a note on plugin installation.
[As per @dedoussis's feedback 🙏]

---------

Co-authored-by: Ivana Kurečić <[email protected]>
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.

10 participants