Skip to content

Commit e8b52a8

Browse files
author
Damian S. Steiger
committed
Increase default seed range of simulator to (0,2^32-1)
1 parent 635f6ae commit e8b52a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projectq/backends/_sim/_simulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __init__(self, gate_fusion=False, rnd_seed=None):
8181
extension.
8282
"""
8383
if rnd_seed is None:
84-
rnd_seed = random.randint(0, 1024)
84+
rnd_seed = random.randint(0, 4294967295)
8585
BasicEngine.__init__(self)
8686
self._simulator = SimulatorBackend(rnd_seed)
8787
self._gate_fusion = gate_fusion

0 commit comments

Comments
 (0)