Skip to content

Commit

Permalink
Fix incorrect variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
rtvuser1 committed Jun 6, 2024
1 parent ec8b4b9 commit 29626b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hidden-shift/qiskit/hs_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def execution_handler (qc, result, num_qubits, s_int, num_shots):
s_range = list(range(num_circuits))
else:
# create selection larger than needed and remove duplicates (faster than random.choice())
s_range = np.random.randint(1, 2**(input_size), num_circuits + 10)
s_range = np.random.randint(1, 2**(num_qubits), num_circuits + 10)
s_range = list(set(s_range))[0:max_circuits]

# loop over limited # of secret strings for this
Expand Down

0 comments on commit 29626b2

Please sign in to comment.