Skip to content

Commit a4a628f

Browse files
committed
test_circuit: fix seed
1 parent 68cd4f5 commit a4a628f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_tensor/test_circuit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,16 +520,16 @@ def test_sample_chaotic(self):
520520
depth = 2
521521
goodnesses = [0] * 5
522522

523-
for _ in range(reps):
524-
circ = random_a2a_circ(L, depth, seed=666)
523+
for i in range(reps):
524+
circ = random_a2a_circ(L, depth, seed=42 + i)
525525

526526
psi = circ.to_dense()
527527
p_exp = abs(psi.reshape(-1)) ** 2
528528
f_exp = p_exp * C
529529

530530
for num_marginal in [3, 4, 5]:
531531
counts = collections.Counter(
532-
circ.sample_chaotic(C, num_marginal, seed=666)
532+
circ.sample_chaotic(C, num_marginal, seed=42 + i)
533533
)
534534
f_obs = np.zeros(2**L)
535535
for b, c in counts.items():

0 commit comments

Comments
 (0)