Skip to content

Commit

Permalink
Seed pytest test_measurement_from_samples_with_sample_measurement (#…
Browse files Browse the repository at this point in the history
…1230)

Seed pytest `test_measurement_from_samples_with_sample_measurement` (#1230)
  • Loading branch information
paul0403 authored Oct 25, 2024
1 parent dc1d1f6 commit 175cf8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/test/pytest/test_measurement_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def circuit(theta: float):
res = qml.qjit(measurements_from_samples(circuit, dev.wires), seed=37)(theta)

if len(measurement().wires) == 1:
samples_expected = qml.qjit(circuit)(theta)
samples_expected = qml.qjit(circuit, seed=37)(theta)
else:
samples_expected = circuit(theta)

Expand Down

0 comments on commit 175cf8c

Please sign in to comment.