Dataset Viewer
Auto-converted to Parquet Duplicate
row_idx
int64
0
399
kernel_row
listlengths
400
400
input_id
stringlengths
16
16
observables_1rdm
listlengths
21
21
labels_quantum
listlengths
1
1
0
[ 0.9999675750732422, 0.004223981872200966, 0.008199155330657959, 0.00964567344635725, 0.010203428566455841, 0.0015848376788198948, 0.007396199274808168, 0.02472252957522869, 0.019502917304635048, 0.007680309005081654, 0.005046812351793051, 0.018403900787234306, 0.011328599415719509, 0.00465...
035eec6f966cac1a
[ -0.00006517272413475439, -1.5636754824299715e-7, -6.021354970187076e-9, -0.00036424861173145473, -0.00020049668091814965, 2.031176649097688e-7, 0.0792931392788887, -5.7679930165477344e-8, -1.6448803208390927e-8, -0.0318281389772892, 1.7292927623202559e-7, 5.20947507354208e-9, 0.0519780218601...
[ -1 ]
1
[ 0.004223981872200966, 0.9999675750732422, 0.005842007230967283, 0.0038776954170316458, 0.006858848500996828, 0.013947615399956703, 0.006661691702902317, 0.03720305860042572, 0.002980791497975588, 0.015469864010810852, 0.00884336605668068, 0.00386365526355803, 0.06409522145986557, 0.0052707...
7babaaebe8fdfbaa
[ -0.014237849973142147, -0.007840399630367756, 1.8703809701037244e-7, -0.0013679205439984798, -1.7206873792474653e-7, -6.223962145668338e-8, 0.006244807504117489, -1.0277818063286759e-7, 6.95078199441923e-8, -0.18976767361164093, -4.653514196206743e-8, -1.556391140411506e-7, -0.01747114025056...
[ 1 ]
2
[ 0.008199155330657959, 0.005842007230967283, 0.9999698400497437, 0.00017582083819434047, 0.01859373040497303, 0.00011488043674034998, 0.014513324946165085, 0.004948891699314117, 0.0011077550007030368, 0.019709467887878418, 0.0012346507282927632, 0.014515845105051994, 0.014286918565630913, 0...
43a30bf73ff34f3c
[ 0.00021529202058445662, -4.532331132622858e-8, -1.5483672655136616e-7, -0.040492620319128036, -1.4086745991903626e-8, -1.5125023455908604e-9, -0.011693716049194336, -1.2775262803188525e-7, 1.625038237307308e-7, -0.0332317054271698, -1.1929267884625006e-7, -6.877042579844783e-8, 0.03263367712...
[ 1 ]
3
[ 0.00964567344635725, 0.0038776954170316458, 0.00017582083819434047, 0.9999690055847168, 0.007108735386282206, 0.0017585508758202195, 0.012514985166490078, 0.006718182936310768, 0.005142677575349808, 0.0006454317481257021, 0.033547293394804, 0.0008439681841991842, 0.01384134590625763, 0.017...
38e03ce226b75238
[ -0.02602524310350418, 4.116060026149171e-8, -1.2602251331372827e-7, 0.05043135955929756, -1.0305416964229153e-8, -9.17859566129664e-8, -0.007804436609148979, -0.016053710132837296, -1.3564299194968044e-7, 0.0679880827665329, 0.13985110819339752, 8.70969856237025e-8, 0.35112738609313965, -1...
[ -1 ]
4
[ 0.010203428566455841, 0.006858848500996828, 0.01859373040497303, 0.007108735386282206, 0.9999665021896362, 0.007817166857421398, 0.00004393998460727744, 0.014819814823567867, 0.004130701534450054, 0.014117718674242496, 0.00012564632925204933, 0.02154528722167015, 0.004184916615486145, 0.01...
7a8624f2941bc0b9
[ 0.0027442227583378553, 1.9130846240500432e-8, -3.104878354420748e-9, -0.0004725531907752156, -0.0009720718371681869, -6.740523161852252e-8, 0.03381749242544174, -3.5941123854854595e-8, 7.93939989307546e-8, 0.0866364985704422, 0.04770847409963608, -2.4973775225589634e-7, -0.1037260890007019, ...
[ -1 ]
5
[ 0.0015848376788198948, 0.013947615399956703, 0.00011488043674034998, 0.0017585508758202195, 0.007817166857421398, 0.9999661445617676, 0.029961373656988144, 0.028928887099027634, 0.0025862930342555046, 0.00809268094599247, 0.014246156439185143, 0.02359052188694477, 0.017765741795301437, 0.0...
17860fc599d239e6
[ -0.015474975109100342, 2.3180834318736743e-7, 1.297480167750109e-7, -0.05940622091293335, -2.0027628977459244e-7, -2.8562556764200053e-8, -0.14044463634490967, 2.7216890430281637e-7, 9.992913163614503e-8, -0.019532421603798866, 1.232149600127741e-7, 1.4495576294848433e-7, 0.37971603870391846...
[ 1 ]
6
[ 0.007396199274808168, 0.006661691702902317, 0.014513324946165085, 0.012514985166490078, 0.00004393998460727744, 0.029961373656988144, 0.999966025352478, 0.00030724238604307175, 0.0014297990128397942, 0.005506829358637333, 0.00028085941448807716, 0.010080095380544662, 0.008351407013833523, ...
4dc9b325ff82723f
[ 0.0077740163542330265, 9.418783974979306e-9, 8.704358833711012e-8, 0.05422339215874672, 1.7578422273345495e-8, 5.172607941972274e-8, 0.12941095232963562, 0.07126324623823166, -7.115153977110822e-8, 0.11533433198928833, -1.0941823802568251e-7, 2.019269640385346e-9, 0.013461739756166935, 1.2...
[ -1 ]
7
[ 0.02472252957522869, 0.03720305860042572, 0.004948891699314117, 0.006718182936310768, 0.014819814823567867, 0.028928887099027634, 0.00030724238604307175, 0.9999663829803467, 0.007969381287693977, 0.016123075038194656, 0.0017985734157264233, 0.0038451363798230886, 0.0001103235044865869, 0.0...
2105be0bcc5aea6c
[ -0.06399739533662796, 1.4509974732845876e-7, -1.241880056568334e-7, 0.0641094222664833, -1.6262752922102663e-7, 2.3825452721837337e-10, -0.04783586412668228, 1.9911547610718117e-7, 1.814375849562566e-8, -0.008057273924350739, 2.3310979813118138e-8, 8.86419329049204e-8, 0.26938706636428833, ...
[ 1 ]
8
[ 0.019502917304635048, 0.002980791497975588, 0.0011077550007030368, 0.005142677575349808, 0.004130701534450054, 0.0025862930342555046, 0.0014297990128397942, 0.007969381287693977, 0.9999673366546631, 0.006098852958530188, 0.00935740489512682, 0.00858247559517622, 0.0032896739430725574, 0.00...
18bd07fc7d05324b
[ 0.00634815264493227, 0.013058120384812355, -6.29507646010552e-9, -0.005117054563015699, 2.496236817250974e-8, -5.371070699311531e-8, -0.172786146402359, -0.09514904022216797, 1.3271663590330718e-7, 0.04749717190861702, -3.342459109489937e-8, 1.7159669596367166e-7, -0.2376510500907898, -0.1...
[ -1 ]
9
[ 0.007680309005081654, 0.015469864010810852, 0.019709467887878418, 0.0006454317481257021, 0.014117718674242496, 0.00809268094599247, 0.005506829358637333, 0.016123075038194656, 0.006098852958530188, 0.9999663829803467, 0.00020007688726764172, 0.003195846686139703, 0.0009205733076669276, 0.0...
20fe9d2a84697c52
[ -0.0077531482093036175, 9.60021395712829e-8, -2.743556137829728e-7, 0.02657647803425789, -1.1936859323213866e-7, 9.07509019043573e-8, 0.16412751376628876, -1.2818166084116456e-8, -2.9113451205375895e-8, 0.02005290612578392, -6.2725824534481944e-9, -5.956431792242256e-9, 0.02082684077322483, ...
[ -1 ]
10
[ 0.005046812351793051, 0.00884336605668068, 0.0012346507282927632, 0.033547293394804, 0.00012564632925204933, 0.014246156439185143, 0.00028085941448807716, 0.0017985734157264233, 0.00935740489512682, 0.00020007688726764172, 0.9999688863754272, 0.0035597875248640776, 0.016946444287896156, 0....
db8ad6aa90b1803e
[ -0.012730480171740055, 2.32694503665698e-7, 7.95104710960004e-8, 0.00010401774488855153, 0.00021409003238659352, 1.27159353269235e-7, -0.06356320530176163, 1.7407238317446172e-7, -4.5365673884134594e-8, 0.23734281957149506, 1.8367374821082194e-7, 1.215668987697427e-7, -0.2871776223182678, ...
[ 1 ]
11
[ 0.018403900787234306, 0.00386365526355803, 0.014515845105051994, 0.0008439681841991842, 0.02154528722167015, 0.02359052188694477, 0.010080095380544662, 0.0038451363798230886, 0.00858247559517622, 0.003195846686139703, 0.0035597875248640776, 0.9999681711196899, 0.00589024368673563, 0.002380...
a8160dcae80abe1a
[ -0.000028153270250186324, -5.4907744129195635e-8, 3.157139474296855e-7, -0.000788134231697768, -1.0786352078184791e-7, 8.087575764648136e-8, 0.010673237033188343, -6.948136643813996e-8, 3.09710941337471e-8, -0.05663697421550751, -0.031188545748591423, 8.809384155483713e-8, 0.0499805659055709...
[ 1 ]
12
[ 0.011328599415719509, 0.06409522145986557, 0.014286918565630913, 0.01384134590625763, 0.004184916615486145, 0.017765741795301437, 0.008351407013833523, 0.0001103235044865869, 0.0032896739430725574, 0.0009205733076669276, 0.016946444287896156, 0.00589024368673563, 0.9999673366546631, 0.0151...
4487be7199064e8c
[ 0.002704981714487076, 8.828870079469198e-8, -2.2276931588294246e-7, -0.045802026987075806, -0.025222232565283775, -3.408623427958446e-8, -0.15621790289878845, 7.689462222515431e-8, -3.4260319026202524e-9, -0.004689633846282959, -1.899404411531691e-9, 1.468682313543468e-7, -0.0422772094607353...
[ 1 ]
13
[ 0.004659799858927727, 0.005270734895020723, 0.005941422190517187, 0.017134012654423714, 0.013185449875891209, 0.003124104579910636, 0.0008197909919545054, 0.015720564872026443, 0.0037594090681523085, 0.007595523726195097, 0.00009221704385709018, 0.002380299847573042, 0.015123488381505013, ...
354a97f776b747a2
[ -0.000007039915089990245, 1.6370854893921205e-8, 1.8174368676682207e-7, -0.0032179770059883595, -0.00661959545686841, -3.5695411071401395e-8, -0.174640491604805, 7.472176122291785e-8, 2.2633494722867908e-7, 0.12834936380386353, -4.812513054730516e-9, -2.0241847309421246e-8, 0.149989426136016...
[ 1 ]
14
[ 0.0003882282762788236, 0.009302584454417229, 0.06541484594345093, 0.005459693726152182, 0.02370857074856758, 0.013419859111309052, 0.00002163542558264453, 0.0010069453855976462, 0.0056348079815506935, 0.0059708463959395885, 0.0015058729331940413, 0.0005758038023486733, 0.014357369393110275, ...
c3db64bb1dff3a40
[ 0.005412253085523844, 0.011133200488984585, 3.449364101015817e-7, -0.0018429984338581562, -0.0010150400921702385, -1.9850258325959658e-8, -0.04480574280023575, 9.89823334407447e-9, 2.0540371181709816e-8, 0.03138398379087448, -1.7291108633799013e-7, 1.1180518555420349e-7, -0.3627476990222931,...
[ -1 ]
15
[ 0.05364019796252251, 0.015011909417808056, 0.00010933780140476301, 0.01863345503807068, 0.019642889499664307, 0.007601453457027674, 0.00025914356228895485, 0.004950043745338917, 0.002323532709851861, 0.005978443659842014, 0.0017327640671283007, 0.0042496672831475735, 0.002316603669896722, ...
d5bb4ffc4b55d914
[ -0.005459516309201717, -0.01123057585209608, -1.4010324456137369e-8, -0.05086132511496544, 2.7081370035375585e-8, 9.573835058063196e-8, 0.10840663313865662, 1.779284986014318e-8, 2.1797529825562378e-7, 0.4481203258037567, -3.262771741674442e-8, -6.242056826977205e-8, 0.11393032222986221, 6...
[ 1 ]
16
[ 0.005007516127079725, 0.0018689273856580257, 0.00303266360424459, 0.0011448287405073643, 0.01244710199534893, 0.0004364210180938244, 0.022247513756155968, 0.0002213813568232581, 0.013871196657419205, 0.007738874759525061, 0.0033174504060298204, 0.005936778150498867, 0.009069368243217468, 0...
439f8316f662caca
[ 0.0024179776664823294, 5.281264847667444e-8, 1.4731848807514325e-7, 0.0005097840330563486, -8.880680013589881e-8, -7.506059063189241e-8, -0.03212049603462219, -0.017688056454062462, 2.8459535172942196e-8, 0.147308349609375, 4.6679890175482797e-8, 1.4583076790586347e-7, -0.007627134211361408,...
[ -1 ]
17
[ 0.004864580929279327, 0.016072923317551613, 0.0038156078662723303, 0.0022254660725593567, 0.017873473465442657, 0.008424591273069382, 0.0014669127995148301, 0.013801446184515953, 0.000013744032912654802, 0.014533070847392082, 0.008526923134922981, 0.019301939755678177, 0.009055736474692822, ...
ec6dea56921c343d
[ 0.015512146055698395, 2.5598863473419442e-8, -2.0653705234963127e-7, -0.0003853252565022558, 1.0155414997825574e-7, 3.349525323770308e-9, -0.004217518027871847, -6.459243451217844e-8, -1.7277830011153128e-7, -0.06785769760608673, 9.399168732215912e-8, -1.510729816800449e-7, 0.110705405473709...
[ 1 ]
18
[ 0.028087349608540535, 0.004525234457105398, 0.01773645356297493, 0.020990312099456787, 0.01103911828249693, 0.010258764959871769, 0.03222808241844177, 0.010827646590769291, 0.003676747437566519, 0.009524170309305191, 0.003152674064040184, 0.02111813612282276, 0.004092964343726635, 0.001463...
ac5ab9fedfea9207
[ -0.03137492761015892, -3.79382640858239e-8, -6.791252893378896e-9, -0.035991471260786057, -5.8006971670465646e-8, 4.192655467250006e-8, 0.06784415245056152, -2.1787082005175762e-7, 3.902590961502028e-8, 0.05658423900604248, 4.791555596739272e-8, -4.4871161009041316e-8, 0.009494395926594734, ...
[ 1 ]
19
[ 0.005798358470201492, 0.0031986760441213846, 0.06101502478122711, 0.011181681416928768, 0.01155686192214489, 0.006732640787959099, 0.010907516814768314, 0.001582201337441802, 0.00032763046328909695, 0.03419067710638046, 0.01969732716679573, 0.00714003574103117, 0.016681594774127007, 0.0013...
9a5db8e2b9ed66dd
[ 0.008616217412054539, -1.291636664291218e-7, 3.623847888434284e-8, 0.0004014451405964792, 0.0002209646045230329, -6.123059392848518e-8, 0.03762507066130638, 0.0773942843079567, -1.4353483734907968e-8, 0.01790088415145874, 1.3986345415162305e-8, -3.13909609417351e-8, 0.01742987148463726, 0....
[ 1 ]
20
[ 0.027176400646567345, 0.007183179259300232, 0.00041912318556569517, 0.0033088356722146273, 0.007360296323895454, 0.023287326097488403, 0.011841939762234688, 0.006570125464349985, 0.029097072780132294, 0.003910302184522152, 0.04096556082367897, 0.0070464699529111385, 0.004259977489709854, 0...
aea9c8929ec921b9
[ 0.027242695912718773, -6.509725380965392e-8, 5.518827350670108e-8, 0.006843589246273041, -8.063191359042321e-8, 9.447090221215149e-9, -0.002963606035336852, 2.9637751808309076e-8, -7.526705303462222e-8, -0.09793577343225479, -2.3434605367356198e-8, -9.782188215012866e-8, 0.05119851604104042,...
[ 1 ]
21
[ 0.007702365983277559, 0.004736373666673899, 0.006522608920931816, 0.024855244904756546, 0.018800389021635056, 0.01317746564745903, 0.020326627418398857, 0.004235345404595137, 0.004930722992867231, 0.0011850899318233132, 0.01694854348897934, 0.03847746551036835, 0.009294980205595493, 0.0087...
fffb3eea459ce1c4
[ -0.045777592808008194, 1.1620634410292041e-7, 1.7537904284381511e-7, 0.003121600951999426, 0.006421497091650963, 1.9785096583291306e-7, 0.02369842119514942, 0.048747364431619644, 5.2742525014082275e-8, -0.16811689734458923, 7.95242627305015e-8, 1.4319377328320115e-7, 0.13984623551368713, -...
[ 1 ]
End of preview. Expand in Data Studio

QM7b — Quantum-Relabeled Dataset

A quantum-relabeled edition of QM7b (Montavon et al. 2013, arXiv:1305.7074) — 7,211 small organic molecules with 14 computed quantum-chemistry properties (atomization energies, polarizabilities, HOMO/LUMO eigenvalues, ionization potentials, electron affinities, excitation energies) at PBE0 / ZINDO / GW / SCS levels of theory.

Each molecule carries its packed heavy-atom Coulomb-matrix features, the 14 original DFT-computed property targets, a derived HOMO–LUMO gap at GW level, and a quantum-native label y_q produced by a Heisenberg-model quantum kernel on a 7-qubit simulator. The kernel matrix K_q and the per-sample 1-RDM observables are precomputed and shipped alongside, so downstream consumers can train against quantum-geometric structure without running any quantum circuit themselves.

Produced by ReLab (Sirius Quantum), shipped in QParquet v1.0.


Headline result

On the 6,041-molecule subset of QM7b with exactly 7 heavy atoms (C, N, O, S, Cl), N_train = 300 / N_test = 100 stratified by HOMO–LUMO-gap quartile, the quantum kernel exposes a label channel that classical kernels on the same Coulomb features cannot represent.

Quantum-kernel separation on a structural label channel

measurement value interpretation
accuracy of quantum-kernel SVC on a quantum-native label channel 0.95 quantum kernel fits its own geometric label direction
accuracy of classical-RBF SVC on the same labels 0.51 (chance) classical RBF cannot represent that direction
prediction-accuracy advantage of quantum kernel over classical RBF on the label channel +0.44 head-to-head separation on a structural label channel (Huang et al. 2021)
kernel-space geometric difference g(K_Q, K_RBF) 14.32 (sample-size reference √N = 17.32) quantum and classical kernels are structurally distinct (Schuld 2024; Huang 2021 Fig. 1)
sample-complexity ratio s_classical / s_quantum derived from kernel-target alignment ~1,500× quantum kernel needs ~1,500× less data to reach the same alignment on y_q

Shuffled-label null (n = 30 permutations of training labels, fixed test labels):

measurement real null (mean ± std) z-score
quantum SVC accuracy 0.95 0.488 ± 0.068 +6.76
classical SVC accuracy 0.51 0.499 ± 0.058 +0.19
accuracy advantage +0.44 −0.011 ± 0.088 +5.13

The quantum SVC accuracy is 6.8 σ above shuffled chance; the head-to-head advantage is 5.1 σ above the shuffled null. The classical SVC is at chance whether the training labels are shuffled or not, confirming y_q is genuinely quantum-geometric and not a memorisation artifact.


Context — original-task regression (reportable, not the dataset's claim)

This dataset's value is the quantum-native label channel and the precomputed quantum kernel matrix. Original-task regression is included for context only and is not the dataset's claim: classical SoTA on QM7b properties uses learned representations (sGDML, SchNet, PaiNN) at MAE ≈ 0.05–0.1 eV with the full training set, well beyond what kernel ridge regression on packed Coulomb features can reach. The kernel matrix shipped here is built for quantum-geometric structure, not for absolute-property regression; consumers running regression should bring their own ML stack on top of the features and the quantum-native label channel.

For completeness, kernel ridge regression test-set MAE on the 14 original DFT properties + the derived HOMO–LUMO gap, with the quantum kernel K_q and classical-RBF kernel K_c on the same 28-dimensional packed Coulomb features (4× feature compression at 7 qubits):

target index observed range classical-RBF MAE quantum-kernel MAE
T00 (atomization energy, PBE0) −2213 to −410 119.25 408.31
T01 (polarizability, PBE0) 3.4 to 39.7 3.156 3.340
T02 (polarizability, SCS) 0.05 to 3.35 0.205 0.161
T03 (HOMO, GW) −16.0 to −7.5 0.985 2.303
T04 (LUMO, GW) −2.3 to +4.2 1.187 1.012
T05 (IP, ZINDO) 1.5 to 36.8 1.632 1.608
T06 (EA, ZINDO) 6.9 to 15.7 0.964 2.176
T07 (E1, ZINDO) −4.0 to +2.9 1.322 1.103
T08 (Emax, ZINDO) −10.95 to −5.12 0.613 1.572
T09 (Imax, ZINDO) −3.81 to +0.41 0.621 0.527
T10 (HOMO, ZINDO) −14.1 to −7.0 0.659 2.060
T11 (LUMO, ZINDO) −1.84 to +1.96 0.405 0.370
T12 (uncertain — see column-mapping note) 2.53 to 17.17 0.741 2.851
T13 (uncertain — see column-mapping note) 2.43 to 16.46 0.599 3.049
gap_GW (LUMO_GW − HOMO_GW) 7.34 to 15.24 1.844 2.648

Pattern: the quantum kernel matches or beats classical RBF on six properties (T02 SCS polarizability, T04 LUMO_GW, T05 IP_ZINDO, T07 first ZINDO excitation, T09 Imax intensity, T11 LUMO_ZINDO) and underperforms on absolute-energy targets (atomization, HOMO eigenvalues, electron affinity, gap). Classical wins on arbitrary regression tasks out of the box (Schuld 2024); the dataset's quantum-relabeled value lives in the structural label channel above, not here.


Column-mapping caveat — names array in source .mat is scrambled

The names field in the upstream qm7b.mat file is character-array corrupted by scipy.io.loadmat and is not human-readable as shipped. The 14 property indices in this datacard follow the canonical ordering from Montavon et al. 2013, Table 1 (arXiv:1305.7074).

Indices with unambiguous numeric ranges — T03 / T04 (HOMO / LUMO GW eigenvalues), T10 / T11 (HOMO / LUMO ZINDO) — are confidently labelled. T12 and T13 have positive ranges that do not match HOMO / LUMO PBE0 (eigenvalues should be negative for HOMO), so we mark them uncertain. Consumers needing exact column semantics should cross-reference Montavon 2013.


What this dataset adds over a classical QM7b

field classical QM7b this dataset
Coulomb matrices + 14 property targets
packed heavy-atom features (28-D)
K_q — precomputed quantum kernel matrix (N × N float32)
y_q — quantum-native labels in {−1, +1}
observables_1rdm — per-sample 1-RDM Pauli expectations
derived gap_GW target
validated schema + provenance metadata

The added columns express geometric structure in a 7-qubit Hilbert space (a Heisenberg model on the molecular bond graph) that classical kernels on the same Coulomb features do not capture — the shuffled-null and head-to-head numbers above quantify how much.


Schema (QParquet v1.0)

QParquet v1.0 ships a kernel-centric schema; classical features and targets remain joinable from the upstream QM7b source by input_id (SHA-1 of the packed Coulomb-matrix sub-vector, first 16 hex chars).

column type shape description
row_idx int64 (N,) row index 0 … N−1, sorted on read
input_id string (N,) stable per-sample identifier (SHA-1 of features_packed[i])
kernel_row list (N,) per row → (N, N) total row of K_q — the quantum fidelity kernel matrix
labels_quantum int8 (N, 1) y_q ∈ {−1, +1} — quantum-native labels
observables_1rdm list (N, 21) per-sample 1-RDM Pauli ⟨X_j⟩, ⟨Y_j⟩, ⟨Z_j⟩ for j ∈ [0, 7)
file-level qparquet_metadata JSON (parquet key-value metadata) encoding, n_qubits, backend, full evaluation report, per-property MAE table, shuffled-null z-scores, citations

Validation enforced at write time: K_q square, symmetric within atol = 1e-6, diagonal ≈ 1.0 within atol = 1e-3, input_ids unique, observables_1rdm shape (N, 3·n_qubits).

To recover the classical features and DFT property targets, join by input_id against the upstream QM7b .mat file (scipy.io.loadmat("qm7b.mat")); the hashing is deterministic on features_packed. The full classical view is not duplicated in this artifact — its value is the quantum-relabeled columns.


Loading

import numpy as np
import pandas as pd
import pyarrow.parquet as pq
from sklearn.svm import SVC
from sklearn.kernel_ridge import KernelRidge

# QParquet v1.0 — read the kernel matrix and quantum labels
table = pq.read_table("qm7b_quantum.parquet")
df    = table.to_pandas()
K_q   = np.vstack(df["kernel_row"].to_numpy()).astype(np.float32)   # (N, N)
y_q   = np.vstack(df["labels_quantum"].to_numpy()).ravel().astype(np.int8)
input_ids = df["input_id"].tolist()

# File-level qparquet_metadata (encoding, evaluation, citations, …)
import json
meta = json.loads(table.schema.metadata[b"qparquet_metadata"].decode())

# Train on the quantum-native label channel
clf = SVC(kernel="precomputed", C=1.0).fit(K_q[:300], y_q[:300])
print(clf.score(K_q[300:, :300], y_q[300:]))

# Original-task regression: join with upstream QM7b for classical targets
# (download qm7b.mat from quantum-machine.org/data/qm7b.mat — link in metadata)

The dataset is a drop-in for scikit-learn precomputed-kernel pipelines: load K_q, train. No quantum hardware or simulator required at inference time.

To produce K_q and y_q for new molecules with the ReLab SDK:

import relab

# Quantum kernel matrix
K_q = relab.kernel(features_scaled, domain="molecular", n_qubits=7)

# Quantum-derived labels
y_q = relab.fit(features_scaled, domain="molecular", n_qubits=7)

Methodology

  • Encoding: a Heisenberg model on the molecular bond graph (XX + YY + ZZ couplings, one qubit per heavy atom). Coulomb off-diagonals J_ij map to bond couplings; diagonals h_i = ½ Z_i^2.4 map to local fields. Reference: arXiv:2407.14055 (Heisenberg encoding for graph-structured data).
  • Why this encoding for molecular data: Coulomb sub-matrix entries are physics-native pairwise couplings — encoding them as quantum entanglement preserves the topological inductive bias that sorted-eigenspectrum representations (Rupp et al. 2012) destroy. Validated on QM7 atomization-energy regression prior to this dataset.
  • Feature scaling: MinMaxScaler to [−π, π] per Schuld, Sweke, Meyer 2021 Fourier-bandwidth constraint.
  • Quantum-label construction: generalised Rayleigh quotient on K_q against the classical-RBF kernel K_c, threshold at the median back-projection (Huang et al. 2021 §IV). Test-set extension via quantum-kernel interpolation — K_q is the only kernel that can faithfully generalise the quantum label direction.
  • Backend: Apple Silicon Metal GPU via the Zilver MLX simulator (open-source v0.3.2). Statevector-exact at 7 qubits. Cross-verified against a pure-NumPy reference at atol = 1e-4.

What this kernel is, in plain language

The kernel compresses 28-dimensional Coulomb features into a 7-qubit Hilbert space and measures molecular similarity as the fidelity of two Heisenberg-evolved states. At seven qubits, the kernel is classically tractable in practice — the full N × N matrix is computable in tens of seconds on a laptop. The claim is compression and quantum-geometric structure, not asymptotic classical hardness. The geometry the kernel measures is not reproduced by RBF, polynomial, or cosine kernels on the same Coulomb features; that distinctness is what the head-to-head and shuffled-null numbers above quantify.

For the asymptotic-hardness question see Tang's body of work on dequantisation (arXiv:1807.04271; arXiv:1910.06151) and the QSVT framework (Gilyén, Su, Low, Wiebe 2019). The plain Heisenberg fidelity kernel is BQP-complete worst-case (Janzing & Wocjan 2007) but admits no published Tang-style classical sampling algorithm; we do not make an asymptotic-hardness claim at seven qubits. The QSVT spectral-filter upgrade — block-encoding the bond Hamiltonian and applying a HOMO–LUMO gap-midpoint projector polynomial — is provably not dequantisable (Lin & Tong 2020; Martyn et al. 2021) and is on the ReLab roadmap; it is not the kernel shipped in this dataset.


Reproduction

Headline run:

  • N_train = 300, N_test = 100, stratified across HOMO–LUMO-gap quartiles
  • RNG seed = 42
  • Backend: Apple Silicon (Zilver MLX/Metal simulator; cross-verified against a NumPy reference at atol = 1e-4)
  • K_q for the full N = 400 Gram matrix computed in 8.6 s on a MacBook (Apple M-series, Zilver MLX/Metal). The kernel matrix and quantum-native labels are precomputed and shipped in the QParquet artifact, so consumers can train against K_q without re-simulating.

Citation

@dataset{relab_qm7b_quantum_2026,
  title  = {QM7b — Quantum-Relabeled (QParquet v1.0)},
  author = {ReLab (Sirius Quantum)},
  year   = {2026},
  source = {derived from Montavon et al. 2013, arXiv:1305.7074},
  note   = {Quantum kernel matrix and quantum-native labels via a Heisenberg model on the molecular bond graph (7 qubits, one per heavy atom).}
}

If you build on this dataset, please also cite the upstream QM7b source (Montavon 2013) and the ReLab engine that generated the quantum-relabeled columns.

References

  • Montavon, Rupp, Gobre, Vazquez-Mayagoitia, Hansen, Tkatchenko, Müller, von Lilienfeld 2013 — arXiv:1305.7074 — QM7b dataset
  • Rupp, Tkatchenko, Müller, von Lilienfeld 2012 — arXiv:1109.2618 — Coulomb-matrix representation
  • Huang et al. 2021 — arXiv:2011.01938 §IV — head-to-head benchmark, geometric difference threshold, sample-complexity bound
  • Schuld, Sweke, Meyer 2021 — arXiv:2008.08605 — Fourier-bandwidth scaling
  • Schuld 2024 — arXiv:2403.07059 — geometric advantage g(K_Q, K_C)
  • Zhao et al. 2026 — arXiv:2604.07639 — compression-match framework
  • Gilyén, Su, Low, Wiebe 2019 — arXiv:1806.01838 — QSVT
  • Janzing & Wocjan 2007 — arXiv:quant-ph/0610203 — BQP-completeness of Hamiltonian overlap
  • arXiv:2407.14055 — graph-Hamiltonian encoding for structured data
Downloads last month
84

Papers for SiriusQuantum/qm7b-quantum-relabeled