509 Spin Value

The spin of an electron is said to take two values, up and down. The claim stands on the Stern–Gerlach experiment, where a beam of atoms deposited on a plate was grouped into two spots. It carries the “2” in the shell capacity \(2n^2\), the Pauli exclusion principle, and the 0 and 1 of a qubit. No raw record of a Stern–Gerlach deposition or of a spin-separated atom cloud was found in four public repositories (figshare, Dataverse, Zenodo, Dryad); the records named after the experiment were simulations or papers. The modern form of the same measurement is the single-shot readout of a two-level system, where the state is read from a detector signal and grouped into two outcomes. That record is public, and it is taken apart here.

509.0.1 Data

The record is the dataset of “Single-shot readout of a superconducting qubit using a thermal detector” (Zenodo, record 7773981; arXiv:2303.03668). A superconducting qubit is prepared either without or with a \(\pi \) pulse and read out through a bolometer. The file bolometer-characterization-timetrace-76.nc holds, for each of the two preparations, 1000 shots. Each shot is a complex detector voltage sampled at 781 times over \(50~\mu \)s. These are the raw single-shot traces from which the authors’ histograms and fidelity are made.

509.0.2 The chain

layer what it is what it adds here
R0 complex voltage per shot per time sample – read
R1 integrated value a time window 36 windows
R2 rotated value an angle in the complex plane 24 angles
R3 one number per shot projection, magnitude or rank 3 readings
R4 histogram, two Gaussians bins, a two-state model number of states chosen by BIC
R5 0 or 1 a demarcation threshold best threshold per premise
R6 “spin up / down”, qubit the two-valued state tested as R4–R5
Table 470: From the detector voltage to a two-valued state. The authors’ code chooses the window, the angle and the threshold that maximise the fidelity.
509.0.3 Every premise at once

Every combination of 36 integration windows (six starts \(\times \) six lengths), 24 rotation angles and three readings was built, 936 premises in all. In each, the threshold that best separates the two preparations was found, and every shot was called 0 or 1.

premises 936
fidelity, median 0.471
fidelity, range 0.031 to 0.610
shots whose call changes under some premise \(100\%\)
calls against the majority of premises \(12.3\%\)
the same, best \(10\%\) of premises only: shots that change \(21.6\%\)
the same, best \(10\%\) of premises only: calls against the majority \(2.8\%\)
Table 471: Fidelity and calls across the 936 premises.

The fidelity is not a property of the record. It runs from \(0.03\) to \(0.61\) with the window, the angle and the reading, and the reported value is the maximum over these choices. Every one of the 2000 shots is called 0 under some premise and 1 under another. Even among the best tenth of premises, one shot in five changes its call.

509.0.4 How many values?

The labels of the preparations were then thrown away, and the record alone was asked how many values it holds. A Gaussian mixture with one to four components was fitted to the pooled shots, and the number was chosen by the Bayesian information criterion.

number of values
integrated value, 120 premises: \(k=1\) \(4\%\)
integrated value, 120 premises: \(k=2\) \(24\%\)
integrated value, 120 premises: \(k=3\) \(47\%\)
integrated value, 120 premises: \(k=4\) \(24\%\)
complex plane (two dimensions) 4
whole traces, 2 principal components 5
whole traces, 5 principal components 6
whole traces, 10 principal components 4
whole traces, 20 principal components 2
null: time order of each trace shuffled 2
Table 472: Number of values chosen by the record when the preparation labels are removed.

The record does not pick two. With the labels removed, two values are chosen in less than a quarter of the premises; three are chosen twice as often. In the complex plane the shots fall into four groups, and the whole traces give two to six groups depending on how many components are kept. Two groups are also what the null gives, when the time order inside every trace is shuffled. “Two values” is therefore what is obtained with the two preparation labels, one window, one angle and one threshold.

509.0.5 What is fixed by the record

fixed by the record put in
the two preparations differ yes (fidelity above 0 in every premise) –
how well they differ – window, angle, reading (fidelity \(0.03\)–\(0.61\))
0 or 1 for a shot – every shot changes under some premise
two values – labels removed: \(k = 2\) in \(24\%\) only
one preparation, one value – one group in \(8\%\) and \(4\%\) of premises
Table 473: What the readout traces fix and what the analysis puts in.

The record fixes that the two settings of the apparatus leave different traces, but it does not separate that difference from the drift of the record with time. It does not fix how different the two traces are, nor which shot is 0 and which is 1. With the labels removed, it does not give two values, and inside one label it does not give one. The “two” of the two-valued spin is the number of settings of the experiment, not a number the detector returns. The “2” of \(2n^2\) and the 0 and 1 of a qubit enter with these settings and with the choice of window, angle and threshold.

pict

Figure 483: (a) Raw traces: one shot and the mean of each preparation. (b) Fidelity over the 936 premises; the dashed line is the maximum, the value usually reported. (c) Fidelity against rotation angle in the best window. (d) Integrated shots in the complex plane, coloured by preparation. (e) Number of values chosen by BIC with the labels removed. (f) For each shot, the fraction of premises that call it against the majority.

509.1 How many values inside one preparation?

If a preparation fixed one value, its shots would form one group. Each preparation was taken alone, its label kept, and the number of groups among its own shots was chosen by the Bayesian information criterion over 252 premises (36 windows, six angles and the complex plane).

one two three four
preparation 0 (no pulse) \(8\%\) \(59\%\) \(33\%\) \(1\%\)
preparation 1 (\(\pi \) pulse) \(4\%\) \(14\%\) \(52\%\) \(30\%\)
Table 474: Number of groups inside each preparation, over 252 premises.

A single preparation is one group in \(8\%\) and \(4\%\) of the premises. The shots of the unpulsed preparation fall mostly into two or three groups, those of the pulsed preparation mostly into three or four. The spread inside a preparation may come from shots that look like the other outcome or from the drift with time found above; the file cannot tell the two apart. Either way, one preparation is not one value.

pict

Figure 484: (a) Fraction of the 3444 tests per pair with \(p<0.05\): the two preparations, the two halves of each preparation in shot order, and random halves of all shots; the dotted line is the nominal \(0.05\). (b) The same by measure. (c) Number of groups inside each preparation over 252 premises. (d) One premise: the integrated value of each preparation alone, with the mixture its own BIC selects.
Data and code

The data are bolometer-characterization-timetrace-76.nc from Zenodo record 7773981. readout_unbuild.py builds the 936 premises, the calls and the label-free counts, and writes readout_unbuild.json. fig_readout.py draws the figure.

509.2 Every platform ends at the same two layers

Qubit technologies differ in physics but converge at readout: a continuous detector signal is reduced to one number, and that number is cut by a threshold into \(0\) or \(1\).

platform

companies

how \(0/1\) is read

what was tested here

superconducting

IBM, Google, Rigetti

complex microwave voltage (IQ) \(\to \) window, angle, boundary

Aalto readout, from the raw trace

neutral atom

QuEra, Pasqal, Atom Computing

tweezer fluorescence on a camera \(\to \) ROI sum, threshold

Sr tweezer images, from the camera values

trapped ion

IonQ, Quantinuum

photon counts, bright or dark \(\to \) threshold

no public raw data found; structurally identical to the tweezer case

photonic

PsiQuantum, Xanadu

single-photon detector click \(\to \) threshold

double-slit camera, where every stored value was already \(1\)

silicon spin / quantum dot

Intel, Diraq

time-domain current from an adjacent charge sensor \(\to \) threshold

structurally identical to the Aalto case

topological (Majorana)

Microsoft

quantum capacitance signal \(\to \) threshold

structurally identical

The trapped-ion case needs no separate treatment. An ion that fluoresces under the laser is called \(1\) and one that stays dark is called \(0\), which is photon counts cut at a threshold — the same layer as the tweezer images, where fluorescence is summed over a region and compared against a boundary. No raw photon-count release was located.

