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

Remove Optimize1qGatesDecomposition from init stage #11360

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

mtreinish
Copy link
Member

@mtreinish mtreinish commented Dec 1, 2023

Summary

In #11354 we added more logical optimization passes to the preset pass managers for level 1, 2, and 3 which included the
Optimize1qGatesDecomposition pass. However, this had the the unintended side effect of tending to normalize circuits to use parameterized gates. This becomes an issue for discrete basis targets as the basis translator doesn't always know how to work with those. To avoid issues this commit removes the pass from the init stage and just saves it for the optimization loop. If we want to do 1q gate simplification during init in the future we can develop a different pass that does it in a manner that wouldn't interfere with discrete basis targets like Optimize1qGatesDecomposition.

Details and comments

In Qiskit#11354 we added more logical optimization passes to the preset pass
managers for level 1, 2, and 3 which included the
Optimize1qGatesDecomposition pass. However, this had the the unintended
side effect of tending to normalize circuits to use parameterized gates.
This becomes an issue for discrete basis targets as the basis translator
doesn't always know how to work with those. To avoid issues this commit
removes the pass from the init stage and just saves it for the
optimization loop. If we want to do 1q gate simplification during init
in the future we can develop a different pass that does it in a manner
that wouldn't interfere with discrete basis targets like
Optimize1qGatesDecomposition.
@mtreinish mtreinish requested a review from a team as a code owner December 1, 2023 12:31
@qiskit-bot
Copy link
Collaborator

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

  • @Qiskit/terra-core

@mtreinish mtreinish added the Changelog: None Do not include in changelog label Dec 1, 2023
@coveralls
Copy link

Pull Request Test Coverage Report for Build 7060027991

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 87.456%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 2 92.17%
Totals Coverage Status
Change from base Build 7054433661: 0.02%
Covered Lines: 59931
Relevant Lines: 68527

💛 - Coveralls

@jakelishman jakelishman added this pull request to the merge queue Dec 1, 2023
Merged via the queue into Qiskit:main with commit b861e4b Dec 1, 2023
13 checks passed
@mtreinish mtreinish deleted the no-optimize1q-gates-decomp-init branch December 1, 2023 19:48
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants