Quantum Random Number Generator.
Project description
Qoin
qoin is the analogue of random package implemented through gate-based quantum computing.
Getting Started
Prerequisites
- Python 3.9+
Installation
qoin can be installed with the command :
pip install qoin
The default installation of qoin includes numpy, qiskit, and qiskit_aer.
Usage
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)
Testing
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
License
The package is released under the GPL Ver 3.0 license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qoin-1.0.7.tar.gz.
File metadata
- Download URL: qoin-1.0.7.tar.gz
- Upload date:
- Size: 43.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08667c6e7c27e78f52c6b4533e1e75b572db7547f421cf16ac85b11d9b4c4be0
|
|
| MD5 |
827ed057eb961bb2024b89d47c104a3e
|
|
| BLAKE2b-256 |
4aa3d40a42152eaa4aea0082da85ec28617a53fdd31efe90aea0670e48c97e47
|
File details
Details for the file qoin-1.0.7-py3-none-any.whl.
File metadata
- Download URL: qoin-1.0.7-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe30a3f69b4d11a9273c2fd4b3e3ed7587e3efc47c69435e5644203898a87bca
|
|
| MD5 |
fe597ba42aeb5afc83aa28872ae7020d
|
|
| BLAKE2b-256 |
3ee30e31d2c502f938e1f813feb009568c3e8893054619e8bbb175f83fa91ec5
|