Skip to content

Commit

Permalink
fix codefactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryChen97 committed Nov 12, 2024
1 parent 629dc21 commit 2235e92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pennylane/gradients/parameter_shift_cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,5 +836,5 @@ def _get_output_dim(tape):
_output_dim += 1
if tape.batch_size:
_output_dim *= tape.batch_size

Check warning on line 838 in pennylane/gradients/parameter_shift_cv.py

View check run for this annotation

Codecov / codecov/patch

pennylane/gradients/parameter_shift_cv.py#L838

Added line #L838 was not covered by tests
return _output_dim

return _output_dim
1 change: 1 addition & 0 deletions pennylane/tape/qscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def output_dim(self) -> int:
for an example.
"""
# pylint: disable=import-outside-toplevel
import warnings
warnings.warn(
"The 'output_dim' property is deprecated and will be removed in version 0.41",
Expand Down

0 comments on commit 2235e92

Please sign in to comment.