Whatever the platform, two layers are always inserted at the end:

1

reduce a continuous detector signal to a single number (window, sum, angle)

2

cut that number at a threshold to produce \(0\) or \(1\)

Three platforms — superconducting, neutral atom, photonic — were taken from the raw record through both layers. In all three the \(0/1\) was produced by those choices.

509.3 Unbuilding a Wave

The two-slit pattern is the standard picture of a wave: single detection events pile up into fringes, and the fringes are described by the two-slit formula, an envelope \(\mathrm {sinc}^2\) times a \(\cos ^2\) modulation. Here the formula is not assumed. The detection events are taken from the raw camera frames, and the formula is set against fourteen descriptions that contain no wave, under every premise of the comparison: the axis, the region, the split into fitting and testing events, the model family, its resolution, and the criterion.

509.3.1 Data

The record is the archive of “Video recording of true single-photon double-slit interference” (R. S. Aspden, M. J. Padgett, G. C. Spalding; University of Glasgow, 2016; DOI 10.5525/gla.researchdata.281). Photon pairs are produced from a 355 nm laser; one photon of a pair is detected by a single-photon avalanche diode, and that detection gates an intensified camera (Andor iStar) that records the other photon after a double slit. The two heralded-diffraction series of the archive, labelled SM and MM, are used. Each frame is a \(512\times 512\) image; SM has 4070 frames and MM 1500. A detection event is a pixel that is set in a frame, and its position is the column of the pixel. SM holds 40,110 events (9.9 per frame) and MM 589,498 (393 per frame); no pixel is set more than once in a frame.

Remark 509.1. The camera frames of this archive are not raw. According to its documentation, each frame was “thresholded to remove background noise and binarised to enable photon counting” before it was stored, and a frame is recorded only when the heralding detector fires. The single-photon event, a pixel that is either set or not, is therefore made by a threshold applied by the authors, and the frames that exist are selected by a coincidence. The intensities before the threshold are not in the archive. The comparison below starts from the binarised events and cannot reach below them.

509.3.2 The pixel grid

A first comparison used the pixel column as the position. The kernel density with a cross-validated width then won by a wide margin (\(-1.88\) against \(-1.07\) bits per event in SM, \(-0.77\) against \(-0.07\) in MM), and the Fourier series of the highest order took the remaining wins. All events lay on 512 points; a narrow kernel learned the grid, and fitting and testing events shared it. That comparison measured how well a model memorises the pixel grid, not how well it describes the pattern. Each position was therefore spread uniformly over its pixel (\(\pm 0.5\) column, fixed seed), which removes the grid and leaves every structure coarser than a pixel. After this, the 589,498 MM events take 589,498 distinct positions.

509.3.3 Every premise at once

premise choices
region wide, mid, centre
split into fitting and testing events odd/even frames, early/late frames, three random splits
axis straight, and 20 random monotone warps
criterion held-out bits per event, BIC, AIC
wave W1 two-slit formula (\(\mathrm {sinc}^2 \cos ^2\), 4 parameters)
W2 free envelope \(\times \cos ^2\)
P1 free envelope \(\times (1 + V\cos )\)
no wave S cubic spline, 16 / 64 / 256 / 512 knots
F Fourier series, \(K\) = 8 / 32 / 128 / 256
G Gaussian mixture, 4 / 16 / 64 components
K kernel density, width by cross-validation
Table 475: Premises of the comparison. 15 rebuilds on the straight axis and 20 on warped axes per series, each fitting all 15 models.

A model is tied with the best when its held-out cost is within two standard errors of the lowest.

