Commit graph

6 commits

Author SHA1 Message Date
5f8b584210 Add Plan D: three claim-driven experiment notebooks
Plan D structures the material as a scientific argument chain:
- Experiment 1: Can the [[4,2,2]] code protect a magic state? (W=1.0, 12/12 errors)
- Experiment 2: How much magic survives noise? (scoring, parameter sweeps)
- Experiment 3: Can a ratchet learn to optimise? (monotonic improvement, transfer)

Each notebook follows Hypothesis → Claim → Experiment → Proof → Next Hypothesis.
Includes builder script, updated learning objectives, README, and compendium cross-ref.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 19:13:43 +02:00
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
2cce5af994 Fix README: replace absolute local paths with relative links
The two links to hardware.py and four_two_two.py pointed at
/Users/oho/... which GitHub cannot resolve, causing the 404
Octocat page to render on top. Also updated the project tree
to reflect new files (strategies.py, feedback.py, transfer.py,
rung5.yaml, paper/).
2026-04-05 12:37:39 +02:00
51d0e5f26b Add technical paper: 19-page LaTeX document with compiled PDF
Covers the quantum mechanics (stabilisers, witness function, scoring),
the autoresearch engine (ratchet, strategies, lesson feedback, propagation),
all 21 test claims with falsification conditions, and a standalone usage guide.
2026-04-05 12:37:39 +02:00
f9b8f3457f Initial commit: autoresearch-quantum — automated magic-state preparation ratchet
Karpathy-style autoresearch engine for encoded magic-state preparation
on the [[4,2,2]] quantum error-detecting code using Qiskit Aer simulation.

Five-rung progressive search: baseline -> stability -> transfer -> factory -> Rosenfeld.
Smart challenger generation (neighbor walk + random combo + lesson-guided).
Machine-readable lesson feedback with per-dimension effects, interaction detection,
and cross-rung propagation. Factory throughput scoring. Resumable execution.
21 tests, all passing.
2026-04-05 12:37:39 +02:00