-
Notifications
You must be signed in to change notification settings - Fork 604
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
Rename gradient_fn
to diff_method
in qml.execute
#6549
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6549 +/- ##
==========================================
+ Coverage 99.17% 99.34% +0.16%
==========================================
Files 456 456
Lines 43254 43273 +19
==========================================
+ Hits 42899 42989 +90
+ Misses 355 284 -71 ☔ 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.
LGTM! Satisfying to see this discrepancy resolved. 😓
**Summary:** Updating deprecated code that was introduced from a recent deprecation PennyLaneAI/pennylane#6549. [sc-77590]
Context:
We use the term
diff_method
in theQNode
andgradient_fn
inqml.execute
. This can cause confusion having two different terms for basically the same thing.Description of the Change:
Deprecates the term
gradient_fn
and strictly usesdiff_method
inqml.execute
.Benefits:
Increased consistency in terminology. Opens us to preprocessing the
diff_method
inside ofqml.execute
, making it more robust and user-friendly.Possible Drawbacks:
Deprecations can always cause problems. This is an easy change, as it can be handled by a find-replace automation, but that is always extra work.
Related GitHub Issues:
[sc-77590]