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 CommutationChecker for 2q Pauli rotations #13762

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Cryoris
Copy link
Contributor

@Cryoris Cryoris commented Jan 30, 2025

Summary

Fixes #13742.

Details and comments

Fix a bug CommutationChecker for [2q Pauli rotations, a gate that is not in the cache], such as [RXX, U]. The issue was that the parameters of the Pauli rotations were set to [] because we assumed we can find the relation in the cache. However that's obviously not true, as there are gates that are neither rotations, nor in the cache.

@Cryoris Cryoris 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 Jan 30, 2025
@Cryoris Cryoris added this to the 1.4.0 milestone Jan 30, 2025
@Cryoris Cryoris requested a review from a team as a code owner January 30, 2025 14:58
@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 13054966350

Details

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

Files with Coverage Reduction New Missed Lines %
crates/accelerate/src/unitary_synthesis.rs 1 92.97%
crates/qasm2/src/expr.rs 1 94.23%
crates/qasm2/src/lex.rs 4 92.73%
Totals Coverage Status
Change from base Build 13053673557: 0.0%
Covered Lines: 79686
Relevant Lines: 89599

💛 - Coveralls

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 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.

Error when Executing CommutativeInverseCancellation Pass in Qiskit v1.3.2
3 participants