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.1.tar.gz (491.5 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.1-py3-none-any.whl (622.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lightrider-0.1.1.tar.gz
  • Upload date:
  • Size: 491.5 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.1.tar.gz
Algorithm Hash digest
SHA256 c3b2b06b2a467ac32fa80a02deb863d81399e580d1acfe46481e2c93c376045d
MD5 88501a19624b00251d7dadc22713d5ee
BLAKE2b-256 2cc248482f3224ec9de0352bc2894643d2d61ca49523fbe01ee218fcd58f74da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lightrider-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 622.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5fc0ac643493958de8f2106d9273819dd868a111525115a6e8f8d63643cdd1fa
MD5 3b94377a55aa42fd7bf4911f31fc53a5
BLAKE2b-256 c09a7502dcf52e88569093103896a47f963a0f3df78af917f9c8bd9c1a29417b

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