-
Notifications
You must be signed in to change notification settings - Fork 643
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
Support drawing MidMeasureMP
with qml.draw
#4775
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4775 +/- ##
==========================================
- Coverage 99.64% 99.63% -0.01%
==========================================
Files 381 381
Lines 34324 34074 -250
==========================================
- Hits 34202 33951 -251
- Misses 122 123 +1
☔ View full report in Codecov by Sentry. |
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.
Looks great 👍
@mudit2812 please could you link the SC story |
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 feel quite strongly that we're treading in dangerous waters now... but I don't want to block this PR any further. looks good to me!
[sc-49111] |
Context:
Mid-circuit measurements cannot be drawn with
qml.draw
. This is the first PR to support drawing mid-circuit measurementsDescription of the Change:
MidMeasureMP
, including cases of qubit reset and postselection.qml.drawer.tape_text
to support drawing measurements in the ops queue. Measurements without a definedlabel
method (which is all measurements except MidMeasureMP`) will still break the drawer, which is what we want.Benefits:
We can now draw mid-circuit measurements!
qml.cond
is still not supported. That will come in future PRsPossible Drawbacks:
Related GitHub Issues: