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

Fix transpilation of control flow to no hardware #11907

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

jakelishman
Copy link
Member

@jakelishman jakelishman commented Feb 28, 2024

Summary

Previously we treated basis_gates=None the same as basis_gates=() in the hardware check; that is, we treated it as meaning "nothing is allowed", when the intention (and how it's treated elsewhere) is more that "everything is allowed."

Details and comments

Marked as stable for 1.0.2, but I could definitely be convinced otherwise.

Fix #11906.

Previously we treated `basis_gates=None` the same as `basis_gates=()` in
the hardware check; that is, we treated it as meaning "nothing is
allowed", when the intention (and how it's treated elsewhere) is more
that "everything is allowed."
@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 labels Feb 28, 2024
@jakelishman jakelishman added this to the 1.0.2 milestone Feb 28, 2024
@jakelishman jakelishman requested a review from a team as a code owner February 28, 2024 10:44
@qiskit-bot
Copy link
Collaborator

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

  • @Qiskit/terra-core

@jakelishman jakelishman added the mod: transpiler Issues and PRs related to Transpiler label Feb 28, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8079103823

Details

  • 0 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • 11 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.009%) to 89.315%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 5 91.94%
crates/qasm2/src/parse.rs 6 97.15%
Totals Coverage Status
Change from base Build 8078479687: -0.009%
Covered Lines: 59141
Relevant Lines: 66216

💛 - Coveralls

Copy link
Contributor

@kevinhartman kevinhartman left a comment

Choose a reason for hiding this comment

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

This looks good to me. I think it's fine to backport as well.

@kevinhartman kevinhartman added this pull request to the merge queue Feb 28, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 28, 2024
@jakelishman jakelishman added this pull request to the merge queue Feb 28, 2024
Merged via the queue into Qiskit:main with commit d47a227 Feb 28, 2024
12 checks passed
mergify bot pushed a commit that referenced this pull request Feb 28, 2024
Previously we treated `basis_gates=None` the same as `basis_gates=()` in
the hardware check; that is, we treated it as meaning "nothing is
allowed", when the intention (and how it's treated elsewhere) is more
that "everything is allowed."

(cherry picked from commit d47a227)
@jakelishman jakelishman deleted the cf-check branch February 28, 2024 20:34
github-merge-queue bot pushed a commit that referenced this pull request Feb 28, 2024
Previously we treated `basis_gates=None` the same as `basis_gates=()` in
the hardware check; that is, we treated it as meaning "nothing is
allowed", when the intention (and how it's treated elsewhere) is more
that "everything is allowed."

(cherry picked from commit d47a227)

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

dynamic circuit fail to transpile without a backend
4 participants