From 9bc28174de56eeb17eb8bedc4d4be9f9b660f56a Mon Sep 17 00:00:00 2001 From: Frederik Wilde Date: Thu, 25 May 2023 15:35:46 -0400 Subject: [PATCH] Fix test tolerance that was too tight. --- tests/gradients/core/test_gradient_transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gradients/core/test_gradient_transform.py b/tests/gradients/core/test_gradient_transform.py index 5673d3b1377..55fbc2a1cd2 100644 --- a/tests/gradients/core/test_gradient_transform.py +++ b/tests/gradients/core/test_gradient_transform.py @@ -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"""