Last updated:
0 purchases
This repository provides a Quantum Random Number Generator (QRNG) that uses quantum computing to generate truly random integers between 0 and a specified maximum. It can operate locally with simulated quantum computing or remotely using IBM Q Experience for authentic quantum backend operations.
requirements.txt
.Clone the repository:
bash
Copy code
git clone <repository_url> cd <repository_name>
Install dependencies:
bash
Copy code
pip install -r requirements.txt
(Optional) Use Virtual Environment:
bash
Copy code
python -m venv venv source venv/bin/activate pip install -r requirements.txt
Local Simulation
To generate a random number locally:
bash
Copy code
python ./main.py [max]
[max]
with the desired maximum integer.bash
Copy code
$ python ./main.py 12 Rounding input 12 to next power of 2: 16 9
Remote Quantum Backend
To generate a random number using IBM Q Experience:
bash
Copy code
python ./main.py -remote --qx-token <your-token> [max]
bash
Copy code
python ./main.py -remote --qx-token abc123def456 15
Help
For additional options and usage instructions:
bash
Copy code
python ./main.py -h
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.