Skip to content

Commit db77375

Browse files
authored
Fix one more seed in run (#3081)
Missed this one in #3080
1 parent 91371f6 commit db77375

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

source/pip/tests/test_qasm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,10 @@ def test_run_imported_with_noise_produces_noisy_results() -> None:
220220
name="Program1",
221221
)
222222
result = qsharp_run(
223-
"{ use q = Qubit(); Program1(q) }", shots=1, noise=BitFlipNoise(0.1)
223+
"{ use q = Qubit(); Program1(q) }",
224+
shots=1,
225+
noise=BitFlipNoise(0.1),
226+
seed=0,
224227
)
225228
assert result[0] > 5
226229

0 commit comments

Comments
 (0)