Skip to content

Commit

Permalink
test: Add another deprecation to get all of the devices tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrijapau committed Jan 27, 2025
1 parent 1e5210f commit ce018e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pennylane/workflow/qnode.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,11 @@ def __init__(
if not isinstance(device, qml.devices.Device):
device = qml.devices.LegacyDeviceFacade(device)

warnings.warn(
"This is yet another test.",
qml.PennyLaneDeprecationWarning,
)

gradient_kwargs = gradient_kwargs or {}
if kwargs:
if any(k in qml.gradients.SUPPORTED_GRADIENT_KWARGS for k in list(kwargs.keys())):
Expand Down

0 comments on commit ce018e8

Please sign in to comment.