Learn track, part B3: scale + Deutsch steps, the 10-step ladder (marker: learn-scale)
TheYuchen
6746262
Step6Scale.tsx — qubit-count stepper 1..30: up to 5 qubits the wall
draws the actual 2^n arrow slots; beyond, a log-scale bar + plain
count with modest anchors (10 a spreadsheet, 20 a photo's pixels,
30 a laptop's RAM — no hype), then the honesty turn as a readout
funnel: 2^n arrows in, n bits out per look; cross-link chips to the
interference and Deutsch steps (StepProps gains optional goToStep).
Step7Deutsch.tsx — the payoff game: seeded mystery coin-rule box;
classical verdict locked until TWO queries; the quantum act stages
the real Deutsch circuit over 4-slot AmpBars (ghost routes on the q0
mix), reads the verdict certain in ONE question, replayable; honesty
card scopes the claim (structure, not universal speed).
LearnLab frame reordered to the final ladder — lean, measure, gates,
phase, interference, Bell (moved unchanged), scale, Deutsch, noise,
certainty; entry copy de-counted (tour/board/TopBar said "six");
docs paragraph updated to the final ladder.
Learn track, part A2: "The hidden direction" (frame step 4 of 7) + Step2 Z upgrade
TheYuchen
ba81ce9
New CircleState.tsx — the honest Bloch slice: a full circle, needle =
current physical state (stateAngle), poles 0/1, sides "fifty-fifty,
plus-way / minus-way"; the key visual is the needle's SHADOW on the
vertical axis with % labels — two different points cast the same
50/50 shadow. Read-only: gates move it, fingers don't.
New Step3Phase.tsx (file names are stage names; the frame's STEPS
array is the only source of order): Act 1 — |+> and |-> prepared via
shown recipes [H] and [X,H] measure as twins (same distribution; the
copy never claims identical counts). Act 2 — one H to both: left
snaps to 0, right to 1, with certainty; a gate separates what
measurement never could. Act 3 — THE SPHERE: pseudo-3D SVG, drag to
rotate around the vertical axis or auto-slow-rotate (reduced-motion
holds a fixed angle), our great circle highlighted with the four
labeled points; the sideways directions are more of the same hidden
dial (phase).
Step2Gates: Z chip ("sign flip — does nothing you can SEE …
Learn from zero, part 2: steps 3-5 + handoff (marker: learn-complete)
TheYuchen
d70dffe
Step3Bell "Two qubits, one fate": the fixed Bell recipe on two wires
(BellRecipe.tsx, read-only SVG), two dials whose needles snap TOGETHER
on every draw, and a 2x2 PairGrid (the Tally idiom folded into the
fourfold table) where only 00/11 ever populate — a certainty claim the
exact sim licenses. "Break the link" swaps CX for H(x)H (NOT mere
deletion, which would pin q1 at 0) so all four cells fill as the
honest independent contrast; both marginal dials read 50% in both
modes — only the joint tally reveals the link.
Step4Noise "Real machines misread": same recipe + grid, a perfect/
noisy machine switch (applyReadoutNoise, seeded) with an eps slider
(0-15%): 01/10 leak warn-tinted counts and the live agreement score
(reported pair == drawn pair; ~88% at 6% noise since both bits must
survive) is fidelity in miniature, bridged to the Noisy simulator
block by name.
Step5Certainty "How many looks is enough?": the noisy agreement score
becomes the estimand, drawn as a live mini funnel in t…
Learn from zero, part 1: exact toy sim + LearnLab frame + steps 0-2 (marker: learn-lab)
TheYuchen
2af5086
lib/quantumToy.ts: tiny EXACT simulator over REAL amplitudes ([a,b] /
[a00..a11]) — exact quantum mechanics for the lesson gate set X/H/CX
(real matrices keep |0...0> in the real subspace), so H·H|0> returns
|0> by sign cancellation and Bell is exactly half/half. Complex phases
are deferred, not denied (module header states the stance); seeded rng
(mulberry32), probs/measureOnce/measureMany/applyReadoutNoise.
Asserted in scripts/check_quantum_toy.test.ts (plain-node lane).
components/LearnLab.tsx: the beginner track BEFORE the guided lessons
— full center-column overlay (same pattern as board/theater, z-30 in
App <main>, both branches), own header (step k of 6, prev/next,
progress dots, ×), progress in localStorage quda.learnLabStep. Copy
rules enforced by the frame: one bold idea sentence + one guiding
line + one interactive per step; percentages only, no formulas.
components/learn/: Dial (semicircular lean control — drag, keyboard,
snap-to-pole collapse animation), Tally (counts_to…