Skip to content

fix: improve SABRE layout scoring for control flow operations#16120

Open
elkadylogy03-eng wants to merge 1 commit intoQiskit:mainfrom
elkadylogy03-eng:fix/sabre-control-flow-layout-scoring
Open

fix: improve SABRE layout scoring for control flow operations#16120
elkadylogy03-eng wants to merge 1 commit intoQiskit:mainfrom
elkadylogy03-eng:fix/sabre-control-flow-layout-scoring

Conversation

@elkadylogy03-eng
Copy link
Copy Markdown

The layout algorithm was treating all controlflow nodes as synchronize points ,ignoring qubit interaction from inside if/else blocks entirely

Fix: extract the dominant 2q interaction from inside controlflow blocks using correct outer qubit mapping

Fixes #14968

AI/LLM disclosure

  • I didn't use LLM tooling, or only used it privately.
  • I used the following tool to help write this PR description:: Claude (Anthropic)
  • I used the following tool to generate or modify code:

The layout algorithm was treating all ControlFlow nodes as Synchronize
points, ignoring qubit interactions inside if/else blocks entirely.

Fix: Extract the dominant 2Q interaction from inside ControlFlow blocks
using correct outer qubit mapping.

Fixes Qiskit#14968
@elkadylogy03-eng elkadylogy03-eng requested a review from a team as a code owner May 1, 2026 03:03
@qiskit-bot qiskit-bot added the Community PR PRs from contributors that are not 'members' of the Qiskit repo label May 1, 2026
@qiskit-bot
Copy link
Copy Markdown
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 1, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community PR PRs from contributors that are not 'members' of the Qiskit repo

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Poor routing in transpiler for dynamic circuits

3 participants