✨ Add quantum teleportation benchmark - #2324
Conversation
ddd7671 to
35fee73
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
1b7cf58 to
d47715d
Compare
d47715d to
e5cd2a7
Compare
35098fe to
b176a80
Compare
|
Important Approval pendingCodeRabbit has no unresolved comments, but it has not reviewed the latest commit. Use the checkbox below to review the latest commit. CodeRabbit will approve the changes if it finds no blocking issues.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
45e44d7 to
1ff0acc
Compare
burgholzer
left a comment
There was a problem hiding this comment.
Tweaked the benchmark here a little bit so that it actually benchmarks how well the state was teleported and added simulation tests.
This LGTM now and should also be ready to merge.
Assisted-by: GPT-5.6 Sol via Codex
Assisted-by: GPT-5.6 Sol via Codex
Assisted-by: GPT-5.6 Sol via Codex
Assisted-by: GPT-5.6 Sol via Codex
Document the fixed input, measurement order, and limits of the uniform reference. Check generated output with DD sampling while retaining the structural feed-forward test. Assisted-by: GPT-6 via Codex
Assisted-by: GPT-5.6 Sol via Codex
Assisted-by: GPT-5.6 Sol via Codex
Keep Alice measurements internal and project Bob onto the fixed input. Report a one-bit success outcome and compact the execution plan. Assisted-by: GPT-6 via Codex
Reuse native benchmark test helpers and keep the Python test focused on bindings. Assisted-by: GPT-6 via Codex
1ff0acc to
3b44a62
Compare
🤖 AI text below 🤖
Description
Add a fixed quantum teleportation benchmark with C++ and Python APIs, strict empty-parameter instance specifications and manifests, an analytic reference, command-line support, and structured MLIR generation.
The program teleports the fixed
|+>state and returns only Bob's X-basis measurement. Outcome0denotes success; Alice's measurements remain internal and drive the X and Z corrections. The benchmark reports the probability of recovering the prepared state. This checks the fixed input, not arbitrary-state channel fidelity.Native reference, generation, and sampling tests protect the output, correction data flow, and deterministic success outcome. A separate Python test covers the benchmark bindings and JSON round trips. These tests reuse the structure and native helpers from #2402.
This PR is stacked on #2402.
AI notice
This PR and its contents were created with the assistance of GPT-5.6 Sol and GPT-6 via Codex.
Checklist
I have added migration instructions to the upgrade guide (if needed).If PR contains AI-assisted content:
🤖 *AI text below* 🤖(titles are exempt).