Skip to content

Commit

Permalink
fix: Update dep warning to value error just for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
andrijapau committed Jan 21, 2025
1 parent 7f3f3f6 commit 38e7522
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.",
qml.PennyLaneDeprecationWarning,
ValueError,
)
gradient_kwargs |= kwargs

Expand Down

0 comments on commit 38e7522

Please sign in to comment.