Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Optimize1qGatesDecomposition from init stage (#11360)
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.
- Loading branch information