Skip to content

Commit

Permalink
fix: Fix seed
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale committed Feb 14, 2024
1 parent 73e58ed commit 79a38c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def main(args):
logging.info("\n" + circ.draw())

# fix numpy seed to ensure replicability of the experiment
np.random.seed(SEED)
np.random.seed(args.seed)
initial_parameters = np.random.randn(len(circ.get_parameters()))

# vqe lists
Expand Down

0 comments on commit 79a38c4

Please sign in to comment.