I'm trying to generate random numbers using IBMQ backends with the following code:
pip install qiskit_rng from qiskit_rng import Generator IBMQ.load_account() rng_provider = IBMQ.get_provider(hub='ibm-q', group='open', project='main') backend = rng_provider.backends.ibmq_manila generator = Generator(backend=backend) output = generator.sample(num_raw_bits=20001).block_until_ready() qiskit_raw = output.raw_bits print(qiskit_raw)
However, I get the following error:
Input In  in <cell line: 2> from qiskit_rng import Generator File /opt/conda/lib/python3.8/site-packages/qiskit_rng/__init__.py:52 in <module> from .generator import Generator File /opt/conda/lib/python3.8/site-packages/qiskit_rng/generator.py:35 in <module> from qiskit.providers.basebackend import BaseBackend ModuleNotFoundError: No module named 'qiskit.providers.basebackend'
How can I fix this error? My current version of terra is 0.21.2. Also, is there a way to recreate this process? It is my understanding that IBM uses the GHZ (Greenberger–Horne–Zeilinger) states and then measures them with random X- and Y-measurements. I would appreciate if someone can confirm that.