Skip to content

expand textbook WASM coverage with new algorithms and interactive wid…#30

Merged
splch merged 2 commits intomainfrom
feature/textbook-wasm-coverage
Mar 18, 2026
Merged

expand textbook WASM coverage with new algorithms and interactive wid…#30
splch merged 2 commits intomainfrom
feature/textbook-wasm-coverage

Conversation

@splch
Copy link
Copy Markdown
Owner

@splch splch commented Mar 18, 2026

…gets

Activate 7 previously unused WASM functions (runSearchAlgorithm, groverStepThrough, getTargetInfo, sweepExpectation, sweep2D, computeGradient, twirlCircuit) across chapters 12, 13, 21, 22, 25.

Add 4 new WASM bindings: runQPE for quantum phase estimation (Ch 10), runShor for Shor's factoring (Ch 11), runTrotter for Trotter-Suzuki Hamiltonian simulation (Ch 33), channelInfo for Kraus/Choi/PTM operator representations (Ch 27). Extend hardware target list with 6 additional platforms.

Wire existing Clifford simulation into surface codes (Ch 19), compareIdealNoisy and twirlCircuit into fault tolerance (Ch 20), buildAnsatz into QML (Ch 24), and sweep2D into QAOA (Ch 23).

…gets

Activate 7 previously unused WASM functions (runSearchAlgorithm,
groverStepThrough, getTargetInfo, sweepExpectation, sweep2D,
computeGradient, twirlCircuit) across chapters 12, 13, 21, 22, 25.

Add 4 new WASM bindings: runQPE for quantum phase estimation (Ch 10),
runShor for Shor's factoring (Ch 11), runTrotter for Trotter-Suzuki
Hamiltonian simulation (Ch 33), channelInfo for Kraus/Choi/PTM operator
representations (Ch 27). Extend hardware target list with 6 additional
platforms.

Wire existing Clifford simulation into surface codes (Ch 19),
compareIdealNoisy and twirlCircuit into fault tolerance (Ch 20),
buildAnsatz into QML (Ch 24), and sweep2D into QAOA (Ch 23).
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 18, 2026

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

Codecov Report

❌ Patch coverage is 0% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.25%. Comparing base (a401ce3) to head (e448b58).

Files with missing lines Patch % Lines
sim/clifford/sim.go 0.00% 29 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
- Coverage   72.33%   72.25%   -0.09%     
==========================================
  Files         157      157              
  Lines       16686    16715      +29     
==========================================
+ Hits        12070    12077       +7     
- Misses       3689     3712      +23     
+ Partials      927      926       -1     

☔ 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.

The cd into textbook/wasm changed the working directory, causing
wasm-opt to fail finding textbook/main.wasm. Build from repo root
instead.
@splch splch merged commit 4908cde into main Mar 18, 2026
6 checks passed
@splch splch deleted the feature/textbook-wasm-coverage branch March 18, 2026 23:36
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