Datasets:
row_idx int64 0 980 | kernel_row listlengths 981 981 | input_id stringlengths 19 19 | observables_1rdm listlengths 48 48 | labels_quantum listlengths 1 1 |
|---|---|---|---|---|
0 | [
1,
0.021186066791415215,
0.00449746660888195,
0.013043195940554142,
0.0034305874723941088,
0.0043287998996675014,
0.001493900315836072,
0.0008874374907463789,
0.0003027505590580404,
0.002906813519075513,
0.00006106105865910649,
0.001033477601595223,
0.003113396232947707,
0.0002521105343475... | sha256_8c6a98c945a2 | [
-0.33701029419898987,
-0.5399761199951172,
-0.007708923891186714,
-0.44341278076171875,
-0.48361682891845703,
0.012855222448706627,
-0.20031487941741943,
-0.713811993598938,
0.45226848125457764,
-0.1683160811662674,
-0.7349477410316467,
0.28599101305007935,
-0.3278925120830536,
-0.60187357... | [
1
] |
1 | [
0.021186066791415215,
1,
0.009797665290534496,
0.00988305825740099,
0.0013018338941037655,
0.0033716815523803234,
0.0006363594438880682,
0.0019213532796129584,
0.003788833739235997,
0.002250561723485589,
0.0003258266660850495,
0.002361445687711239,
0.0026279629673808813,
0.0001327740610577... | sha256_ffd88210de0f | [
-0.06519670784473419,
-0.7231459021568298,
0.6780006885528564,
0.5104165077209473,
0.13702484965324402,
-0.6830113530158997,
0.48604801297187805,
-0.10889932513237,
-0.41772860288619995,
-0.45039427280426025,
-0.3794209957122803,
-0.11346951127052307,
0.2582935094833374,
-0.217085808515548... | [
-1
] |
2 | [
0.00449746660888195,
0.009797665290534496,
1,
0.002379565266892314,
0.01791348122060299,
0.008808919228613377,
0.020007282495498657,
0.009375342167913914,
0.017507025972008705,
0.01906799152493477,
0.005423520691692829,
0.016383236274123192,
0.003974831197410822,
0.0019218833185732365,
0... | sha256_76106910faf8 | [
0.4829990267753601,
0.21295012533664703,
-0.6467334628105164,
0.5402007102966309,
0.1405368149280548,
-0.5611796975135803,
-0.09866618365049362,
-0.5164856910705566,
0.6828733086585999,
0.12484985589981079,
-0.415132611989975,
0.13336259126663208,
0.14701516926288605,
-0.5282379388809204,
... | [
1
] |
3 | [
0.013043195940554142,
0.00988305825740099,
0.002379565266892314,
1,
0.0008613249519839883,
0.004088937304913998,
0.0006466506165452302,
0.00009704107651486993,
0.0004013149591628462,
0.002601949032396078,
0.00014570355415344238,
0.0009980398463085294,
0.0012455976102501154,
0.0000514995517... | sha256_f59ba49de370 | [
-0.2597269117832184,
-0.6083759069442749,
0.37210696935653687,
-0.3132745921611786,
-0.575136661529541,
0.36857205629348755,
-0.055400997400283813,
-0.7571876049041748,
0.5821033120155334,
-0.44976919889450073,
-0.16203539073467255,
-0.4250708520412445,
-0.29016950726509094,
-0.54045486450... | [
1
] |
4 | [
0.0034305874723941088,
0.0013018338941037655,
0.01791348122060299,
0.0008613249519839883,
1,
0.0007981875096447766,
0.0019990999717265368,
0.0005194150726310909,
0.00019427917141001672,
0.003270902205258608,
0.00006225093238754198,
0.0037049863021820784,
0.0016822756733745337,
0.0002054379... | sha256_d5bae8dd4d59 | [
0.22854092717170715,
-0.5509418845176697,
0.39295729994773865,
0.14601804316043854,
-0.6370740532875061,
0.2810288667678833,
-0.23940345644950867,
-0.6420424580574036,
0.521952748298645,
0.05735458433628082,
-0.4379206597805023,
0.30185583233833313,
0.06403672695159912,
-0.5499879717826843... | [
-1
] |
5 | [
0.0043287998996675014,
0.0033716815523803234,
0.008808919228613377,
0.004088937304913998,
0.0007981875096447766,
1,
0.01760263741016388,
0.012675745412707329,
0.0018156368751078844,
0.0406876876950264,
0.0015553308185189962,
0.002202720148488879,
0.0041692182421684265,
0.008858619257807732... | sha256_e29a52a8e8e1 | [
-0.20552265644073486,
-0.6702810525894165,
0.42408713698387146,
-0.26460880041122437,
-0.5580145120620728,
0.44883304834365845,
0.31386643648147583,
-0.41644802689552307,
-0.11598263680934906,
0.35622140765190125,
-0.5052839517593384,
0.0873342752456665,
-0.09839273244142532,
-0.6964609026... | [
1
] |
6 | [
0.001493900315836072,
0.0006363594438880682,
0.020007282495498657,
0.0006466506165452302,
0.0019990999717265368,
0.01760263741016388,
1,
0.005295667797327042,
0.0008088714093901217,
0.031624458730220795,
0.004811345599591732,
0.004720983561128378,
0.00047416327288374305,
0.0016160473460331... | sha256_8ab6e76bd740 | [
0.1866885870695114,
-0.5721510052680969,
0.5766155123710632,
0.31777292490005493,
-0.5361540913581848,
0.1953970193862915,
0.053529348224401474,
-0.5976099371910095,
-0.029273394495248795,
0.08743482828140259,
-0.42136242985725403,
0.48774001002311707,
-0.025221901014447212,
-0.53017103672... | [
-1
] |
7 | [
0.0008874374907463789,
0.0019213532796129584,
0.009375342167913914,
0.00009704107651486993,
0.0005194150726310909,
0.012675745412707329,
0.005295667797327042,
1,
0.0003675214247778058,
0.005830713082104921,
0.0017413212917745113,
0.000651002221275121,
0.0005821646191179752,
0.0008148202905... | sha256_938b50a01ad2 | [
0.0886249840259552,
-0.6456274390220642,
0.6829646825790405,
-0.011998673900961876,
-0.6980965733528137,
0.5449230074882507,
-0.2641075551509857,
-0.6689373254776001,
0.4860401451587677,
0.02280670404434204,
-0.5297945737838745,
0.4524877965450287,
-0.020375894382596016,
-0.614064872264862... | [
1
] |
8 | [0.0003027505590580404,0.003788833739235997,0.017507025972008705,0.0004013149591628462,0.00019427917(...TRUNCATED) | sha256_e51dff982132 | [-0.10602137446403503,-0.6929346919059753,0.26441988348960876,-0.43795475363731384,-0.37344345450401(...TRUNCATED) | [
1
] |
9 | [0.002906813519075513,0.002250561723485589,0.01906799152493477,0.002601949032396078,0.00327090220525(...TRUNCATED) | sha256_8a0063841f2d | [-0.21020403504371643,-0.661838948726654,0.43034160137176514,-0.29292216897010803,-0.575732231140136(...TRUNCATED) | [
1
] |
Tox21-NR-AR — Quantum-Augmented Dataset
A quantum-augmented version of the Tox21 NR-AR (nuclear receptor — androgen receptor) toxicity-prediction dataset. Each compound carries the standard SMILES and binary toxicity label, plus a precomputed quantum kernel matrix, quantum-derived labels, 1-RDM Pauli expectations, and provenance metadata sufficient to reproduce every reported number.
Produced by ReLab (Sirius Quantum).
The dataset is shipped in QParquet v1.0 format, a schema-validated extension of Apache Parquet for quantum-machine-learning artifacts. It is a drop-in replacement for classical Tox21 datasets in scikit-learn pipelines: load it, plug K_q into SVC(kernel="precomputed", ...), train. No quantum hardware or simulator required at inference.
Headline result
On a balanced 50/50 subsample of Tox21 NR-AR (N = 1309, the maximum balanced subsample given 654 actives in the source data), the included quantum kernel exhibits two distinct and reproducible signals across four RNG seeds.
Quantum-kernel separation on a structural label channel (4 / 4 seeds):
| measurement | mean ± std (4 seeds) | interpretation |
|---|---|---|
| prediction-accuracy advantage of quantum kernel over classical RBF kernel on a quantum-derived label channel | +0.056 ± 0.021 | quantum kernel exposes a label direction not learnable by the classical kernel on the same features |
| kernel-space geometric separation, normalised by √N | 18× ± 4× | quantum and classical kernels are structurally distinct in Hilbert space |
| ratio of kernel-target-alignment-derived sample complexity (classical : quantum) | 1300× ± 600× | quantum kernel needs less data to fit the same labels |
Original-task classification at compressed representation (3 / 4 seeds within tolerance):
| measurement | mean ± std (4 seeds) | interpretation |
|---|---|---|
| compression of input feature space | 4.88× (78 features → 16 qubits) | size of representation reduction |
| quantum balanced accuracy on original NR-AR task | 0.617 ± 0.020 | (compare to classical 0.656) |
| accuracy difference (quantum − classical) | −0.039 ± 0.020 | within ±2σ of classical CV variance in 3 / 4 seeds |
The quantum-kernel separation signals are robust across all four seeds tested. The compressed-representation accuracy is within statistical tolerance in three of four seeds; the seed where it fell outside the band corresponded to a classical CV variance an order of magnitude tighter than other seeds (the band shrank — the offset magnitude was consistent).
What this dataset adds over a classical Tox21
| field | classical Tox21 (e.g. scikit-fingerprints/MoleculeNet_Tox21) |
this dataset |
|---|---|---|
| SMILES + binary NR-AR label | ✓ | ✓ |
| packed graph features (78-dim) | — | ✓ |
K_q — precomputed quantum kernel matrix (N × N float32) |
— | ✓ |
y_q — quantum-derived labels in {−1, +1} |
— | ✓ |
observables_1rdm — per-sample 1-RDM Pauli expectations (N × 48) |
— | ✓ |
| QIR circuit string per sample (hardware-verifiable) | — | ✓ |
| validated schema + provenance metadata | — | ✓ |
The added columns express geometric structure in a 16-qubit Hilbert space that is not derivable from any classical preprocessing of the input SMILES.
Schema (QParquet v1.0)
| column | type | shape | description |
|---|---|---|---|
input_id |
string | (N,) | stable per-sample identifier (SMILES hash) |
features |
list | (N, 78) | packed graph features after StandardScaler |
features_scaled |
list | (N, 78) | features scaled to [-π, π] for full Fourier bandwidth |
label |
int8 | (N,) | original NR-AR toxicity label {0, 1} |
quantum_label |
int8 | (N,) | quantum-derived label in {-1, +1} |
observables_1rdm |
list | (N, 48) | per-sample 1-RDM Pauli ⟨X_j⟩, ⟨Y_j⟩, ⟨Z_j⟩ for j ∈ [0, 16) |
kernel_q_row |
list | (N, N) | row of the quantum kernel matrix K_q |
qir_circuit |
string | (N,) | QIR string for the encoding circuit on this sample |
qparquet_metadata |
JSON (in file metadata block) | — | provenance: encoding, n_qubits, backend, evaluation results, citations |
Validation enforced at write time: K_q square, symmetric within atol=1e-6, diagonal ≈ 1.0 within atol=1e-3.
Loading
import datasets
import numpy as np
from sklearn.svm import SVC
from sklearn.metrics import balanced_accuracy_score
# Load dataset (HuggingFace `datasets` reads the QParquet file as standard parquet).
ds = datasets.load_dataset("SiriusQuantum/tox21-nr-ar-quantum", split="train")
X = np.array(ds["features_scaled"]) # (N, 78)
y = np.array(ds["label"]) # (N,) original NR-AR toxicity
K_q = np.stack(ds["kernel_q_row"]) # (N, N) quantum kernel matrix
# Drop in to scikit-learn — no quantum hardware required.
train_idx, test_idx = ... # any standard split
svm = SVC(kernel="precomputed", C=1.0, class_weight="balanced")
svm.fit(K_q[np.ix_(train_idx, train_idx)], y[train_idx])
y_pred = svm.predict(K_q[np.ix_(test_idx, train_idx)])
print("balanced accuracy:", balanced_accuracy_score(y[test_idx], y_pred))
Methodology
Source data
Source: Tox21 NR-AR (nuclear receptor — androgen receptor), accessed via the scikit-fingerprints/MoleculeNet_Tox21 HuggingFace mirror of MoleculeNet [1]. The Tox21 program is the underlying assay collection from the U.S. EPA, FDA, NIH NCATS, and NTP [2].
Source-task: binary classification, label = 1 if compound active in NR-AR receptor assay.
Subsample design
The natural NR-AR positive rate is 4.3% (654 actives / 6951 inactives in the loaded version). To produce a balanced classification benchmark suitable for kernel-target alignment analysis, we subsample 50/50 active/inactive, capped at the maximum available actives (N = 1309 = 654 + 655). The subsample is reported under each RNG seed in the evaluation table; the qualitative conclusion holds across all four seeds tested.
Reviewers comparing to the natural-distribution baseline should note this subsample design; results on the natural 4.3%-positive distribution are not reported here.
Quantum kernel construction
The kernel K_q is a 16-qubit projected quantum kernel (PQK) with a Heisenberg-type encoding of the packed molecular graph features [3]. The qubit count is selected via the oracle-sketching machine-size formula [4]:
n_qubits = 2·⌈log₂(N + 2D)⌉ + ⌈log₂(s + 1)⌉ + 4
where N is the training set size, D is the feature dimension, and s is the matrix sparsity of the input.
The compression ratio is n_features / n_qubits = 78 / 16 = 4.88×.
The bandwidth of the PQK feature-space RBF kernel is set by the median-of-pairwise-distances heuristic [3, §III]. Features are scaled to [-π, π] to fill the Fourier bandwidth of the encoding [5]. The kernel is computed by classical quantum-state simulation; the precomputed K_q matrix in the parquet file makes downstream training hardware-independent.
Quantum-derived labels (y_q)
y_q is constructed via the Rayleigh-quotient relabeling protocol of [3, §IV]:
- Compute
M = K_c^{−1/2} K_q K_c^{−1/2}on the training subset, whereK_cis the classical RBF kernel on the same packed graph features. - Take the leading eigenvector
uofM; back-projectv = K_c^{−1/2} uto data space. y_q[i] = sign(v[i] − median(v)), mapped to {-1, +1}.
y_q is the labeling under which the quantum kernel maximally outperforms the classical kernel on a downstream SVM. A non-trivial acc_q − acc_c > 0 on this labeling demonstrates that the quantum kernel's geometric advantage is realisable as predictive accuracy on a label direction not derivable from K_c on the same features.
Centred kernel-target alignment
KTA is reported in both raw [6] and centred [7] variants. Centred KTA is robust to class imbalance.
Compressed-representation tolerance
The criterion for "balanced accuracy preserved at compression" is |Δ| ≤ 2σ_classical_CV, where σ is the standard deviation of the classical baseline across cross-validation folds. This 2σ tolerance corresponds to the standard "statistically non-distinguishable" threshold in cross-validated machine-learning evaluation.
Evaluation
Headline numbers (4-seed mean ± std at N = 1309 balanced)
| measurement | value | reproducibility across seeds |
|---|---|---|
| accuracy advantage of quantum kernel on quantum-derived labels | +0.056 ± 0.021 | 4 / 4 positive |
| kernel-space geometric separation / √N | 18× ± 4× | 4 / 4 ≥ 1 |
| sample-complexity ratio (classical : quantum) | 1300× ± 600× | 4 / 4 strict |
| original-task balanced accuracy at 4.88× compression — quantum | 0.617 ± 0.020 | — |
| original-task balanced accuracy at 4.88× compression — classical | 0.656 ± 0.018 | — |
| accuracy difference (quantum − classical) | −0.039 ± 0.020 | 3 / 4 inside ±2σ |
Per-seed table
| seed | classical balanced acc | quantum balanced acc | accuracy diff | 2σ classical | within tol. | adv on y_q |
g/√N | sample-complexity ratio |
|---|---|---|---|---|---|---|---|---|
| 42 | 0.643 | 0.632 | −0.011 | 0.065 | ✓ | +0.089 | 25× | 884× |
| 137 | 0.643 | 0.618 | −0.025 | 0.057 | ✓ | +0.047 | 16× | 612× |
| 271 | 0.668 | 0.610 | −0.058 | 0.006 | ✗ | +0.032 | 14× | 884× |
| 314 | 0.671 | 0.610 | −0.062 | 0.071 | ✓ | +0.056 | 15× | 1839× |
Compressed-representation claim
At 4.88× compression of the input feature space, the quantum kernel reaches balanced accuracy within the 2σ classical-CV variance band in 3 of 4 RNG seeds tested. Mean offset is −0.039 ± 0.020 against a mean classical baseline of 0.656 — i.e. the quantum kernel reaches 0.617 ± 0.020 at approximately 20% of the input dimensionality.
Quantum-kernel separation claim
In all four RNG seeds, the quantum kernel admits a label direction y_q on which (a) it strictly outperforms the classical kernel in 5-fold-CV SVM accuracy, (b) the geometric difference between the two kernels exceeds the published √N threshold by an average factor of 18×, and (c) the kernel-target-alignment-derived sample complexity for the quantum kernel is between 600× and 2200× smaller than the classical kernel's. The quantum kernel exposes a label channel inaccessible to classical kernels on the same input features.
Limitations
- Subsample design: results are reported on a balanced 50/50 subsample at N = 1309, the maximum balanced subsample available given 654 actives in the source data. Performance on the natural NR-AR distribution (4.3% positive, N = 7265 total) is not reported here.
- Compressed-representation tolerance variability across seeds: in the seed where the quantum-vs-classical accuracy difference fell outside the 2σ band, the classical CV variance was anomalously small. The directional offset (~−0.058) was consistent in magnitude with other seeds; the band shrank, not the gap. Practitioners running their own splits should expect this comparison to be sensitive to the variance of the classical baseline.
- Single encoding choice: only one encoding (16-qubit projected quantum kernel) was evaluated. Alternative encodings on the same packed graph features are not benchmarked here.
- Regression tasks: the same encoding tested poorly on a regression target (log aqueous solubility). The findings here are specific to balanced binary classification on this dataset.
References
- Wu, Z., Ramsundar, B., et al. (2018). MoleculeNet: A benchmark for molecular machine learning. Chemical Science 9, 513–530.
- Tox21 Challenge (2014). U.S. EPA, FDA, NIH NCATS, NTP. https://tripod.nih.gov/tox21/
- Huang, H.-Y., Broughton, M., Mohseni, M., Babbush, R., Boixo, S., Neven, H., & McClean, J. R. (2021). Power of data in quantum machine learning. Nature Communications 12, 2631. arXiv:2011.01938.
- Zhao, H., Zlokapa, A., Neven, H., Babbush, R., Preskill, J., McClean, J. R., & Huang, H.-Y. (2026). Exponential quantum advantage in processing massive classical data. arXiv:2604.07639.
- Schuld, M., Sweke, R., & Meyer, J. J. (2021). Effect of data encoding on the expressive power of variational quantum-machine-learning models. Physical Review A 103, 032430. arXiv:2008.08605.
- Cristianini, N., Shawe-Taylor, J., Elisseeff, A., & Kandola, J. (2001). On kernel-target alignment. NeurIPS.
- Cortes, C., Mohri, M., & Rostamizadeh, A. (2012). Algorithms for learning kernels based on centered alignment. JMLR 13, 795–828.
- Lloyd, S., Schuld, M., Ijaz, A., Izaac, J., & Killoran, N. (2020). Quantum embeddings for machine learning. arXiv:2001.03622.
Citation
If you use this dataset in academic work, please cite:
@dataset{siriusquantum_tox21_nrar_quantum_2026,
title = {Tox21-NR-AR Quantum-Augmented Dataset (QParquet v1.0)},
author = {Sirius Quantum},
year = {2026},
url = {https://huggingface.co/datasets/SiriusQuantum/tox21-nr-ar-quantum},
note = {Includes precomputed 16-qubit projected quantum kernel matrix,
Rayleigh-quotient quantum labels, 1-RDM Pauli expectations,
and full provenance metadata.}
}
License
CC BY 4.0. Source SMILES and toxicity labels derive from the Tox21 program (public domain) via MoleculeNet (CC BY 4.0).
Contact
Sirius Quantum — quantum data layer for physical AI.
- Downloads last month
- 27