Skip to content

Fix StochasticSwap routing for if blocks with no else (backport #8891)#8893

Merged
mergify[bot] merged 1 commit into
stable/0.22from
mergify/bp/stable/0.22/pr-8891
Oct 13, 2022
Merged

Fix StochasticSwap routing for if blocks with no else (backport #8891)#8893
mergify[bot] merged 1 commit into
stable/0.22from
mergify/bp/stable/0.22/pr-8891

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented Oct 13, 2022

This is an automatic backport of pull request #8891 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

If a control-flow block is not required to be entered (such as an "if"
with no "else"), then it can't affect the layout in case the branch
isn't taken.  This failure would have been clearer in a more
control-flow-graph view of the circuit, but we don't yet have that,
which is how this bug snuck through.  The case of "exit layout need not
match entry layout" is really the special case for routing, which this
commit makes a bit clearer.

(cherry picked from commit 35c4b00)
@mergify mergify Bot requested a review from a team as a code owner October 13, 2022 13:32
@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 the following people are requested to review this:

  • @Qiskit/terra-core

@jakelishman jakelishman added automerge Changelog: None Do not include in the GitHub Release changelog. labels Oct 13, 2022
@jakelishman jakelishman added this to the 0.22 milestone Oct 13, 2022
@mergify mergify Bot merged commit b75df3a into stable/0.22 Oct 13, 2022
@mergify mergify Bot deleted the mergify/bp/stable/0.22/pr-8891 branch October 13, 2022 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: None Do not include in the GitHub Release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants