Skip to content

Refactor/cleanup separators and wasm#36

Merged
splch merged 3 commits intomainfrom
refactor/cleanup-separators-and-wasm
Mar 24, 2026
Merged

Refactor/cleanup separators and wasm#36
splch merged 3 commits intomainfrom
refactor/cleanup-separators-and-wasm

Conversation

@splch
Copy link
Copy Markdown
Owner

@splch splch commented Mar 24, 2026

No description provided.

splch added 2 commits March 23, 2026 16:31
…mplify code

Remove all // ---------, // --- X ---, and /* --- X --- */ decorative
separator comments project-wide. Add new WASM bindings (quantum walk,
entanglement entropy, partial trace, marginal distribution, channel
Bloch image). Simplify Go code: eliminate redundant map allocations in
entanglementEntropyJS/partialTraceJS, refactor O(dim^2) partial trace
to efficient O(dim*dimTraced) reshape approach, use math.Max/min/max
builtins for clamping. Fix initComparison slider dirty-flag so final
value is always rendered.
…ew components

Textbook content fixes (18 chapters):
- Fix Shor complexity O((log n)^3) -> O(n^3) where n is bit length (ch08)
- Fix depolarizing channel capacity 1-H(3p/4) -> 1-H(2p/3) (ch29)
- Fix surface code logical operator boundary examples swapped (ch19)
- Credit Bohm's 1951 reformulation for EPR singlet state argument (ch06)
- Fix no-cloning cross-reference Chapter 7 -> Chapter 6 (ch04)
- Fix QAOA simulation rx({beta}) -> rx(2*{beta}) for mixer unitary (ch23)
- Fix ZNE widget formula to use physically correct exponential decay (ch25)
- Fix VQE exploration: CNOT transforms |11> to |10> (ch22)
- Fix QPE section: remove promise of nonexistent sandbox (ch10)
- Update hardware table: IBM Heron r2, Quantinuum Helios, Rigetti Ankaa-3 (ch40)
- Update IBM roadmap to Loon/Kookaburra/Cockatoo naming (ch39)
- Update Microsoft roadmap: tetron measurements reported 2025 (ch39)
- Fix Deutsch-Jozsa "all other amplitudes nonzero" claim (ch09)
- Fix bit-flip channel parenthetical about output basis (ch27)
- Add Kempe-Regev k=3 QMA-completeness intermediate result (ch30)
- Fix duplicate section numbering 14.4/14.5 (ch14)
- Unify qubit numbering to 0-indexed in syndrome table (ch17)
- Reconcile Trotter gate-count parameterizations (ch33)
- Add missing section number 2.6 (ch02)
- Fix QAOA approximation ratio attribution to 3-regular graphs (ch23)

gen-pdf.mjs updates:
- Add CSS and JS handlers for animated-walkthrough component
- Add CSS and JS handlers for comparison component
- Register both new component types in init registry
- Add print-mode hiding rules for walkthrough/comparison controls
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 24, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.45%. Comparing base (06909dd) to head (67e3a73).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #36      +/-   ##
==========================================
+ Coverage   71.36%   71.45%   +0.09%     
==========================================
  Files         165      166       +1     
  Lines       17544    17602      +58     
==========================================
+ Hits        12520    12578      +58     
  Misses       4059     4059              
  Partials      965      965              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@splch splch merged commit 8d79612 into main Mar 24, 2026
6 checks passed
@splch splch deleted the refactor/cleanup-separators-and-wasm branch March 24, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants