Skip to content

Commit

Permalink
Revert "fix: Update dep warning to value error just for ci"
Browse files Browse the repository at this point in the history
This reverts commit 38e7522.
  • Loading branch information
andrijapau committed Jan 21, 2025
1 parent fd6e518 commit 8ff112e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane/workflow/qnode.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def __init__(
if any(k in qml.gradients.SUPPORTED_GRADIENT_KWARGS for k in list(kwargs.keys())):
warnings.warn(
f"Specifying gradient keyword arguments {list(kwargs.keys())} is deprecated and will be removed in v0.42. Instead, please specify all arguments in the gradient_kwargs argument.",
ValueError,
qml.PennyLaneDeprecationWarning,
)
gradient_kwargs |= kwargs

Expand Down

0 comments on commit 8ff112e

Please sign in to comment.