Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albi3ro committed Dec 31, 2024
1 parent 2e6436f commit 0722f8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pennylane/math/grad.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ def compute_grad(*args, **kwargs):


def _error_if_not_array(f):
"""Raises an error if the function output is not an autograd or numpy array."""
"""Raises an error if the function output is not an autograd or numpy array."""

def new_f(*args, **kwargs):
output = f(*args, **kwargs)
if get_interface(output) not in {"autograd", "numpy"}:
Expand Down

0 comments on commit 0722f8f

Please sign in to comment.