Skip to content

Commit

Permalink
test: fix seed in diffrules test
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoRobbiati committed Nov 4, 2024
1 parent a9e2481 commit 46de4e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_differentiation_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def test_expval_grad_PSR(frontend, backend, nshots):

from qiboml.interfaces.pytorch import QuantumModel

interface_engine.set_seed(42)

decimals = 6 if nshots is None else 2

x = construct_x(frontend)
Expand Down

0 comments on commit 46de4e9

Please sign in to comment.