qRNG
qRNG copied to clipboard
If I try to reproduce results from the README code it returns an error
Code I used:
import qrng
qrng.set_provider_as_IBMQ("TOKEN GOES HERE") #the IBMQ API token from your dashboardqrng.set_backend('ibmq_london') #connect to the 5 qubit 'ibmq_london' quantum computer
qrng.get_random_int32() #generate a random 32 bit integer
3834878552
qrng.get_random_float(0,1) #generate a random 32 bit float between 0 to 1
0.6610504388809204
TypeError Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/qrng/init.py in
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
It seems that your token has been exposed, so please fix it by leaving the token strings empty.
Thanks just noticed and fixed it!