From a8da735476e1eeec75baf08d9012b63ec9b50a81 Mon Sep 17 00:00:00 2001 From: AmintorDusko Date: Mon, 29 Apr 2024 12:20:18 -0400 Subject: [PATCH 1/5] update dev version --- pennylane_lightning/core/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pennylane_lightning/core/_version.py b/pennylane_lightning/core/_version.py index 0dd7399263..b324311e95 100644 --- a/pennylane_lightning/core/_version.py +++ b/pennylane_lightning/core/_version.py @@ -16,4 +16,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "0.36.0-dev43" +__version__ = "0.36.0-dev44" From e377bdc5b5ba7f9e9ff0b14ed33060339825b78a Mon Sep 17 00:00:00 2001 From: AmintorDusko Date: Mon, 29 Apr 2024 12:27:21 -0400 Subject: [PATCH 2/5] increase tolerance --- tests/lightning_qubit/test_measurements_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lightning_qubit/test_measurements_class.py b/tests/lightning_qubit/test_measurements_class.py index bd070629f8..c282e69358 100644 --- a/tests/lightning_qubit/test_measurements_class.py +++ b/tests/lightning_qubit/test_measurements_class.py @@ -474,7 +474,7 @@ def test_single_return_value(self, measurement, observable, lightning_sv, tol): result = m.measure_final_state(tape) # a few tests may fail in single precision, and hence we increase the tolerance - assert np.allclose(result, expected, max(tol, 1.0e-5)) + assert np.allclose(result, expected, max(tol, 1.0e-4)) @flaky(max_runs=5) @pytest.mark.parametrize("shots", [None, 1000000]) From 12b9804870e40274556d09c452aad8e23a62f333 Mon Sep 17 00:00:00 2001 From: AmintorDusko Date: Mon, 29 Apr 2024 14:23:59 -0400 Subject: [PATCH 3/5] update changelog --- .github/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index b7aab6ea9e..e5abaab926 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -129,6 +129,9 @@ * Update the version of `codecov-action` to v4 and fix the CodeCov issue with the PL-Lightning check-compatibility actions. [(#682)](https://github.com/PennyLaneAI/pennylane-lightning/pull/682) +* Increase tolerance for a flaky test. + [(#703)](https://github.com/PennyLaneAI/pennylane-lightning/pull/703) + ### Contributors This release contains contributions from (in alphabetical order): From 8ef1f44259cc995fc5b7c82d506c803854add60c Mon Sep 17 00:00:00 2001 From: AmintorDusko Date: Mon, 29 Apr 2024 14:33:02 -0400 Subject: [PATCH 4/5] trigger CIs From 755e4012bb27606f58a39936f76a8e35215f5b82 Mon Sep 17 00:00:00 2001 From: ringo-but-quantum Date: Mon, 29 Apr 2024 19:22:27 +0000 Subject: [PATCH 5/5] Auto update version from '0.36.0-dev44' to '0.36.0-dev45' --- pennylane_lightning/core/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pennylane_lightning/core/_version.py b/pennylane_lightning/core/_version.py index b324311e95..0198b9a3ca 100644 --- a/pennylane_lightning/core/_version.py +++ b/pennylane_lightning/core/_version.py @@ -16,4 +16,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "0.36.0-dev44" +__version__ = "0.36.0-dev45"