Skip to content

Commit

Permalink
Update generating_n_random_bits sample
Browse files Browse the repository at this point in the history
  • Loading branch information
swernli committed Dec 18, 2024
1 parent d6d11df commit 875948c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

qsharp.init(project_root=".")

from qsharp.code.GenerateRandomNumbers import GenerateRandomNumbers

nQubits = input("Enter the number of random bits to be generated: ")
(results, number) = qsharp.eval(
f"GenerateRandomNumbers.GenerateRandomNumbers({nQubits})"
)
(results, number) = GenerateRandomNumbers(int(nQubits))

count = 0
for result in results:
Expand Down

0 comments on commit 875948c

Please sign in to comment.