Skip to main content

Quantum random numbers from IQM hardware-generated bit pools

Project description

lightrider

Quantum random numbers sourced from IQM hardware measurements.

Installation

pip install lightrider

Usage

from lightrider import IQM_sirius

# 5 random integers between 1 and 100
IQM_sirius(5, 1, 100)
# → [42, 7, 88, 13, 56]

# 3 floats between 0.0 and 1.0 in steps of 0.1
IQM_sirius(3, 0.0, 1.0, step=0.1)
# → [0.3, 0.8, 0.1]

# 4 floats between 10.0 and 99.9 in steps of 0.1
IQM_sirius(4, 10.0, 99.9, step=0.1)
# → [23.4, 67.8, 45.1, 88.0]

API

IQM_sirius(count, min_val, max_val, step=None)

Parameter Type Description
count int Number of values to return
min_val int or float Inclusive lower bound
max_val int or float Inclusive upper bound
step float or None Value granularity; None means integer steps

Returns a list of quantum-random numbers in [min_val, max_val].

Data source

The pool contains ~2 million bits collected from IQM quantum hardware via Hadamard coin-flip circuits across 10 qubits. Numbers are produced using rejection sampling for unbiased output.

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

lightrider-0.1.0.tar.gz (491.1 kB view details)

Uploaded Source

Built Distribution

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

lightrider-0.1.0-py3-none-any.whl (622.3 kB view details)

Uploaded Python 3

File details

Details for the file lightrider-0.1.0.tar.gz.

File metadata

  • Download URL: lightrider-0.1.0.tar.gz
  • Upload date:
  • Size: 491.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for lightrider-0.1.0.tar.gz
Algorithm Hash digest
SHA256 848d3606f62708506f549b6a62379d6e5ca392c5ade3cf59af37425de3210d39
MD5 8860e6bedb5166d90a628462e1aa836f
BLAKE2b-256 1def145e90123b46d83449cb7d29a5ed1be2a41844974d143a9aa1e7a100f5ae

See more details on using hashes here.

File details

Details for the file lightrider-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lightrider-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 622.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for lightrider-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2141047f86af9a9a2e0bffdd884317d6c745341ec3e67e3316eb95e36312214d
MD5 35c7590a3087882624dc8a864ef832e5
BLAKE2b-256 18015c27112dbb8f7463e9801282115484ed8f3b3f253dac8816ef24f2668bba

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