Skip to main content

Quantum Random Number Generator.

Project description

PyPI version Ruff

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

qoin-1.0.7.tar.gz (43.2 kB view hashes)

Uploaded Source

Built Distribution

qoin-1.0.7-py3-none-any.whl (30.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page