Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

albi3ro
Copy link
Contributor

@albi3ro albi3ro commented Nov 7, 2024

Context:

We use the term diff_method in the QNode and gradient_fn in qml.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 uses diff_method in qml.execute.

Benefits:

Increased consistency in terminology. Opens us to preprocessing the diff_method inside of qml.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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant