qoin
is the analogue of random
package implemented through gate-based quantum computing.
- Python 3.9+
qoin
can be installed with the command :
pip install qoin
The default installation of qoin
includes numpy
, qiskit
, and qiskit_aer
.
The docs/examples are a good way for understanding how the package works.
from qoin import QRNG
random_generator = QRNG()
random_generator.randint(5, 10)
Run all tests with the command:
py -m pytest tests
Note: if you have installed in a virtual environment, remember to install pytest in the same environment using:
pip install pytest
To generate the documentation, run commands:
cd docs
.\make html
The package is released under the GPL Ver 3.0 license.