Python: How to confirm that qrng API is fetching quantum random numbers?

Viewed 16

I am looking for a source of sequence of quantum random numbers, in fact bit sequences of 0 and 1. I had been using the quantumrandom API but since it is no longer working properly (another question) I was looking for an alternative and I found qrng.

qrng say that is using the quantum computers of IBM Qiskit to generate random numbers. I have an account and set the backend to one of the quantum computers that are available in the dashboard ('ibmq_quito'), and run the following lines to generate a sequence of 1024 bits b:

from qiskit import IBMQ 
import qrng

provider = IBMQ.load_account()
qrng.set_backend('ibmq_quito')
b=qrng.get_bit_string(int(1024))

The problem is I cannot verify that I am actually downloading numbers and not using a pseudorandom simulator process. My suspicions are mainly for two reasons:

  1. If I change the backend to a random string e.g. ibmq_stackoverflow it will still work with no difference

  2. The whole process is happening very fast when I use an iteration

I would appreciate any help on that, Thanks a lot

0 Answers
Related