Skip to content

Light Rider SDK

The lightrider package offers quantum circuit simulation, quantum random numbers, and QRNG-driven synthetic data — in one lightweight, NumPy-only package.

Installation

pip install lightrider             # core (NumPy only)
pip install "lightrider[pandas]"   # + pandas DataFrame support

Requires Python ≥ 3.9.

Live EMS entropy additionally needs the lr-entropy SDK, which ships with the Light Rider platform rather than on PyPI. Install it from the platform repository (pip install ./sdk-python) and EntropySource becomes available automatically.

Quickstart

python
from lightrider import Circuit, get_backend

# 1. Build a Bell-pair circuit
circ = Circuit(2)
circ.h(0)
circ.cx(0, 1)
circ.measure_all()

# 2. Run it on the local statevector simulator
job = get_backend("statevector").run(circ, shots=1000, seed=42)

# 3. Read the counts (Qiskit convention: clbit 0 is the rightmost character)
print(job.result().counts)   # {'00': 507, '11': 493}

Three core capabilities