-
Notifications
You must be signed in to change notification settings - Fork 585
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
Change default value of from_qasm
to keep the measurements
#5982
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5982 +/- ##
==========================================
- Coverage 99.66% 99.65% -0.01%
==========================================
Files 427 427
Lines 40983 40724 -259
==========================================
- Hits 40845 40585 -260
- Misses 138 139 +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.
Thanks @EmilianoG-byte! just a couple suggestions and questions. Please tag me again when you're ready 👌
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.
Thanks @EmilianoG-byte!
Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com>
@isaacdevlugt @trbromley @lillian542 , done with the changes, lmk what you think! |
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.
Thanks @EmilianoG-byte, this is a great improvement!
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.
Thanks @EmilianoG-byte, this looks much cleaner and clearer! I left a couple of minor comments :)
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.
For some reason when I open the docs build on your last commit, it doesn't reflect your most recent changes. I made one more suggestion, maybe see if updating that and triggering CI updates the build?
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 good, thanks @EmilianoG-byte! Glad the sphinx issue is resolved 😅
I have one final suggestion (that I think will actually work this time 🙈) for how to make a docstring-compatible version of the qasm_code
string that will also work in a notebook. See what you think!
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.
Thanks Emiliano! 🚀 This is more clear than before. Thanks for catching this originally!
Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
Context:
The new default should be to return the QASM measurements (i.e. new default is measurements=None). Users can access the old behaviour by explicitly passing measurements=[], as communicated in the deprecation warning added in 0.37.
Description of the Change:
Default value of
from_qasm
argumentmeasurements
isNone
.[sc-66686]