Skip to content

GHZ benchmark#736

Draft
vprusso wants to merge 2 commits intomainfrom
ghz-benchmark
Draft

GHZ benchmark#736
vprusso wants to merge 2 commits intomainfrom
ghz-benchmark

Conversation

@vprusso
Copy link
Copy Markdown
Contributor

@vprusso vprusso commented Mar 27, 2026

Closes #232

vprusso added 2 commits March 24, 2026 16:06
Constructs GHZ states using BFS spanning tree on the device connectivity
graph, then estimates fidelity via direct fidelity estimation (DFE) or
parity oscillation curve fitting.

- BFS-based CNOT chain works with any device topology (all-to-all, heavy-hex, grid)
- DFE method: 2 circuits (Z-basis + X-basis), fast
- Parity oscillation method: 1 + N phase-swept circuits, rigorous
- Optional flag qubit error detection via ZZ stabilizer checks
- Post-selection on flag qubit outcomes
- Fidelity = (population + coherence) / 2
- 21 unit tests covering circuit construction, post-selection, and fidelity estimation
@github-actions
Copy link
Copy Markdown
Contributor

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://unitaryfoundation.github.io/metriq-gym/pr-preview/pr-736/

Built to branch gh-pages at 2026-03-27 14:45 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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.

Add GHZ states as benchmarks

1 participant