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 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…