Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
q
list
s
list
p
list
film_thickness
float32
20
800
film_roughness
float32
0
40
oxide_thickness
float32
0
15
delta_xx
float32
-0.01
0.01
delta_zz
float32
-0.01
0.01
beta_xx
float32
0
0.01
beta_zz
float32
0
0.01
E
float64
200
500
[ 0.004956488963216543, 0.006384420674294233, 0.006861611735075712, 0.007821362465620041, 0.010049660690128803, 0.011890947818756104, 0.014740602113306522, 0.015110189095139503, 0.017101334407925606, 0.019986344501376152, 0.020630478858947754, 0.022201772779226303, 0.024260321632027626, 0.02...
[ 0.7050805687904358, 0.6371802091598511, 0.6159225106239319, 0.5751999616622925, 0.49027153849601746, 0.42914533615112305, 0.34839630126953125, 0.3390267491340637, 0.2924468219280243, 0.2354152798652649, 0.22418621182441711, 0.19886399805545807, 0.16975349187850952, 0.1567733734846115, 0....
[ 0.35574421286582947, 0.48513713479042053, 0.5236639380455017, 0.5907317996025085, 0.6926350593566895, 0.7280585169792175, 0.7016773819923401, 0.6892962455749512, 0.5683860778808594, 0.2737603187561035, 0.2555982768535614, 0.33946526050567627, 0.4713330864906311, 0.48727333545684814, 0.21...
792.174377
5.679816
5.479882
-0.000345
-0.001787
0.004641
0.000012
432.186815
[ 0.002985975705087185, 0.0030975521076470613, 0.005664172116667032, 0.008272198960185051, 0.008521909825503826, 0.009134110994637012, 0.012236232869327068, 0.013055581599473953, 0.013507505878806114, 0.014430545270442963, 0.014879073947668076, 0.015480023808777332, 0.017176857218146324, 0.0...
[ 0.9013988971710205, 0.8977771401405334, 0.8132291436195374, 0.7194669246673584, 0.7097001671791077, 0.684927225112915, 0.5312971472740173, 0.47816208004951477, 0.44543758034706116, 0.369441419839859, 0.3275749981403351, 0.26649510860443115, 0.09183240681886673, 0.07632753998041153, 0.060...
[ 0.634409487247467, 0.623485803604126, 0.4123539328575134, 0.2608177363872528, 0.2490190714597702, 0.2218870371580124, 0.11899405717849731, 0.09989827126264572, 0.09050571918487549, 0.07348508387804031, 0.06613398343324661, 0.05711350962519646, 0.03635251522064209, 0.03425470367074013, 0....
563.021057
21.161091
12.144658
0.001069
0.000367
0.000289
0.001028
331.663532
[ 0.005671807564795017, 0.00604298384860158, 0.00890408270061016, 0.00931603740900755, 0.009719300083816051, 0.010826673358678818, 0.01827484555542469, 0.018589701503515244, 0.020187022164463997, 0.02055743895471096, 0.020768405869603157, 0.021152840927243233, 0.022523842751979828, 0.0235792...
[ 0.8415672183036804, 0.8294793963432312, 0.7170670628547668, 0.6970931887626648, 0.6763728260993958, 0.6130583882331848, 0.26146817207336426, 0.2706073522567749, 0.33862540125846863, 0.3567725718021393, 0.3671182692050934, 0.38574138283729553, 0.44581568241119385, 0.48158735036849976, 0.5...
[ 0.6424603462219238, 0.6252452731132507, 0.5117063522338867, 0.49769893288612366, 0.48444288969039917, 0.45005175471305847, 0.24371686577796936, 0.23436495661735535, 0.18533186614513397, 0.17366765439510345, 0.16699844598770142, 0.15482138097286224, 0.1118854358792305, 0.08078834414482117, ...
384.596893
13.433095
8.106194
-0.002272
-0.004161
0.000067
0.0009
457.579376
[ 0.00603822385892272, 0.007166048511862755, 0.008095595054328442, 0.009590777568519115, 0.011136515997350216, 0.01815621741116047, 0.022117657586932182, 0.02413134090602398, 0.024314749985933304, 0.0250206608325243, 0.02933265082538128, 0.03199787437915802, 0.0330723412334919, 0.03670674934...
[ 0.9376673102378845, 0.9259382486343384, 0.9161704182624817, 0.900196373462677, 0.8832231163978577, 0.7950432896614075, 0.7290491461753845, 0.6862631440162659, 0.6819062232971191, 0.6642477512359619, 0.5065872669219971, 0.3353698253631592, 0.2619287669658661, 0.1141437292098999, 0.0733556...
[ 0.8107245564460754, 0.7776088714599609, 0.7505588531494141, 0.7072970271110535, 0.6625880599021912, 0.4498906135559082, 0.3159814178943634, 0.24607984721660614, 0.23984989523887634, 0.21633514761924744, 0.10321716964244843, 0.06412075459957123, 0.05370623618364334, 0.030170690268278122, ...
787.801575
4.298749
13.153976
0.002982
0.001904
0.000507
0.000945
409.210409
[ 0.003203074913471937, 0.00448022224009037, 0.005332819651812315, 0.006065735127776861, 0.0068608978763222694, 0.00767490966245532, 0.008270838297903538, 0.008385216817259789, 0.010006877593696117, 0.01103560347110033, 0.011091507971286774, 0.015735149383544922, 0.015772735700011253, 0.0192...
[ 0.3628411889076233, 0.24182389676570892, 0.18537980318069458, 0.14880907535552979, 0.11922969669103622, 0.09778962284326553, 0.08673526346683502, 0.08500204235315323, 0.07113558053970337, 0.06991767883300781, 0.06996430456638336, 0.07915078103542328, 0.07908027619123459, 0.0547730028629303...
[ 0.4900663197040558, 0.3787016272544861, 0.32329097390174866, 0.2850865423679352, 0.2515345513820648, 0.22391706705093384, 0.20707902312278748, 0.20411808788776398, 0.16896842420101166, 0.15081161260604858, 0.14987123012542725, 0.07089389115571976, 0.07022969424724579, 0.018494024872779846,...
322.796478
17.681896
2.745844
-0.000673
-0.001631
0.001313
0.0015
228.253204
[ 0.0058476789854466915, 0.006760717369616032, 0.0086112841963768, 0.009485944174230099, 0.009827711619436741, 0.010977812111377716, 0.018128542229533195, 0.019147425889968872, 0.01969057135283947, 0.01972086727619171, 0.02053022012114525, 0.022622641175985336, 0.026311377063393593, 0.026678...
[ 0.863222599029541, 0.8432268500328064, 0.8035653233528137, 0.7851778864860535, 0.7780494093894958, 0.7542750239372253, 0.6116909980773926, 0.591812014579773, 0.5812337398529053, 0.5806440114974976, 0.5648981928825378, 0.5242169499397278, 0.4522417485713959, 0.44504642486572266, 0.4141075...
[ 0.9275625944137573, 0.9164093732833862, 0.8937472701072693, 0.8829714059829712, 0.8787443041801453, 0.8644298911094666, 0.7695000767707825, 0.754607617855072, 0.7464640736579895, 0.7460057735443115, 0.7335609793663025, 0.6994567513465881, 0.6299344897270203, 0.6221359372138977, 0.5862923...
502.926697
8.411291
2.503674
0.003315
0.002727
0.001966
0.000634
492.686705
[ 0.0038116476498544216, 0.004778959788382053, 0.009057305753231049, 0.014940829016268253, 0.01997820846736431, 0.021148698404431343, 0.021261008456349373, 0.022674137726426125, 0.030807431787252426, 0.03406795114278793, 0.03633607551455498, 0.04268929362297058, 0.04327262192964554, 0.043643...
[ 0.037552475929260254, 0.0025642341934144497, 0.3226913809776306, 0.6953030824661255, 0.7667896747589111, 0.7621015310287476, 0.7611985206604004, 0.7419899702072144, 0.18133173882961273, 0.175948828458786, 0.23703621327877045, 0.16792672872543335, 0.14644064009189606, 0.13239271938800812, ...
[ 0.9185170531272888, 0.9052314758300781, 0.8605884909629822, 0.6922419667243958, 0.48703551292419434, 0.5129038691520691, 0.5159470438957214, 0.5510188937187195, 0.24913057684898376, 0.13582265377044678, 0.1302291303873062, 0.0526544488966465, 0.044018346816301346, 0.03912947699427605, 0....
504.038513
0.429764
11.700644
-0.004167
-0.001067
0.000036
0.000008
428.341911
[ 0.003997680265456438, 0.004421437159180641, 0.005768653471022844, 0.010808800347149372, 0.010876724496483803, 0.012051179073750973, 0.01486601959913969, 0.01499854028224945, 0.016681503504514694, 0.017835889011621475, 0.01935611292719841, 0.021081365644931793, 0.024823341518640518, 0.02493...
[ 0.5515716075897217, 0.518879771232605, 0.42937999963760376, 0.2394232302904129, 0.23801372945308685, 0.217122882604599, 0.18834853172302246, 0.1875533163547516, 0.1803690791130066, 0.17762836813926697, 0.17510703206062317, 0.17161248624324799, 0.15057745575904846, 0.14952288568019867, 0....
[ 0.6902732849121094, 0.6636022329330444, 0.5853239893913269, 0.364357054233551, 0.3620159327983856, 0.32374945282936096, 0.2472185641527176, 0.2440847009420395, 0.2075023353099823, 0.1855875551700592, 0.16022509336471558, 0.1357094645500183, 0.09533167630434036, 0.094364233314991, 0.06012...
259.91333
15.090407
4.292646
-0.002673
-0.001096
0.00111
0.003534
435.819292
[ 0.003985565155744553, 0.006106994114816189, 0.006631829775869846, 0.007845809683203697, 0.007924369536340237, 0.008881709538400173, 0.010130871087312698, 0.011106283403933048, 0.013437043875455856, 0.01456850953400135, 0.016394691541790962, 0.017009930685162544, 0.017992857843637466, 0.019...
[ 0.7482659220695496, 0.6798234581947327, 0.6668159365653992, 0.6395595073699951, 0.6378709673881531, 0.6173855662345886, 0.5894253253936768, 0.5653091669082642, 0.49567240476608276, 0.4554885923862457, 0.38507339358329773, 0.361081063747406, 0.3240867555141449, 0.28648170828819275, 0.2574...
[ 0.3543846905231476, 0.22718432545661926, 0.20876358449459076, 0.180722177028656, 0.17951373755931854, 0.1697135716676712, 0.16818439960479736, 0.17345093190670013, 0.19815054535865784, 0.2114122062921524, 0.22762523591518402, 0.23065659403800964, 0.23233382403850555, 0.2293679267168045, ...
283.459259
35.927082
5.690938
-0.001921
-0.000078
0.000123
0.000283
238.43409
[ 0.0041262488812208176, 0.0051374249160289764, 0.008054129779338837, 0.008755093440413475, 0.011777380481362343, 0.011791637167334557, 0.015589882619678974, 0.01568097434937954, 0.018672669306397438, 0.020084204152226448, 0.022036712616682053, 0.022322336211800575, 0.023592891171574593, 0.0...
[ 0.9231588840484619, 0.9040820002555847, 0.8459680080413818, 0.8308959007263184, 0.7569312453269958, 0.7565343379974365, 0.6185950040817261, 0.614059329032898, 0.3878385126590729, 0.22505371272563934, 0.13833966851234436, 0.12118112295866013, 0.033890534192323685, 0.029588468372821808, 0....
[ 0.991859495639801, 0.9898300170898438, 0.9838145971298218, 0.9823192358016968, 0.9755498170852661, 0.9755163192749023, 0.9658968448638916, 0.9656446576118469, 0.9565804600715637, 0.9516128897666931, 0.9436637759208679, 0.9423674941062927, 0.9360596537590027, 0.9313937425613403, 0.9267993...
789.895996
21.727917
5.700412
0.001628
0.004688
0.000292
0.000132
335.115781
[ 0.0034549892880022526, 0.007407656405121088, 0.01106780581176281, 0.011348056606948376, 0.01295531913638115, 0.013410156592726707, 0.014807694591581821, 0.015350916422903538, 0.017173616215586662, 0.02076372504234314, 0.021895546466112137, 0.024855319410562515, 0.03304723650217056, 0.03637...
[ 0.8146405816078186, 0.6231699585914612, 0.4451103210449219, 0.43098127841949463, 0.3482411801815033, 0.32440486550331116, 0.2513796091079712, 0.22389347851276398, 0.14314143359661102, 0.046659719198942184, 0.034251242876052856, 0.025239909067749977, 0.001769634778611362, 0.0062990435399115...
[ 0.8994060754776001, 0.7887783050537109, 0.6823221445083618, 0.6737421751022339, 0.6226864457130432, 0.6075569987297058, 0.5586779713630676, 0.5385341644287109, 0.46501338481903076, 0.28708088397979736, 0.2261853963136673, 0.10259030014276505, 0.018488863483071327, 0.006597193423658609, 0...
750.239929
21.122307
0.760511
0.001318
0.002446
0.000705
0.000824
311.239407
[ 0.009548142552375793, 0.011034972965717316, 0.01361626386642456, 0.017035502940416336, 0.02295883558690548, 0.023708289489150047, 0.023783113807439804, 0.02520264871418476, 0.027812352403998375, 0.028662150725722313, 0.029381969943642616, 0.03131582587957382, 0.03591085225343704, 0.0370460...
[ 0.4214726686477661, 0.39583051204681396, 0.3682987689971924, 0.3470883071422577, 0.29064908623695374, 0.27787598967552185, 0.27650782465934753, 0.24726231396198273, 0.17845380306243896, 0.15329422056674957, 0.1319149136543274, 0.0798802375793457, 0.021078048273921013, 0.017019087448716164,...
[ 0.5655598044395447, 0.5615905523300171, 0.5626834034919739, 0.5630403757095337, 0.5097163319587708, 0.49424782395362854, 0.4925610423088074, 0.45528891682624817, 0.3586317002773285, 0.3198004961013794, 0.2850944399833679, 0.19287902116775513, 0.06588410586118698, 0.05319191887974739, 0.0...
155.319214
3.185153
8.33622
-0.001213
-0.000981
0.000555
0.000159
478.029497
End of preview. Expand in Data Studio

Polarized Soft X-Ray Reflectivity Dataset (reflectivity-1m)

Synthetic polarized soft X-ray reflectivity (s and p channels) simulated with refloxide for uniaxial anisotropic thin films on native-oxide silicon:

vacuum | anisotropic film | SiO2 oxide | Si substrate

Each curve mimics an experimental angle scan at an arbitrary soft X-ray photon energy: 256 random grazing angles θ ∈ [0.5°, 65.0°] are drawn and sorted ascending, evaluated at a randomized photon energy E ∈ [200, 500] eV, and cast into momentum transfer q = (4π / λ) sin θ (1/Å). Photon energy is omitted from the saved labels so downstream models learn an energy-invariant mapping from (q, R_s, R_p) to structural and Cartesian uniaxial optical tensor parameters (delta_xx, delta_zz, beta_xx, beta_zz).


Example Sample

Example s/p reflectivity curves and uniaxial optical-constant depth profile

Top: simulated s- and p-polarized power reflectivity R_s(q) and R_p(q) sampled at 256 random grazing angles and cast to q. Bottom: corresponding erf-smoothed uniaxial refractive-index depth profile (1 - n = δ - iβ) showing in-plane (δ_xx, β_xx) and out-of-plane (δ_zz, β_zz) components across the vacuum | film | oxide | silicon interfaces.


Dataset Distributions (1,000,000 Curves · 256,000,000 Points)

Structural & Optical Parameter Priors

Sampling proceeds in two stages so every interface remains strictly inside the Nevot–Croce validity regime (thickness ≥ 2π · roughness): film and native oxide thicknesses are drawn first, followed by film roughness capped at min(40 Å, t_film / 2π) and oxide roughness coupled via σ_oxide = t_oxide / 2π. Uniaxial optical constants are drawn in polar form (component_xx = magnitude · cos(angle), component_zz = magnitude · sin(angle)) and stored directly as Cartesian tensor components (delta_xx, delta_zz, beta_xx, beta_zz).

Parameter and optical tensor distributions across 1,000,000 samples

Sampled q Grid & Fresnel-Compensated R · q⁴ Densities

Uniform sampling over (θ, E) produces dense coverage at low-to-intermediate q with a smooth high-q tail out to ~0.46 Å⁻¹, while p polarization exhibits broader dynamic range than s polarization due to Brewster-angle and birefringent contrast.

Sampled q distribution and Fresnel-compensated R * q^4 joint densities


Schema & Storage Layout

  • Total rows: 1,000,000 across 10 Parquet shard(s) (data/train-*.parquet). All rows are stored in a single train split so train/validation/test splits can be chosen post-hoc.
  • Substrate constants: Si (ρ = 2.33 g/cm³, σ = 1.2 Å), SiO2 (ρ = 2.2 g/cm³, σ_oxide = t_oxide / 2π).
  • Optimized datatypes: Non-nullable FixedSizeList(float32, 256) curves + float32 scalars encoded with BYTE_STREAM_SPLIT + ZSTD—eliminating per-row list-offset and validity-bitmap overhead while preserving 38 decades of dynamic range (where float16 underflows below `6e-8`).
Column Arrow Type Units / Range Description
q fixed_size_list<float32>[256] 1/Å Ascending momentum transfer grid cast from (θ, E)
s fixed_size_list<float32>[256] power reflectance s-polarized reflectivity R_s(q)
p fixed_size_list<float32>[256] power reflectance p-polarized reflectivity R_p(q)
film_thickness float32 Å, [20.0, 800.0] Anisotropic film thickness t_film
film_roughness float32 Å, [0.0, min(40.0, t_film / 2π)] Vacuum/film RMS roughness σ_film (Nevot–Croce capped)
oxide_thickness float32 Å, [0.0, 15.0] Native SiO2 thickness t_oxide (σ_oxide = t_oxide / 2π)
delta_xx float32 [-5.0e-03, 5.0e-03] In-plane (ordinary) dispersion δ_xx = δ cos α
delta_zz float32 [-5.0e-03, 5.0e-03] Out-of-plane (extraordinary) dispersion δ_zz = δ sin α
beta_xx float32 [0.0, 5.0e-03] In-plane (ordinary) absorption β_xx = β cos γ
beta_zz float32 [0.0, 5.0e-03] Out-of-plane (extraordinary) absorption β_zz = β sin γ
E float64 eV Photon energy the curve was simulated at (constant in fixed-q datasets, random in variable-q ones)

Loading the Data

Polars -> Contiguous float32 NumPy / PyTorch Arrays

Because q, s, and p are stored as fixed-size non-nullable float32 arrays, Polars materializes them directly into C-contiguous (N, 256) tensors:

import numpy as np
import polars as pl

LABEL_COLS = [
    "film_thickness",
    "film_roughness",
    "oxide_thickness",
    "delta_xx",
    "delta_zz",
    "beta_xx",
    "beta_zz",
]

df = pl.read_parquet("hf://datasets/carbon-lab/reflectivity-1m/data/train-*.parquet")

q = df["q"].to_numpy()  # (1_000_000, 256) float32, C-contiguous
s = df["s"].to_numpy()  # (1_000_000, 256) float32, C-contiguous
p = df["p"].to_numpy()  # (1_000_000, 256) float32, C-contiguous

inputs = np.stack([s, p, q], axis=1)        # (1_000_000, 3, 256) float32
targets = df.select(LABEL_COLS).to_numpy()  # (1_000_000, 7) float32

Hugging Face datasets (with Post-Hoc Train/Validation Split)

from datasets import load_dataset

ds = load_dataset("carbon-lab/reflectivity-1m", split="train").with_format("torch")
splits = ds.train_test_split(test_size=0.1, seed=42)
train_ds, val_ds = splits["train"], splits["test"]

batch = train_ds[:64]
q, s, p = batch["q"], batch["s"], batch["p"]  # each torch.float32 of shape (64, 256)

Streaming Batches with PyArrow (Low Memory)

from huggingface_hub import snapshot_download
import pyarrow.dataset as ds

local_dir = snapshot_download(
    repo_id="carbon-lab/reflectivity-1m",
    repo_type="dataset",
    allow_patterns="data/train-*.parquet",
)

dataset = ds.dataset(f"{local_dir}/data", format="parquet")
for record_batch in dataset.to_batches(batch_size=4096):
    q = record_batch["q"].values.to_numpy().reshape(-1, 256)
    s = record_batch["s"].values.to_numpy().reshape(-1, 256)
    p = record_batch["p"].values.to_numpy().reshape(-1, 256)
Downloads last month
167