Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests of Expr support through SabreSwap #10511

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

jakelishman
Copy link
Member

Summary

This also fixes a small bug with the general control-flow handling, where a SwitchCaseOp would not have its classical wires respected, which left it possible to be routed out-of-order.

Details and comments

Fix #10232. Feature changelog via #10331. No changelog for the bugfix because it was unreleased as yet.

This also fixes a small bug with the general control-flow handling,
where a `SwitchCaseOp` would not have its classical wires respected,
which left it possible to be routed out-of-order.
@jakelishman jakelishman added stable backport potential The bug might be minimal and/or import enough to be port to stable Changelog: New Feature Include in the "Added" section of the changelog mod: transpiler Issues and PRs related to Transpiler labels Jul 26, 2023
@jakelishman jakelishman added this to the 0.25.0 milestone Jul 26, 2023
@jakelishman jakelishman requested a review from a team as a code owner July 26, 2023 20:28
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@coveralls
Copy link

Pull Request Test Coverage Report for Build 5673409609

  • 11 of 12 (91.67%) changed or added relevant lines in 1 file are covered.
  • 22 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.02%) to 85.921%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/transpiler/passes/routing/sabre_swap.py 11 12 91.67%
Files with Coverage Reduction New Missed Lines %
qiskit/extensions/unitary.py 1 93.75%
crates/qasm2/src/lex.rs 3 91.65%
crates/qasm2/src/parse.rs 18 96.67%
Totals Coverage Status
Change from base Build 5673134265: -0.02%
Covered Lines: 73059
Relevant Lines: 85030

💛 - Coveralls

Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this seems straightforward and is a dual of the similar fix for stochastic swap. Thanks for catching and fixing this.

@mtreinish mtreinish added this pull request to the merge queue Jul 27, 2023
Merged via the queue into Qiskit:main with commit 1a87703 Jul 27, 2023
13 checks passed
mergify bot pushed a commit that referenced this pull request Jul 27, 2023
This also fixes a small bug with the general control-flow handling,
where a `SwitchCaseOp` would not have its classical wires respected,
which left it possible to be routed out-of-order.

(cherry picked from commit 1a87703)
@jakelishman jakelishman deleted the expr/sabre branch July 27, 2023 16:39
github-merge-queue bot pushed a commit that referenced this pull request Jul 27, 2023
This also fixes a small bug with the general control-flow handling,
where a `SwitchCaseOp` would not have its classical wires respected,
which left it possible to be routed out-of-order.

(cherry picked from commit 1a87703)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
to24toro pushed a commit to to24toro/qiskit-terra that referenced this pull request Aug 3, 2023
This also fixes a small bug with the general control-flow handling,
where a `SwitchCaseOp` would not have its classical wires respected,
which left it possible to be routed out-of-order.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: New Feature Include in the "Added" section of the changelog mod: transpiler Issues and PRs related to Transpiler stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Expr values to SabreSwap and SabreLayout
4 participants