Skip to content

Commit

Permalink
Fix seed_simulator=0 in the quantum instance (qiskit-community/qi…
Browse files Browse the repository at this point in the history
…skit-aqua#1410)

* fix seed 0

* add reno

* change seed

* change seed

Co-authored-by: Manoel Marques <manoel.marques@ibm.com>
  • Loading branch information
Cryoris and manoelmarques authored Nov 5, 2020
1 parent fa68f3c commit 3a1643c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/aqua/quantum_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def __init__(self,
'but you specified {}'.format(max_shots, shots))

run_config = RunConfig(shots=shots, max_credits=max_credits)
if seed_simulator:
if seed_simulator is not None:
run_config.seed_simulator = seed_simulator

self._run_config = run_config
Expand Down

0 comments on commit 3a1643c

Please sign in to comment.