Skip to content

Commit

Permalink
Update tests/workflow/interfaces/test_jacobian_products.py
Browse files Browse the repository at this point in the history
  • Loading branch information
albi3ro authored Jan 15, 2025
1 parent c820f14 commit ebdf867
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/workflow/interfaces/test_jacobian_products.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,22 @@ def test_no_gradients():
jpc = NoGradients()

with pytest.raises(
qml.QuantumFunctionError, match="cannot be calcualted with diff_method=None"
qml.QuantumFunctionError, match="cannot be calculated with diff_method=None"
):
jpc.compute_jacobian(())

with pytest.raises(
qml.QuantumFunctionError, match="cannot be calcualted with diff_method=None"
qml.QuantumFunctionError, match="cannot be calculated with diff_method=None"
):
jpc.compute_vjp((), ())

with pytest.raises(
qml.QuantumFunctionError, match="cannot be calcualted with diff_method=None"
qml.QuantumFunctionError, match="cannot be calculated with diff_method=None"
):
jpc.execute_and_compute_jvp((), ())

with pytest.raises(
qml.QuantumFunctionError, match="cannot be calcualted with diff_method=None"
qml.QuantumFunctionError, match="cannot be calculated with diff_method=None"
):
jpc.execute_and_compute_jacobian(())

Expand Down

0 comments on commit ebdf867

Please sign in to comment.