Skip to content

Commit

Permalink
test: reducing decimals in PSR test
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoRobbiati committed Nov 15, 2024
1 parent f8d944a commit 73dd6c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_differentiation_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def compute_gradient(frontend, model, x):
return grad


@pytest.mark.parametrize("nshots", [None, 1000000])
@pytest.mark.parametrize("nshots", [None, 500000])
@pytest.mark.parametrize("backend", EXECUTION_BACKENDS)
def test_expval_grad_PSR(frontend, backend, nshots):
"""
Expand All @@ -60,7 +60,7 @@ def test_expval_grad_PSR(frontend, backend, nshots):

from qiboml.interfaces.pytorch import QuantumModel

decimals = 6 if nshots is None else 2
decimals = 6 if nshots is None else 1

frontend.np.random.seed(42)

Expand Down

0 comments on commit 73dd6c7

Please sign in to comment.