Skip to content

Conversation

jakelishman
Copy link
Member

Summary

This has been a bug since gh-10712, but wasn't caught by the integration test in the test suite because that constructs a because the circuit has a perfect layout, so the layout stage was short-circuiting out after VF2.

Details and comments

I caught this by making a buggy version of VF2 that doesn't recognise Target 2q links without a defined error.

This has been a bug since Qiskitgh-10712, but wasn't caught by the integration
test in the test suite because the circuit has a perfect layout, so the
layout stage was short-circuiting out after VF2.
@jakelishman jakelishman added stable backport potential The bug might be minimal and/or import enough to be port to stable Changelog: Bugfix Include in the "Fixed" section of the changelog mod: transpiler Issues and PRs related to Transpiler labels Apr 7, 2025
@jakelishman jakelishman added this to the 2.0.1 milestone Apr 7, 2025
@jakelishman jakelishman requested a review from a team as a code owner April 7, 2025 14:48
@qiskit-bot
Copy link
Collaborator

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

  • @Qiskit/terra-core

@coveralls
Copy link

Pull Request Test Coverage Report for Build 14312338336

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • 11 unchanged lines in 3 files lost coverage.
  • Overall coverage remained the same at 88.064%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/expr.rs 1 94.23%
crates/qasm2/src/lex.rs 4 92.23%
crates/qasm2/src/parse.rs 6 97.15%
Totals Coverage Status
Change from base Build 14312020200: 0.0%
Covered Lines: 72960
Relevant Lines: 82849

💛 - Coveralls

@mtreinish
Copy link
Member

Should we also mark this for backport to stable/1.4?

@jakelishman
Copy link
Member Author

Yeah, I'd intended to. I can tell the bot.

@jakelishman
Copy link
Member Author

@Mergifyio backport stable/2.0 stable/1.4

Copy link
Contributor

mergify bot commented Apr 7, 2025

backport stable/2.0 stable/1.4

✅ Backports have been created

@mtreinish mtreinish modified the milestones: 2.0.1, 1.4.3 Apr 7, 2025
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 is a pretty straightforward fix.

@mtreinish mtreinish added this pull request to the merge queue Apr 7, 2025
Merged via the queue into Qiskit:main with commit 2504bde Apr 7, 2025
24 checks passed
mergify bot pushed a commit that referenced this pull request Apr 7, 2025
This has been a bug since gh-10712, but wasn't caught by the integration
test in the test suite because the circuit has a perfect layout, so the
layout stage was short-circuiting out after VF2.

(cherry picked from commit 2504bde)
mergify bot pushed a commit that referenced this pull request Apr 7, 2025
This has been a bug since gh-10712, but wasn't caught by the integration
test in the test suite because the circuit has a perfect layout, so the
layout stage was short-circuiting out after VF2.

(cherry picked from commit 2504bde)

# Conflicts:
#	qiskit/transpiler/passes/layout/sabre_layout.py
@jakelishman jakelishman deleted the sabre-metadata branch April 7, 2025 17:04
github-merge-queue bot pushed a commit that referenced this pull request Apr 7, 2025
This has been a bug since gh-10712, but wasn't caught by the integration
test in the test suite because the circuit has a perfect layout, so the
layout stage was short-circuiting out after VF2.

(cherry picked from commit 2504bde)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
github-merge-queue bot pushed a commit that referenced this pull request Apr 9, 2025
…14190)

* Fix circuit-metadata propagation in `SabreLayout` (#14186)

This has been a bug since gh-10712, but wasn't caught by the integration
test in the test suite because the circuit has a perfect layout, so the
layout stage was short-circuiting out after VF2.

(cherry picked from commit 2504bde)

# Conflicts:
#	qiskit/transpiler/passes/layout/sabre_layout.py

* Fix merge conflicts

* Adjust plugins used in testing for 1.4.x

---------

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
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 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.

4 participants