Closed dwierichs closed 5 months ago
👋 Hey, looks like you've updated some demos!
🐘 Don't forget to update the dateOfLastModification
in the associated metadata files so your changes show up on pennylane.ai.
Please hide this comment once the field(s) are updated. Thanks!
Thank you for opening this pull request.
You can find the built site at this link.
Deployment Info:
1073
ddf8ae69ff0b86560b33dba07c3ca603629a7976
(The Deployment SHA
refers to the latest commit hash the docs were built from)Note: It may take several minutes for updates to this pull request to be reflected on the deployed site.
(Even if It doesn't use new features, I will target dev
to ensure that there are no unexpected problems on Monday)
Thanks for that last change @dwierichs ! Once It pass the CI, if there is not issues, I will do the merge. Is it ok for you? or anything else I should keep in mind?
Thanks for that last change @dwierichs ! Once It pass the CI, if there is not issues, I will do the merge. Is it ok for you? or anything else I should keep in mind?
Oh I see the auto-merge, I'll consider it as a yes 😄
Title: How to create dynamic circuits with mid-circuit measurements
Summary: This how-to is a walkthrough of creating a
QNode
that contains mid-circuit measurements, logical processing of the measured values, and conditioning functions on these processed measurements. As a warmup task, we implement a T-gadget, which showcases a single MCM without processing that conditions a single follow-up gate. This serves the purpose to have a minimal example of a dynamic circuit, in addition to the more contrivedQNode
example.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?
This how-to promotes mid-circuit measurement functionality in PennyLane, which has been extended in recent releases. In addition, this how-to is part of the broader goal of emphasizing MCMs and dynamic circuits in our contents.
AUDIENCE — Who is this for?
Typical how-to audience: Fundamental concepts of measurements and quantum computing are known, but the audience may not yet be familiar with PennyLane's syntax for MCMs and conditioning circuit parts on their outcomes, or they may want to consult this how-to as a reference of how to realize their dynamic circuit with MCMs. Anyone really with the goal of coding up a circuit that uses MCM values and feedforward can be in the audience.
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
[x] How-to
[sc-60837]