Random numbers you can trace back to a qubit.
QuantumRand serves a NIST SP 800-90A generator seeded from real IBM quantum hardware and reseeded every day. Every response says where its randomness came from.
curl "https://quantumrand.dev/v1/generate/hex?n=128" -H "X-API-Key: qr_…" { "success": true, "data": { "hex": "9f2c41d07be3a85e1c6f0b94d2e7a315", "num_bits": 128, "source": "quantum-seeded" } }
From a qubit to your API call, in three steps.
IBM's quantum computers are shared and queued, so QuantumRand doesn't call one for every request. It uses the quantum result to seed a fast, standard generator.
- 01
Measure
Every night QuantumRand sends a small job to an IBM quantum processor. Each qubit gets a Hadamard gate and is measured, exactly like the qubit at the top of this page.
- 02
Clean and seed
Raw readings lean slightly toward 0, because qubits relax toward |0⟩. Von Neumann extraction removes that bias, and the clean bits seed a NIST SP 800-90A HMAC-DRBG.
- 03
Serve
Your request draws from that generator straight away, so you never wait in IBM's queue. Each response is labelled with its source.
Every response says where it came from.
There are three possible labels. You can check them yourself, or reject anything that isn't the first.
quantum-seededThe generator was seeded from IBM quantum hardware within the last 48 hours. This is the normal state.
quantum-seeded (stale seed)The last real seed is more than 48 hours old, for example if IBM was unreachable. Still served, clearly flagged.
csprng-fallback (awaiting first quantum seed)The first minute or so after a restart, before the first IBM seed arrives. The operating system's generator fills in.
Simulator backends are labelled as simulators. IBM is the only real quantum hardware QuantumRand uses.
We publish the unflattering result too.
We ran the NIST SP 800-22 test battery on readings from IBM's ibm_kingston processor. Straight off the chip, the bits fail several tests because of that small lean toward 0. After von Neumann extraction, they pass 10 of the 11 eligible tests.
| NIST SP 800-22 test | raw | extracted |
|---|---|---|
| Monobit (frequency) | ||
| Frequency within block | ||
| Runs | ||
| Longest run of ones | ||
| Binary matrix rank | ||
| Discrete Fourier transform | ||
| Non-overlapping template | ||
| Serial | ||
| Approximate entropy | ||
| Cumulative sums | ||
| Random excursion | ||
| Random excursion variant |
The same generator, shaped for your sector.
Each sector gets its own endpoints and SDK methods, all drawing from the same quantum-seeded generator. Seals can be checked later with one call.
Nine Qntyx products also draw from QuantumRand. If it's unreachable, they fall back to the operating system's generator, so not every value they produce is quantum-seeded.
Six endpoints. Every response labelled.
Send your key in the X-API-Key header. Every endpoint also works under /v1/.
| Method | Path | What you get |
|---|---|---|
| GET | /generate/bits?n=256 | Raw random bits, 1 to 4,096 at a time |
| GET | /generate/hex?n=256 | A hex string; n is the number of bits, a multiple of 4 |
| GET | /generate/integer?min=1&max=6 | A whole number in your range, evenly distributed |
| POST | /generate/key?bits=256 | A ready-to-use key: 128, 192, 256 or 512 bits |
| POST | /generate/batch | Up to 20 values of any type in one call |
| POST | /generate/webhook | Answers at once with a job ID, then posts the result to your HTTPS URL |
pip install getquantumrandnpm install getquantumrandgo get github.com/getquantumrand/quantumrand-sdks/goThe SDKs are open source on GitHub, MIT licensed. Full reference in the API docs.
Pay for volume, not for better randomness.
Plans differ only in how much you can ask for. Paid plans are billed monthly and can be cancelled any time.
New paid plans are paused for now. Free keys work as usual, and existing paid subscriptions are not affected.
Every plan, including Free, draws from the same quantum-seeded generator and gets the same source labels. Paid plans can also request up to 3 direct runs a day on IBM quantum hardware. Start free, then upgrade from your dashboard.