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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for qoin-1.0.7.tar.gz
Algorithm Hash digest
SHA256 08667c6e7c27e78f52c6b4533e1e75b572db7547f421cf16ac85b11d9b4c4be0
MD5 827ed057eb961bb2024b89d47c104a3e
BLAKE2b-256 4aa3d40a42152eaa4aea0082da85ec28617a53fdd31efe90aea0670e48c97e47

See more details on using hashes here.

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

Hashes for qoin-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fe30a3f69b4d11a9273c2fd4b3e3ed7587e3efc47c69435e5644203898a87bca
MD5 fe597ba42aeb5afc83aa28872ae7020d
BLAKE2b-256 3ee30e31d2c502f938e1f813feb009568c3e8893054619e8bbb175f83fa91ec5

See more details on using hashes here.

Supported by

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