✨ Add more inspection methods to QCProgram - #2260
Draft
denialhaag wants to merge 4 commits into
Draft
Conversation
12 tasks
Assisted-by: GPT-5.6 Sol via Codex
Assisted-by: GPT-5.6 Sol via Codex
Assisted-by: GPT-5.6 Sol via Codex
denialhaag
force-pushed
the
extend-inspection-methods
branch
from
August 26, 2026 22:20
4ffb3e3 to
4efc9f4
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Assisted-by: GPT-5.6 Sol via Codex
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.
Description
🤖 AI text below 🤖
Add
gate_countsandstatic_depthinspection methods toQCProgramin C++ and Python. Gate counts group the existing static-IR gate metric by operation mnemonic.Static depth follows qubit dependencies, takes the maximum across mutually exclusive SCF branches, visits each loop body once, and conservatively handles dynamic register indices. The methods share the existing modifier and barrier semantics and include C++ tests and Python documentation.
AI notice
This PR and its contents were created with the assistance of GPT-5.6 Sol 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).