✨ Add W-state preparation benchmark - #2542
Open
burgholzer wants to merge 1 commit into
Open
burgholzer wants to merge 1 commit into
burgholzer wants to merge 1 commit into
Conversation
burgholzer
force-pushed
the
codex/w-state-benchmark
branch
from
September 12, 2026 10:07
53fa37d to
78a7fc6
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
burgholzer
force-pushed
the
codex/w-state-benchmark
branch
from
September 12, 2026 11:10
78a7fc6 to
3b68921
Compare
burgholzer
force-pushed
the
codex/w-state-benchmark
branch
from
September 14, 2026 19:34
3b68921 to
40a4d48
Compare
Prepare W states in structured loops and evaluate sampled counts against analytic single-excitation probabilities. Register the family in the existing C++, Python, and JSON interfaces. Retain the 4,096-qubit DD regression and the control-flow budget needed for large structured preparations. Assisted-by: Codex
burgholzer
changed the base branch from
main
to
codex/fix-mlir-exception-boundaries
September 14, 2026 19:53
burgholzer
force-pushed
the
codex/w-state-benchmark
branch
from
September 14, 2026 19:53
40a4d48 to
21d1baa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Description
Stacked on #2545.
Add W-state preparation to the existing C++, Python, and CLI benchmark interfaces. The generator keeps its controlled-RY/CX sweep in structured loops with precomputed angles. Evaluation reuses the existing probability and counts APIs: each single-excitation outcome has ideal probability
1/n.The 4,096-qubit regression checks jeff serialization, reload, and amplitudes through the existing DD simulator without dense extraction. Supporting large preparations raises the shared control-flow budget to 100 million steps and rejects oversized resolved loops before execution. Documentation includes executable 3- and 256-qubit examples.
Validation:
Hosted checks will rerun on this update. Codex assisted implementation, validation, and this description.
Checklist
If PR contains AI-assisted content:
🤖 *AI text below* 🤖(titles are exempt).