Dataset Viewer
Auto-converted to Parquet Duplicate
n_samples
int64
100
300
n_params
int64
4
800
var_mean_over_params
float64
0
0.12
var_median_over_params
float64
0
0.13
var_per_param
listlengths
4
800
grad_mean_abs
float64
0
0.03
cost_mean
float64
-0.02
0.02
cost_var
float64
0
0.23
seconds
float64
0.34
237
var_first
float64
0
0.1
var_first_ci
listlengths
2
2
raw_first
listlengths
100
300
var_mid
float64
0
0.15
var_mid_ci
listlengths
2
2
raw_mid
listlengths
100
300
var_last
float64
0
0.15
var_last_ci
listlengths
2
2
raw_last
listlengths
100
300
entropy_mean
float64
0.2
3.46
entropy_std
float64
0.07
0.33
n
int64
2
16
L
int64
2
50
ham
stringclasses
1 value
haar_two_sided
float64
0
0.11
source_file
stringlengths
16
16
300
4
0.124992
0.127223
[ 0.10109123601207909, 0.09072242313719445, 0.154798440228881, 0.15335457780327932 ]
0.026291
0.019607
0.208758
0.344434
0.101091
[ 0.08305497806141045, 0.11882319530627682 ]
[ 0.36104415242468546, -0.1284943974715988, 0.19147673849490532, -0.1541215448151302, 0.40410026263086407, 0.05947692266739506, -0.06732166603862481, -0.44129783026140784, 0.0003927414618526831, -0.01327490616296243, -0.059052031517677565, 0.037721958113747026, -0.11450093436140651, -0.20480...
0.153355
[ 0.1302000819865506, 0.1736751197124876 ]
[ 0, -0.6314240982232086, -0.874471948366403, 0.37441773156514996, -0.5488490835464234, 0.49949116859397497, -0.49433286146961897, -0.2326283378148868, 0.6430118115614033, 0, 0, 0, 0, -0.039197227260004186, 0, 0, 0.303019005425333, 0, -0.513019842065723, 0, 0.49801634418454266,...
0.153355
[ 0.1302000819865506, 0.1736751197124876 ]
[ 0, -0.6314240982232086, -0.874471948366403, 0.37441773156514996, -0.5488490835464234, 0.49949116859397497, -0.49433286146961897, -0.2326283378148868, 0.6430118115614033, 0, 0, 0, 0, -0.039197227260004186, 0, 0, 0.303019005425333, 0, -0.513019842065723, 0, 0.49801634418454266,...
0.196745
0.176277
2
2
globalZ
0.106667
e1/n02_L002.json
300
10
0.104734
0.103609
[ 0.07979922511991382, 0.08523765536071924, 0.09367061345008121, 0.10415495512742666, 0.10702888439567473, 0.10306389360642294, 0.09952222431645746, 0.11104428204017591, 0.13345657816930817, 0.13036403898518906 ]
0.010437
0.003967
0.197782
0.637086
0.079799
[ 0.06743731100095586, 0.09466418283159812 ]
[ 0.24539541800190323, 0.3011294426595388, -0.5096597797593361, -0.3365314629778442, 0.11896749340017101, -0.0236438839795128, 0.4384245776056605, 0.2001652636422867, 0.13764764305226262, 0.5210610854266149, -0.21555986230888127, -0.11987368159899636, -0.34337135702901633, -0.317868165284993...
0.103064
[ 0.08625135147410631, 0.12095311494935494 ]
[ -0.34170929991816223, 0.05086058772499333, -0.435862417505745, 0.2072487022322072, -0.36542743456022864, 0.011645565954450411, 0.061433340664370756, 0.39990256214551895, -0.3024820655003945, -0.09893757205040045, -0.6994117506751909, 0.04879317267473707, -0.0032277684786408143, 0.113630944...
0.130364
[ 0.10816759249696849, 0.15237056788148415 ]
[ -0.10819829940344217, -0.43216265381128394, -0.567606525679423, 0, 0.3024321863004738, 0.529371101470154, 0.07999410406434458, 0.4237235570462587, -0.4852883377546857, 0, -0.07627794962484416, -0.5895821140016879, -0.004639342867546827, 0.6775129907160229, 0, -0.015098747674437474, 0...
0.332694
0.182979
2
5
globalZ
0.106667
e1/n02_L005.json
300
20
0.109756
0.108271
[ 0.09636686327678648, 0.08172107405324083, 0.10367485665750453, 0.11453392025682722, 0.10512948338590003, 0.10780659784335422, 0.1120688170105868, 0.11556487407471933, 0.09886092308974634, 0.09973284465003115, 0.11336639037961437, 0.10873570611502427, 0.11851657014499417, 0.1139460699936646...
0.015793
0.002247
0.193218
1.186624
0.096367
[ 0.0805350109745796, 0.11110988754217362 ]
[ 0.24544905159480143, 0.0048051936525140004, 0.07927487780006691, 0.12330232187058232, -0.2710156995410336, 0.7868896051242722, 0.27762340196192437, 0.15676284633759938, -0.6061705347447316, 0.9662161684417007, -0.5150948867891891, 0.06018023273173087, -0.2900730317201054, 0.324128188103822...
0.108736
[ 0.09466242496834959, 0.12410816612133448 ]
[ 0.011494940671890597, -0.3766900650916034, -0.22789541123911794, -0.14660699541314648, 0.16880726324054393, -0.10826904868950851, 0.10725383604801983, -0.03653297344864864, -0.43567851128848545, -0.29192398311788237, 0.3933165476701753, -0.16906456155926283, -5.551115123125783e-17, 0.29768...
0.132078
[ 0.10961986777006363, 0.15398692263033684 ]
[ -0.011168404378263757, -0.2601108491673086, 0, -0.04176253283478232, -0.21815859567083368, 0.5034928328262438, 0.2561404680212109, 0.2608261635811637, 0, 0.09639684484356384, 0, -0.5716424245419116, 0, -0.2735880225579349, -0.06763046901325939, -0.6801863120621405, -0.136522011740509...
0.328958
0.183059
2
10
globalZ
0.106667
e1/n02_L010.json
300
40
0.105878
0.10469
[ 0.09302056888949845, 0.09501729894296582, 0.0951538476946128, 0.10919730963025769, 0.09713998941987924, 0.09635529173123644, 0.10555225686490335, 0.10665142552058464, 0.10498156380934115, 0.10439866516024743, 0.10164496765069764, 0.11227671291322583, 0.11069726562215453, 0.0976643854616231...
0.015503
0.024537
0.203885
2.275248
0.093021
[ 0.07867681889835985, 0.1054549398500473 ]
[ -0.06559045951682338, 0.5052842170593368, -0.2354578538678712, 0.34499410671497943, 0.22707753032061162, 0.028043821137951327, -0.1811924047109818, -0.04725502131777488, 0.4773234641276854, -0.14896801823887515, -0.021066142450487386, 0.18998679950635075, -0.09864672479979861, 0.1662955750...
0.116458
[ 0.10040374950336622, 0.13505077131150503 ]
[ -0.22039810270078103, 0.08600035341960245, -0.5037904824875804, 0.4488788118349397, -0.6863565920897235, 0.23048935120471917, -0.25109001633696504, 0.10727310412348133, -0.6363322154917781, 0.8015005380280584, -0.3755980324103633, 0.16646208039365623, 0.2550760199984366, 0.0733100748344586...
0.133281
[ 0.11034257457698693, 0.15540892516488727 ]
[ 0, 0, 0, -0.19670882134815684, 0, -0.7163294399027956, 0.297499283316521, 0, -0.15084178063816722, 0, 0, 0, -0.8437770680166865, 0.023259702683865874, 0, -0.4131993006232719, 0.5389134719961448, -0.8614368396517021, 0.4279379729044931, -0.5692529440883651, -0.7883812398225916...
0.334838
0.184047
2
20
globalZ
0.106667
e1/n02_L020.json
300
100
0.101974
0.102081
[ 0.08831805411694839, 0.08330724021589965, 0.09824510924634496, 0.09363909640748505, 0.09786824065093286, 0.09531500288262505, 0.09260816201292071, 0.11026707383674653, 0.09703818767281869, 0.09469686659324555, 0.10562037669171068, 0.1094078791932028, 0.09432377230213539, 0.1023156585688278...
0.014097
-0.022261
0.226509
5.159032
0.088318
[ 0.07623220640156515, 0.10084526937090225 ]
[ 0.12699364873323754, 0.25541812036463774, -0.019720220339434543, -0.3538975110123641, 0.0028602665655804993, 0.34047617328946855, 0.11231334917290044, -0.13946188501403173, -0.0631242126200039, 0.21906073647006363, -0.03214633038214904, -0.16659109645149833, 0.26608951667202774, 0.30266242...
0.108472
[ 0.09396334932005183, 0.12394929794561556 ]
[ -0.2912253701740348, -0.2423558583842192, 0.7426451065986613, -0.5195628784566023, -0.2895890593977147, 0.16938702601064054, 0.2933464592957911, 0.15662097847375553, 0.031949961747202826, 0.15848558197570498, -0.07609812920026897, 0.023372325692757996, -0.03074384426477879, -0.045397201858...
0.133933
[ 0.11242715478815893, 0.155733671346588 ]
[ 0, -0.06620354708153542, 0, 0, 0.25046894191537217, 0.5226168068660032, -0.6066315829742188, 0, 0, 0.30903018918817304, 0.005496603563701334, 0.17492837951725088, -0.2162521688921426, -0.49426599019538014, 0, 0, -0.012177709803027313, -0.7266794596411845, -0.1696708405586566, -...
0.341505
0.181682
2
50
globalZ
0.106667
e1/n02_L050.json
300
8
0.030028
0.031289
[ 0.021671388064653418, 0.016958404741097485, 0.022771376501540094, 0.028220582082584423, 0.03620605187110449, 0.04017649746516809, 0.039859789589159964, 0.03435753237521095 ]
0.008737
-0.015475
0.060294
0.659769
0.021671
[ 0.016906632025176126, 0.02677126851957072 ]
[ -0.2086112754433598, -0.053502848592156815, -0.001900163353387569, 8.326672684688674e-17, -0.4421217152855292, 0.30331439909856367, -0.001490428917080312, 0.05776758575208532, -0.007373216974364934, 0.12469567538247477, 0.046793511145178504, -0.01844206283081276, -0.002515698594489416, 0.1...
0.03986
[ 0.03096829974868314, 0.049689278617013964 ]
[ -0.38103196704995285, 0, 1.3877787807814457e-17, -0.10882641970025957, 0.10966315738356816, 0, 0.39562568683218013, 0.34507690595394913, -0.20897346503953568, -0.17963183373931935, 0, 0.16203636704118882, -0.056827995301347356, -0.1143642657598559, 0, 0.017805162321098612, -0.1955695...
0.034358
[ 0.02764894705905461, 0.04158124861207873 ]
[ -0.2745376353574055, 0, -0.009079778060593721, -0.42726684760720457, 0, 0, 0, 0.29564734476822035, -0.34861743202164475, -0.01450418078377766, 0.30401867085939116, -0.03875428722185012, 0.10335177071215186, 0, 0, 0.060126754985311885, 0, 0.4126668792194656, -0.18116325489716045, ...
0.301923
0.23396
4
2
globalZ
0.029527
e1/n04_L002.json
300
20
0.023727
0.022579
[ 0.017651320444814506, 0.016622982201752203, 0.02048391374849653, 0.020765728192771154, 0.021781616493420797, 0.022302737569076886, 0.02398623351383898, 0.022552858812475953, 0.028664916561985103, 0.020585809942822424, 0.029592018338110343, 0.025107170124479935, 0.020336222458484068, 0.0226...
0.006889
0.007096
0.041934
1.486619
0.017651
[ 0.012968499986368648, 0.0230223716829909 ]
[ 0.01839986600317329, -0.16873746805283601, 0.09690545982052354, -0.057570374717105605, 0.08912400212922039, 0.1926566246771017, -0.07468068239444377, -0.07703728702808231, -0.08814420539112236, 0.0470726837386409, -0.03050765800507109, -0.1092470639277579, 0.077735644854546, -0.04371011594...
0.029592
[ 0.0227830337761926, 0.03727598921131148 ]
[ -0.0026343799881048437, -0.12319773522550304, 0.12380362716572896, 0.0001817848986470534, 0.10116118747895554, 0.057073370736207385, 0.318435983241452, 0.6686950677688266, -0.09725341550698431, 5.551115123125783e-17, 4.163336342344337e-17, 0.10321375896367052, 0.03038364710405262, 0.120183...
0.028236
[ 0.022003321549128763, 0.03614587586205212 ]
[ 0.270231694717078, -0.12561560530855623, 0, -0.21543039604744457, 0.02913342505195564, -0.16148981489136793, 0.31554369527908743, -0.10635551720179456, 0.11069320027900653, 0, 0.12458625380024119, 0, 0.18743535703041486, 0.0018200667102708026, -0.03697512160847577, 0, 0, -0.1881230...
0.526828
0.202211
4
5
globalZ
0.029527
e1/n04_L005.json
300
40
0.026705
0.026465
[ 0.017327404216511254, 0.02010342004712758, 0.02053940474757116, 0.020735360061016797, 0.023731910721285075, 0.026855465615590355, 0.02403749164796836, 0.025874669534084252, 0.023980697780589484, 0.023884091316697068, 0.02849310408760807, 0.022509606275621003, 0.027961085629337093, 0.027123...
0.007429
0.020101
0.051863
2.558403
0.017327
[ 0.014574399963282714, 0.02069863585446058 ]
[ 0.06554680568131342, -0.24591333302739166, -0.012229612872195175, -0.2639182781520511, 0.09701547229766502, 0.02031213595515169, 0.32337734312837246, 0.05689479840984982, 0.13277424790054346, -0.14442635424570724, 0.16323057312219855, 0.24397129011359076, -0.024528104478143235, 0.038307017...
0.026906
[ 0.022051970565825432, 0.031580482939061016 ]
[ -0.09930535648621888, 0.08931969826969476, 0.06331672507352576, -0.06672259402909766, 0.003609596339596788, -0.0844343769109869, 0.008916230648616512, -0.037602051331078495, 0.07753676109033654, 0.2196877795716916, -0.06008099801852586, 0.11945130068503002, 0.16047109578039348, -0.29604774...
0.029408
[ 0.024142517166311713, 0.035110103394094025 ]
[ 0.35615668890458896, -0.23580677252757581, 0.16854394915602663, 0, 0, -0.04218395398422073, 0, 0, 0.10242810969999969, -0.0175282637153756, -0.04450216788916282, 0, 0, 0.09411817030732775, -0.28343785639960595, -0.16312362535249392, -0.10554268516017948, 0.12552893321041947, 0, ...
0.725234
0.177456
4
10
globalZ
0.029527
e1/n04_L010.json
300
80
0.027861
0.027322
[ 0.022175179996000875, 0.01851175874192623, 0.022046317827313925, 0.021035136086733793, 0.02457916645080376, 0.020965464757271596, 0.025858534411527734, 0.026181074456652003, 0.02436187189968331, 0.023834396284490383, 0.027328001703765554, 0.024919640677015978, 0.025876103297204335, 0.02309...
0.007296
0.006575
0.057336
4.769186
0.022175
[ 0.01841154117308758, 0.026691055235280505 ]
[ 0.5120569417473513, 0.06169200122458825, -0.23206183172004755, 0.15779727477543215, 0.009343937335042237, 0.012656490175086882, 0.027599501020556107, -0.07472445028462049, -0.033723658094536896, -0.048519554137899726, 0.32219877016566817, 0.001932624894406057, -0.12377761169717272, 0.15965...
0.03184
[ 0.02686990957864033, 0.03761862111877249 ]
[ -0.5442563242788251, 0.3205407417276059, -0.1362309176802768, 0.029790695720162085, -0.04765820674115134, -0.0038542008026151986, -0.18399485913587868, -0.32282486695802826, -0.028714180156362373, 0.09552723801200241, 0.02287336226838063, -0.08749737835257856, 0.10931872929883604, -0.26063...
0.043098
[ 0.03703837492456717, 0.05038552766984092 ]
[ -0.10100227912140405, 0.045164632202921835, 0.48441602637096326, 0.28649929646305194, 0.27848088799493154, 0.1655047179520482, 0, 0.07998176063414297, 0.3665883307610586, 0, 0.27540418797419774, -0.3512358304473753, -0.408541982335562, 0, -0.27593832527130363, 0.2569101809364217, 0.1...
0.869589
0.138704
4
20
globalZ
0.029527
e1/n04_L020.json
300
200
0.028838
0.028422
[ 0.021731071012212375, 0.020618916381586888, 0.018342858221830228, 0.021191975839138417, 0.023892403968280837, 0.02418872514253824, 0.023858266900865482, 0.02665714026793806, 0.027794956512082362, 0.02384526985963315, 0.024287039302014788, 0.022876682796244923, 0.02722160326322066, 0.028403...
0.007791
-0.023715
0.060833
11.072457
0.021731
[ 0.01844937540216075, 0.024944031836051005 ]
[ 0.08640233799987246, -0.22716026935787775, 0.060908091979328886, 0.24604772533670888, 0.06115800250358281, 0.3854876981261752, -0.11677893830536556, 0.23376307149882258, -0.019937528621941536, 0.06483879802051543, -0.08425983747988303, -0.028653653242135244, 0.03696759450525775, -0.2408866...
0.023878
[ 0.019972927632609657, 0.02784350635545893 ]
[ -0.0023204680361268992, -0.34978186530370564, 0.1253751351654007, 0.039225486887764255, 0.04240707397428742, -0.1531409694003476, -0.04382510852702348, -0.12084498355461849, 0.037004690250680754, 0.06326520269760844, 0.06847987773743636, 0.06794267441564787, 0.0040156105664787695, 0.138954...
0.037864
[ 0.031229933708360184, 0.045809735323434506 ]
[ -0.17725944322079135, 0, -0.35198842095349314, -0.18571713327633435, 0.05902362969757492, 0.11169531218902073, 0, 0.2416089702282627, -0.014542338197753385, 0.0767042968734573, -0.1749689655910348, 0.3150808809612851, 0.4204660530546839, 0.3604858333140384, -0.29017403750277704, 0, 0...
0.920271
0.114649
4
50
globalZ
0.029527
e1/n04_L050.json
End of preview. Expand in Data Studio

Barren Plateaus from Scratch: results

Every data point behind the technical report Barren Plateaus from Scratch: A NumPy State-Vector Study of Trainability in Variational Quantum Circuits (Thanatchon Chongmankhong, 2026). The numbers were produced with qsim, a from-scratch NumPy state-vector simulator with exact adjoint gradients, on 2–16 qubits.

The dataset comes in two forms:

  • data/: one tidy Parquet table per experiment. These are the configurations below, readable with datasets, pandas or the dataset viewer.
  • raw/: the JSON cache exactly as the experiment scripts wrote it, one file per configuration, plus summary.json. It is byte-identical to results/ in the code repository at v0.2.0.

Load

from datasets import load_dataset

e1 = load_dataset("thanatchon36/bp-from-scratch", "e1_variance_vs_n", split="train").to_pandas()
print(e1[["n", "L", "var_mid", "haar_two_sided"]].sort_values(["L", "n"]).head())
import pandas as pd

df = pd.read_parquet("hf://datasets/thanatchon36/bp-from-scratch/data/e5_training.parquet")
print(df.groupby(["cost", "shots", "n"]).fidelity_final.mean().unstack("n").round(3))

To regenerate every figure and table of the paper from this data, put raw/ in place of results/ in the code repository and run make figures && make paper.

Configurations

Config Rows One row is What it measures
e0_haar_check 14 Hamiltonian × n Sampled gradient variance with Haar-random circuits before, after or on both sides of a rotation, against the closed-form values (Appendix A)
e1_variance_vs_n 40 n × depth L McClean random-axis hardware-efficient ansatz, H = Z⊗n: gradient variance, raw derivative samples and half-chain entropy
e2_local_vs_global 60 cost × n × L Alternating-layered ansatz with a global projector cost and a local cost (Cerezo et al.)
e3_initialisation 30 strategy × n Uniform, Gaussian (σ = 1, 0.3, 0.1) and identity-block initialisation, local cost (1/n)ΣXᵢ
e4_variance_vs_depth 13 depth L at n = 12 Fine depth grid of the E1 circuit: gradient variance and entanglement entropy
e5_training 330 one Adam run Preparing |0⟩⊗n from random angles with exact gradients or 10⁴-shot noise; full cost history
e6_qaoa_variance 28 n × p QAOA MaxCut on random 3-regular graphs: variance of ∂C/∂γ₁ and ∂C/∂β₁
e6_qaoa_training 18 p × graph at n = 10 Approximation ratios reached by Adam from 4 random starts per graph
e7_dla 24 family × n Exact dynamical Lie algebra dimension, 𝔤-purities, predicted and measured Var[C]

Columns

Gradient statistics (e1–e4). Every row samples n_samples random parameter vectors and computes the full gradient with the adjoint method.

Column Meaning
n, L Qubits and circuit depth (layers)
n_params Number of circuit parameters
var_first, var_mid, var_last Variance of the derivative with respect to a probe parameter in the first, middle (middle qubit) and last layer
*_ci 95% percentile-bootstrap interval of that variance (400 resamples)
raw_first, raw_mid, raw_last The individual derivative samples behind the variances
var_per_param Variance of the derivative with respect to every parameter, in circuit order
var_mean_over_params, var_median_over_params Mean and median of var_per_param
grad_mean_abs, cost_mean, cost_var Mean absolute derivative, mean and variance of the cost
entropy_mean, entropy_std Half-chain von Neumann entropy of U(θ)|0⟩ in nats (E1, E4)
haar_two_sided Closed-form variance for a unitary 2-design on both sides of the probe (Eq. 2 of the paper)
ham, cost, variant Cost operator, global or local cost (E2), initialisation strategy (E3)
seconds Wall-clock time of the configuration on one CPU core

E5 training runs. cost is global or local; shots = 0 means exact gradients, otherwise Gaussian noise of standard deviation noise_sigma is added to every cost and gradient entry. grad_norm_init is the exact gradient norm at the random start, fidelity_final is |⟨0|ψ⟩|² after steps Adam steps at learning rate lr, and history is the cost after every step.

E6. var_gamma1 and var_beta1 are variances of the derivative of the cut operator C with respect to the first QAOA angles γ₁ and β₁, and raw_gamma1, raw_beta1 are the samples. The paper's figure divides them by |E|² = (3n/2)². A new random graph is drawn for every sample. In e6_qaoa_training, edges is the graph, max_cut its exact maximum cut, and the ratios are ⟨C⟩/C_max.

E7. family is hea_full {Xᵢ, Yᵢ, ZᵢZᵢ₊₁}, hea_real {Yᵢ, ZᵢZᵢ₊₁}, hva_tfim {ΣXᵢ, ΣZᵢZᵢ₊₁} or qaoa (random 3-regular graph, edges). dim is the exact DLA dimension, capped marks closures stopped at the size limit, purity_rho and purity_H are the 𝔤-purities, predicted_var is P𝔤(ρ)P𝔤(H)/dim 𝔤 (Ragone et al.), and measured_var is the cost variance over samples uniformly random parameters of an L-layer circuit.

E0. Columns {two_sided,left_only,right_only}_{measured,predicted} for hamiltonian Z⊗n (globalZ) or |0⟩⟨0|⊗n (projector), with G = Y on qubit 0.

Every table has a source_file column that names its file in raw/.

Conventions

Qubit 0 is the most significant bit, and rotations are exp(−i·θ·G/2), as in PennyLane and Qiskit. All seeds are fixed in the experiment scripts, so make results in the code repository reproduces this data (about one CPU hour).

Citation

@techreport{chongmankhong2026barren,
  author = {Chongmankhong, Thanatchon},
  title  = {Barren Plateaus from Scratch: A NumPy State-Vector Study of Trainability in Variational Quantum Circuits},
  year   = {2026},
  type   = {Technical report},
  url    = {https://thanatchon36.github.io/bp-from-scratch/paper/}
}

@software{chongmankhong2026bpfromscratch,
  author  = {Chongmankhong, Thanatchon},
  title   = {bp-from-scratch: a NumPy state-vector simulator and a reproducible study of barren plateaus},
  year    = {2026},
  version = {0.2.0},
  doi     = {10.5281/zenodo.23995487},
  url     = {https://doi.org/10.5281/zenodo.23995487}
}

License: MIT, the same as the code.

Downloads last month
85