The fix in #1598 was incomplete: DecomposeSwapsToCXs needs to work with classical gates such a RangePredicate as well. I think the most robust fix is to remove the gate-set predicates from this pass altogether.
Related issues
Relates to #1597 .
Checklist
[x] I have performed a self-review of my code.
[ ] I have commented hard-to-understand parts of my code.
[ ] I have made corresponding changes to the public API documentation.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have updated the changelog with any user-facing changes.
Description
The fix in #1598 was incomplete:
DecomposeSwapsToCXs
needs to work with classical gates such aRangePredicate
as well. I think the most robust fix is to remove the gate-set predicates from this pass altogether.Related issues
Relates to #1597 .
Checklist