PennyLaneAI / qml

Introductions to key concepts in quantum programming, as well as tutorials and implementations from cutting-edge quantum computing research.
https://pennylane.ai/qml
Apache License 2.0
537 stars 185 forks source link

[MCM 2/3] How-to: Dynamic circuits with mid-circuit measurements #1073

Closed dwierichs closed 5 months ago

dwierichs commented 5 months ago

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 contrived QNode example.

Relevant references:

Possible Drawbacks:

Related GitHub Issues:


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

[sc-60837]

github-actions[bot] commented 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!

github-actions[bot] commented 5 months ago

Thank you for opening this pull request.

You can find the built site at this link.

Deployment Info:

Note: It may take several minutes for updates to this pull request to be reflected on the deployed site.

KetpuntoG commented 5 months ago

(Even if It doesn't use new features, I will target dev to ensure that there are no unexpected problems on Monday)

KetpuntoG commented 5 months ago

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?

KetpuntoG commented 5 months ago

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 😄