lightrider-huggingface
Hugging Face datasets with a provable, reproducible origin.
Each dataset is generated from a seed drawn from a named quantum entropy source through Light Rider. The seed comes with a signed receipt. Anyone can check that receipt, confirm the seed came from that draw, and regenerate the dataset exactly.
Two kinds of dataset:
- Random quantum circuits, for example 500 circuits for benchmarking.
- Random evaluation subsets: N rows sampled from an existing Hugging Face dataset, pinned to an exact revision so the same rows can always be fetched again.
Install
pip install lightrider-huggingface
You need a Light Rider API key to create datasets (see entropy.lightriderinc.com/developers). Each dataset costs one draw, or 1 credit. Publishing needs a Hugging Face token with write access. Verifying needs neither.
export LR_API_KEY=lr_live_...
export HF_TOKEN=hf_...
Example
import lightrider_huggingface as lrhf
# 500 random circuits: 5 qubits, depth 10
ds = lrhf.circuits(500, num_qubits=5, depth=10, source="anu")
# Or 200 random rows from the GSM8K test split
# ds = lrhf.eval_subset("openai/gsm8k", "test", n=200, config="main", source="anu")
print(ds) # rows, source and request id
df = ds.to_pandas()
# Push to the Hub: data, dataset card and signed receipt. Private unless private=False.
lrhf.publish(ds, "your-username/random-circuits-5q")
Circuit rows have circuit_id, num_qubits, depth, gate counts, instructions (JSON) and
qasm (OpenQASM 2.0). gate_set= picks the gates (default h, x, sx, rz, cx).
Subset rows are the source rows unchanged, plus _lr_source_index. Pass fraction=0.1 in
place of n= to sample a share of the split.
Verify a dataset
import lightrider_huggingface as lrhf
report = lrhf.verify("your-username/random-circuits-5q")
print(report) # each check, PASS or FAIL
assert report.ok
No Light Rider key is needed. For a private dataset, set HF_TOKEN. For a subset of a very large
dataset, verify(..., indices_only=True) skips re-downloading the source.
How verification works
- The receipt is genuine. Light Rider signs every draw's receipt (Ed25519). Its public key is at entropy.lightriderinc.com/api/v1/public-key.
- The seed is that draw's output. The signed receipt includes a hash of the exact bytes drawn, so a seed from any other draw doesn't match.
- The data follows from the seed. Generation is deterministic and fully specified, so
verifyrebuilds the rows from the seed and compares them with the published ones.
Every published dataset includes its receipt and the full record (lightrider_provenance.json),
so all of this can be checked independently.
What this doesn't claim: that quantum randomness is better than a good classical generator. It's an alternative source whose origin you can check. A receipt also can't show that the publisher drew only once; its timestamp shows when the draw happened.
License
Apache-2.0. Built by Light Rider.
Metadata
Release files for lightrider-huggingface 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lightrider_huggingface-0.1.1.tar.gz | 18.1 kB | Without provenance | Details for lightrider_huggingface-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lightrider_huggingface-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for lightrider_huggingface-0.1.1-py3-none-any.whl |
Total release size: 38.5 kB
Release files / lightrider_huggingface-0.1.1.tar.gz
| Download URL | lightrider_huggingface-0.1.1.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c9f245591c26128066e6fe331d7473b5c486c1211a2fb259e94389c49fed95e
|
|
BLAKE2b-256 checksum How to use checksums |
01a16a3a5ca89898f36cd08ac1e6a32efc0b09b4a38e836943cb9a7abf81947b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / lightrider_huggingface-0.1.1-py3-none-any.whl
| Download URL | lightrider_huggingface-0.1.1-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
488dd5e1b3a6349c0759137f04fdb3ff85b1caba94b2e5c943495ab23f8ff7a7
|
|
BLAKE2b-256 checksum How to use checksums |
3d648a1691dbe54d98901e23c745b9ad5882090f2cd9416d93c52f3c35a12c46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for lightrider-huggingface 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.