-
Notifications
You must be signed in to change notification settings - Fork 42
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
do not use measurementprocess.name #605
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 #605 +/- ##
==========================================
- Coverage 98.68% 98.68% -0.01%
==========================================
Files 168 169 +1
Lines 24191 24344 +153
==========================================
+ Hits 23874 24023 +149
- Misses 317 321 +4 ☔ 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 good to me, happy to approve & merge once the CI goes green!
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.
Thank you for that!
Context:
MeasurementProcess.name
has been deprecated, and we should avoid using it. Unfortunately, sometimes they disguise as observables. This is one of those times, and it makes PennyLane CI fail when we enable deprecation-warnings-as-errorsDescription of the Change:
Just use
isinstance
to not check the name in case it's not an observable.Benefits:
Possible Drawbacks:
N/A
Related GitHub Issues:
PennyLaneAI/pennylane#5122, recently introduced in #601