We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 325906e commit eaff834Copy full SHA for eaff834
examples/sample_benchmark.py
@@ -28,7 +28,7 @@ def construct_circuit(n, nlayers):
28
time0 = time.time()
29
s = c.state()
30
time1 = time.time()
31
- smp = bin(np.random.choice(range(2 ** n), p=np.abs(K.numpy(s)) ** 2))
+ smp = bin(np.random.choice(range(2**n), p=np.abs(K.numpy(s)) ** 2))
32
# print(smp)
33
print("state sampling time: ", time1 - time0)
34
0 commit comments