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 missing inverse definitions in generate_basis_approximations (backport #13517) #13964

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Mar 6, 2025

Summary

This tiny PR fixes an oversight in the generation routine for basis approximations that is used in the SolovayKitaev synthesis pass.

Details and comments

While the dictionary of single-qubit gates listed the sx and sxdg gates, the dictionary of inverses was missing those definitions.
This PR simply adds the respective definitions.

Should this receive a release note?


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

…13517)

* fix missing inverse definitions in `generate_basis_approximation`

* add missing basis gates to test

* add bugfix release note

* Update releasenotes/notes/fix-missing-inverse-definition-af7fe8d9f2193308.yaml

* Fix reno annotation

---------

Co-authored-by: Julien Gacon <gaconju@gmail.com>
Co-authored-by: Julien Gacon <jules.gacon@googlemail.com>
(cherry picked from commit 149d5a6)
@mergify mergify bot requested review from alexanderivrii, ShellyGarion and a team as code owners March 6, 2025 11:03
@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 Changelog: Bugfix Include in the "Fixed" section of the changelog Community PR PRs from contributors that are not 'members' of the Qiskit repo labels Mar 6, 2025
@github-actions github-actions bot added this to the 2.0.0 milestone Mar 6, 2025
@mtreinish mtreinish modified the milestones: 2.0.0, 1.4.2, 1.4.1 Mar 6, 2025
Copy link
Contributor

@Cryoris Cryoris left a comment

Choose a reason for hiding this comment

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

1.4.1 is released, so we can start the backports for 1.4.2

@Cryoris Cryoris added this pull request to the merge queue Mar 6, 2025
Merged via the queue into stable/1.4 with commit ab5640d Mar 6, 2025
20 checks passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 13697186385

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 10 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.006%) to 88.856%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 4 91.73%
crates/qasm2/src/parse.rs 6 97.62%
Totals Coverage Status
Change from base Build 13684326389: -0.006%
Covered Lines: 79395
Relevant Lines: 89352

💛 - 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 Community PR PRs from contributors that are not 'members' of the Qiskit repo
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants