Commit graph

2 commits

Author SHA1 Message Date
90c3094f98 Add companion compendium (36-page textbook) and rewrite learning objectives
- paper/compendium.tex + compendium.pdf: gentle textbook covering all
  background for the notebook series — qubits, gates, magic states,
  [[4,2,2]] code, stabilisers, error detection, ancilla measurement,
  witness formula, noise, transpilation, scoring, ratchet optimisation,
  lesson extraction, transfer evaluation. Includes glossary, math
  appendix, and notebook cross-reference table.
- notebooks/learning_objectives.md: rewritten with balanced per-section
  tables for all three plans (Plans B and C were previously stubs).
2026-04-07 17:32:45 +02:00
e13a3268c2 Add teaching notebooks, widget-based quizzes, bug fixes, and expanded tests
- 8 Jupyter notebooks across 3 learning plans (A: bottom-up, B: spiral, C: parallel tracks)
- Teaching toolkit (src/autoresearch_quantum/teaching/) with ipywidgets-based
  quiz, predict_choice, reflect, and order widgets — visually distinct from code cells
- Fix spectator_z operator: was {1:'Z',2:'Z'} (IZZI, expectation=0), now {1:'Z',3:'Z'}
  (ZIZI, expectation=+1 for ideal T-state, commutes with logical operators)
- Fix u_magic seed: swap phase arguments to match h_p and ry_rz preparations
- Fix double-display bug: widgets rendered twice when function returned the box
- Fix CLI override parser for negative integers and missing '=' validation
- Fix stabilizer detection quiz: ZZZZ detects X errors, not Z errors
- Add ties parameter to order() for questions with interchangeable items
- Expand test suite from 21 to 107 tests
- Update README with notebook instructions and project tree
2026-04-07 17:14:37 +02:00