SM
MM
model bits/event tied rank bits/event tied rank
F Fourier \(K=8\) \(-1.0828\) \(1.00\) 1 \(-0.0709\) \(1.00\) 4
F Fourier \(K=32\) \(-1.0798\) \(1.00\) 3 \(-0.0707\) \(1.00\) 4
K kernel \(-1.0784\) \(1.00\) 4 \(-0.0674\) \(0.07\) 10
S spline 64 \(-1.0736\) \(1.00\) 5 \(-0.0711\) \(1.00\) 3
S spline 16 \(-1.0059\) \(0.67\) 8 \(-0.0715\) \(1.00\) 1
G mixture 64 \(-1.0756\) \(0.87\) 6 \(-0.0660\) \(0.00\) 11
P1 envelope \(\times (1+V\cos )\) \(-1.0138\) \(0.33\) 14 \(-0.0711\) \(1.00\) 2
W2 envelope \(\times \cos ^2\) \(-1.0232\) \(0.00\) 13 \(-0.0473\) \(0.00\) 13
W1 two-slit wave \(-1.0493\) \(0.00\) 13 \(-0.0369\) \(0.00\) 14
Table 476: Straight axis, 15 rebuilds per series: median held-out bits per event (lower is better), fraction of rebuilds tied with the best, median rank among 15 models. Models not listed rank between these.

criterion SM winners (15 rebuilds) MM winners (15 rebuilds)
held-out bits F \(K{=}8\) \(\times 9\), P1 \(\times 4\), F \(K{=}32\) \(\times 2\) S 16 \(\times 12\), P1 \(\times 3\)
BIC F \(K{=}8\) \(\times 10\), P1 \(\times 5\) P1 \(\times 12\), S 16 \(\times 3\)
AIC F \(K{=}128\) \(\times 10\), P1 \(\times 5\) S 16 \(\times 9\), F \(K{=}32\) \(\times 4\), S 64 \(\times 2\)
W1 on 20 warped axes rank 12 (10–14), never best rank 14 (13–15), never best
Table 477: Winners by criterion, and the two-slit formula on warped axes.

The two-slit formula is never tied with the best, in either series, on the straight axis or on any of the 20 warped axes. Descriptions with no wave in them, a Fourier series of eight terms, a spline of 16 or 64 knots and a kernel density, are tied with the best in every rebuild of SM, and the spline and the Fourier series are tied in every rebuild of MM. A periodic modulation is useful in MM: an envelope of any shape times \(1 + V\cos \) is tied with the best in every rebuild and wins under BIC in 12 of 15. In SM it is tied in a third of the rebuilds. Which description wins changes with the criterion: under the held-out cost it is a Fourier series or a spline, under BIC the modulated envelope in MM, under AIC a Fourier series of 128 terms in SM.

509.3.4 What is fixed by the record

fixed by the record put in
a single event (0 or 1 per pixel) – the authors’ threshold and binarisation
which frames exist – the heralding coincidence
position of an event the pixel column within the pixel: spread uniformly
a smooth distribution of events yes, many descriptions tie which description
a periodic modulation useful in MM (tied \(100\%\)), not in SM (\(33\%\)) –
the two-slit formula never tied with the best (rank 13–14 of 15) the wave
the two-slit formula, warped axes never best in 20 warps –
the winner – the criterion (bits, BIC, AIC)
Table 478: What the binarised detection events fix and what processing and description put in.

The events fix a distribution, and in MM a periodic modulation of it. They do not single out a wave: the two-slit formula is worse than descriptions that contain no wave, and the modulation that helps is a cosine on an envelope of any shape, no better than a 16-knot spline. The wave is one description of the record, chosen before the record is read.

pict

Figure 485: (a) Positions of the binarised detection events, spread uniformly within their pixel. (b, c) Median held-out cost above the best model on the straight axis, with the fraction of rebuilds tied with the best; red: two-slit wave models, orange: free envelope \(\times (1+V\cos )\), grey: descriptions with no wave. (d) Rank of the two-slit formula among 15 models on 20 warped axes. (e1, e2) The pixel grid: with the pixel column as position, the kernel density and the highest Fourier order win by memorising the grid; with positions spread within the pixel the advantage disappears.
Data and code

The camera frames come from the heralded-diffraction series SM and MM of Video_data.zip (DOI 10.5525/gla.researchdata.281) and were stacked as slit_SM_frames.npy and slit_MM_frames.npy.