Skip to content

Commit

Permalink
Update horqrux/api.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 e920a64 commit 2e2a811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horqrux/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def sample(
Counter: Bitstrings and frequencies.
"""
if n_shots < 1:
raise ValueError("You can only call sample with n_shots>0.")
raise ValueError("You can only sample with non-negative 'n_shots'.")
output_circuit = apply_gate(state, gates, values)

if isinstance(output_circuit, DensityMatrix):
Expand Down

0 comments on commit 2e2a811

Please sign in to comment.