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

gradient_kwargs is now a positional keyword argument to QNode #6828

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

andrijapau
Copy link
Contributor

@andrijapau andrijapau commented Jan 14, 2025

Context:

This PR could have wide-spread impact.

  • Pennylane Source Code

  • Pennylane Documentation

  • Catalyst

  • Lightning

  • QML Demos

  • Plugins

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

[sc-81531]

This comment was marked as resolved.

@andrijapau andrijapau changed the title Must deliberately specify gradient_kwargs to QNode gradient_kwargs is now a positional keyword argument to QNode Jan 14, 2025
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.60%. Comparing base (b42e89e) to head (0d0cf57).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6828   +/-   ##
=======================================
  Coverage   99.60%   99.60%           
=======================================
  Files         476      476           
  Lines       45237    45240    +3     
=======================================
+ Hits        45060    45063    +3     
  Misses        177      177           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +165 to +167
@qml.qnode(
qml.device("default.qubit"), gradient_kwargs={"expansion_strategy": "device"}
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expansion_strategy was never a gradient keyword arg, but is a removed QNode arg.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. So do we still want to continue supporting these warnings?

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.

2 participants