Skip to content

Commit

Permalink
Update horqrux/utils_noise.py
Browse files Browse the repository at this point in the history
Co-authored-by: RolandMacDoland <[email protected]>
  • Loading branch information
chMoussa and RolandMacDoland authored Jan 8, 2025
1 parent 8053a7a commit caff1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horqrux/utils_noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def PauliChannel(error_probability: tuple[float, ...]) -> tuple[Array, ...]:
raise ValueError("The sum of probabilities can't be greater than 1.0")
for probability in error_probability:
if (probability > 1.0) or (probability < 0.0):
raise ValueError("The probability values are not correct probabilities")
raise ValueError(f"The error probability values are incorrect. Got {probability}.")
px, py, pz = (
error_probability[0],
error_probability[1],
Expand Down

0 comments on commit caff1aa

Please sign in to comment.