Skip to content

Commit

Permalink
Fix small spelling typo in frontend/device/verification.py (#1224)
Browse files Browse the repository at this point in the history
line 145, "gradinet" -> "gradient"

**Related GitHub Issues:** closes #1222
  • Loading branch information
paul0403 authored Oct 21, 2024
1 parent 05da8ac commit 1a4e6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/catalyst/device/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def _paramshift_op_checker(op):

def _mcm_op_checker(op):
if isinstance(op, MidCircuitMeasure):
raise DifferentiableCompileError(f"{op.name} is not allowed in gradinets")
raise DifferentiableCompileError(f"{op.name} is not allowed in gradients")

def _adj_diff_op_checker(op):
if type(op) in (Controlled, ControlledOp) or isinstance(op, Adjoint):
Expand Down

0 comments on commit 1a4e6df

Please sign in to comment.