Repository navigation
✨ Add QIR export with Base and Adaptive profiles - #1094
Open
simon1hofmann wants to merge 11 commits into
Open
simon1hofmann wants to merge 11 commits into
simon1hofmann wants to merge 11 commits into
Conversation
Assisted-by: GPT-5 via Codex
11 of 12 tasks
Assisted-by: GPT-5 via Codex
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Preserve the export-only scope, include current main through the prerequisite, and keep changelog references ordered. Assisted-by: GPT-6 via Codex
simon1hofmann
added this pull request to stack #1097
October 22, 2026 11:21
This branch has not been deployed
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
Add QIR export as LLVM text (
qir/llvm) or bitcode (qir-bitcode). Select Base or Adaptive profiles throughqir_profilein Python or--qir-profilein the CLI.Stacked on #1027 and uses its
mqtextra: Core 4.1.1 and Qiskit 2.5.x. Merge #1027 first, then retarget this PR tomain. The compiler seed and mapping-trial CLI options also work with QIR output.Export accepts circuits from either compiler, preserves the input and measurement destinations, and writes files atomically so lowering or write failures preserve existing files. QIR lowering can decompose gates and assign new resource identifiers; the runtime must support the emitted QIS calls and profile.
Fixes #437
Fixes #441
Validation
The branch includes the updated #1027 and current
main. Fresh CI is pending.QIR runtime checks ran outside the local macOS sandbox. Codex assisted with implementation, updates, and checks.
Checklist
If PR contains AI-assisted content:
🤖 *AI text below* 🤖(titles are exempt).