Skip to content

Commit

Permalink
Fix test tolerance that was too tight.
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikwilde committed May 25, 2023
1 parent 722ce6a commit 9bc2817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/gradients/core/test_gradient_transform.py
Expand Up @@ -194,7 +194,7 @@ def test_warning_with_empty_argnum(self, diff_methods):
class TestGradientTransformIntegration:
"""Test integration of the gradient transform decorator"""

@pytest.mark.parametrize("shots, atol", [(None, 1e-6), (1000, 1e-1), ([1000, 100], 2e-1)])
@pytest.mark.parametrize("shots, atol", [(None, 1e-6), (1000, 1e-1), ([1000, 500], 3e-1)])
@pytest.mark.parametrize("slicing", [False, True])
def test_acting_on_qnodes_single_param(self, shots, slicing, atol):
"""Test that a gradient transform acts on QNodes with a single parameter correctly"""
Expand Down

0 comments on commit 9bc2817

Please sign in to comment.