From 8ff112eeef34cbac72b1ac96281451ce50cf54a7 Mon Sep 17 00:00:00 2001 From: andrijapau Date: Tue, 21 Jan 2025 17:40:30 -0500 Subject: [PATCH] Revert "fix: Update dep warning to value error just for ci" This reverts commit 38e7522aecf2f036ff1421d41a37832fce535c5a. --- pennylane/workflow/qnode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pennylane/workflow/qnode.py b/pennylane/workflow/qnode.py index 9fdfe6b1ba2..59694812d2e 100644 --- a/pennylane/workflow/qnode.py +++ b/pennylane/workflow/qnode.py @@ -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