Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jan 21, 2025

Summary

Fixes #13590.

Details and comments

The bug was introduced when porting random_clifford to Rust in #12695.

I have added tests that ensure that for 2-qubits Cliffords, random_clifford produces Cliffords with all possible symplectic matrices (there should be 720) and all possible CX counts (should be {0, 1, 2, 3}). @ShellyGarion, can you think of other tests that we may wish to add?


This is an automatic backport of pull request #13606 done by [Mergify](https://mergify.com).

* fix and tests

* Using a fixed rather than random clifford in one of the tests

* reno

* restoring previous docstring that was changed accidentally

* updating in-code comment

* also checking decompositions for random 3q cliffords

(cherry picked from commit 0d4ee23)
@mergify mergify bot requested review from a team, ShellyGarion and alexanderivrii as code owners January 21, 2025 19:59
@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 following people are relevant to this code:

  • @Qiskit/terra-core

@github-actions github-actions bot added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Jan 21, 2025
@github-actions github-actions bot added this to the 1.3.3 milestone Jan 21, 2025
@jakelishman jakelishman enabled auto-merge January 21, 2025 20:03
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12894832553

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • 8 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.02%) to 88.931%

Files with Coverage Reduction New Missed Lines %
crates/accelerate/src/two_qubit_decompose.rs 1 91.96%
crates/qasm2/src/expr.rs 1 94.02%
crates/qasm2/src/lex.rs 6 91.98%
Totals Coverage Status
Change from base Build 12892054432: 0.02%
Covered Lines: 79187
Relevant Lines: 89043

💛 - Coveralls

@jakelishman jakelishman added this pull request to the merge queue Jan 21, 2025
Merged via the queue into stable/1.3 with commit 603d6cd Jan 21, 2025
20 checks passed
@mtreinish mtreinish deleted the mergify/bp/stable/1.3/pr-13606 branch February 19, 2025 20:58
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants