Skip to content

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented May 28, 2025

The empty_dag helper, used to construct control-flow blocks, in the rebuilder failed to account for Var or Stretch nodes. We have integration tests in test/python/compiler/test_transpiler.py that in theory should have caught this, but in practice failed to because they are accidentally using all-to-all connectivity backends, so Sabre never runs in them.

Summary

Details and comments

This fixes the test failures that #14484 turned up.


This is an automatic backport of pull request #14488 done by [Mergify](https://mergify.com).

@mergify mergify bot requested a review from a team as a code owner May 28, 2025 16:27
@mergify mergify bot added the conflicts used by mergify when there are conflicts in a port label May 28, 2025
Copy link
Contributor Author

mergify bot commented May 28, 2025

Cherry-pick of 985bd7a has failed:

On branch mergify/bp/stable/1.4/pr-14488
Your branch is up to date with 'origin/stable/1.4'.

You are currently cherry-picking commit 985bd7a8a.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   qiskit/transpiler/passes/routing/sabre_swap.py
	new file:   releasenotes/notes/fix-sabre-inner-vars-409448505fd56ca7.yaml

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   test/python/transpiler/test_sabre_swap.py

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@qiskit-bot
Copy link
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

@github-actions github-actions bot added the Changelog: Bugfix Include in the "Fixed" section of the changelog label May 28, 2025
@github-actions github-actions bot added this to the 2.1.0 milestone May 28, 2025
@jakelishman jakelishman force-pushed the mergify/bp/stable/1.4/pr-14488 branch from 440ea32 to ea8adc6 Compare May 28, 2025 17:05
@jakelishman jakelishman removed the conflicts used by mergify when there are conflicts in a port label May 28, 2025
The `empty_dag` helper, used to construct control-flow blocks, in the
rebuilder failed to account for `Var` or `Stretch` nodes.  We have
integration tests in `test/python/compiler/test_transpiler.py` that _in
theory_ should have caught this, but in practice failed to because they
are accidentally using all-to-all connectivity backends, so Sabre never
runs in them.
@jakelishman jakelishman force-pushed the mergify/bp/stable/1.4/pr-14488 branch from ea8adc6 to 23e2851 Compare May 28, 2025 17:06
jakelishman
jakelishman previously approved these changes May 28, 2025
@jakelishman jakelishman enabled auto-merge May 28, 2025 17:06
@coveralls
Copy link

Pull Request Test Coverage Report for Build 15306595671

Details

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • 16 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.01%) to 88.799%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 4 91.98%
crates/qasm2/src/parse.rs 12 97.15%
Totals Coverage Status
Change from base Build 15300500327: -0.01%
Covered Lines: 79479
Relevant Lines: 89504

💛 - Coveralls

@jakelishman jakelishman added this pull request to the merge queue May 28, 2025
Merged via the queue into stable/1.4 with commit 8e137b7 May 28, 2025
19 checks passed
@jakelishman jakelishman deleted the mergify/bp/stable/1.4/pr-14488 branch June 9, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants