Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Candido <candido.ale@gmail.com>
  • Loading branch information
MatteoRobbiati and alecandido authored Apr 16, 2024
1 parent be04e88 commit 4deff3a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/qiboml/operations/expectation.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ def grad(upstream):

return _expectation_with_tf(params)

else:
raise_error(
NotImplementedError,
"Only tensorflow automatic differentiation is supported at this moment.",
)
raise_error(
NotImplementedError,
"Only tensorflow automatic differentiation is supported at this moment.",
)

0 comments on commit 4deff3a

Please sign in to comment.