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 qubit filtering in BackendV2Converter with add_delay #10015

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

mtreinish
Copy link
Member

Summary

This commit fixes an issue with the filter_faulty and add_delay flag were both set on the BackendV2Converter and convert_to_target flag. In these cases the function would incorrectly add delay operations to the faulty qubits even though they should have no operations preset on them. This commit fixes the oversight to ensure that no operations are present on a qubit if it's listed as non-operational in an input BackendProperties.

Details and comments

This commit fixes an issue with the filter_faulty and add_delay flag
were both set on the BackendV2Converter and convert_to_target flag. In
these cases the function would incorrectly add delay operations to the
faulty qubits even though they should have no operations preset on them.
This commit fixes the oversight to ensure that no operations are present
on a qubit if it's listed as non-operational in an input
BackendProperties.
@mtreinish mtreinish added stable backport potential The bug might be minimal and/or import enough to be port to stable Changelog: None Do not include in changelog labels Apr 21, 2023
@mtreinish mtreinish added this to the 0.24.0 milestone Apr 21, 2023
@mtreinish mtreinish requested review from a team and jyu00 as code owners April 21, 2023 19:15
@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 the following people are requested to review this:

  • @Qiskit/terra-core

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.

LGTM.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 4768112309

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • 25 unchanged lines in 5 files lost coverage.
  • Overall coverage increased (+0.04%) to 85.9%

Files with Coverage Reduction New Missed Lines %
crates/accelerate/src/vf2_layout.rs 1 86.44%
qiskit/transpiler/passes/synthesis/unitary_synthesis.py 1 95.14%
crates/accelerate/src/sabre_swap/mod.rs 2 99.53%
crates/qasm2/src/lex.rs 3 91.39%
crates/qasm2/src/parse.rs 18 96.65%
Totals Coverage Status
Change from base Build 4766039524: 0.04%
Covered Lines: 70990
Relevant Lines: 82643

💛 - Coveralls

@jakelishman jakelishman added this pull request to the merge queue Apr 25, 2023
Merged via the queue into Qiskit:main with commit f4548da Apr 25, 2023
mergify bot pushed a commit that referenced this pull request Apr 25, 2023
This commit fixes an issue with the filter_faulty and add_delay flag
were both set on the BackendV2Converter and convert_to_target flag. In
these cases the function would incorrectly add delay operations to the
faulty qubits even though they should have no operations preset on them.
This commit fixes the oversight to ensure that no operations are present
on a qubit if it's listed as non-operational in an input
BackendProperties.

(cherry picked from commit f4548da)
mtreinish added a commit that referenced this pull request Apr 25, 2023
…0035)

This commit fixes an issue with the filter_faulty and add_delay flag
were both set on the BackendV2Converter and convert_to_target flag. In
these cases the function would incorrectly add delay operations to the
faulty qubits even though they should have no operations preset on them.
This commit fixes the oversight to ensure that no operations are present
on a qubit if it's listed as non-operational in an input
BackendProperties.

(cherry picked from commit f4548da)

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
@mtreinish mtreinish deleted the filter-faulty-add-delay branch April 26, 2023 13:12
king-p3nguin pushed a commit to king-p3nguin/qiskit-terra that referenced this pull request May 22, 2023
This commit fixes an issue with the filter_faulty and add_delay flag
were both set on the BackendV2Converter and convert_to_target flag. In
these cases the function would incorrectly add delay operations to the
faulty qubits even though they should have no operations preset on them.
This commit fixes the oversight to ensure that no operations are present
on a qubit if it's listed as non-operational in an input
BackendProperties.
ElePT pushed a commit to ElePT/qiskit-ibm-provider that referenced this pull request Oct 9, 2023
…it#10015)

This commit fixes an issue with the filter_faulty and add_delay flag
were both set on the BackendV2Converter and convert_to_target flag. In
these cases the function would incorrectly add delay operations to the
faulty qubits even though they should have no operations preset on them.
This commit fixes the oversight to ensure that no operations are present
on a qubit if it's listed as non-operational in an input
BackendProperties.
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 changelog 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.

5 participants