Skip to content

Commit

Permalink
Updating simulations.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nariman87 committed Jul 1, 2022
1 parent 493901b commit 586498d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flamingpy/simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ def run_ec_simulation(
if params.get("noise") == "iid":
if params.get("error_probability") is None:
raise ValueError("No argument `err_prob` found for `iid` noise.")
else:
noise_args = {"error_probability": params.get("error_probability")}
noise_args = {"error_probability": params.get("error_probability")}
else:
noise_args = {key: params[key] for key in ["delta", "p_swap"]}

Expand Down

0 comments on commit 586498d

Please sign in to comment.