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

Squash conditional gates in SquashRzPhasedX #1728

Merged
merged 7 commits into from
Jan 8, 2025
Merged

Squash conditional gates in SquashRzPhasedX #1728

merged 7 commits into from
Jan 8, 2025

Conversation

cqc-alec
Copy link
Collaborator

@cqc-alec cqc-alec commented Jan 7, 2025

Description

Initial decomposition into Rx and Rz gates was ignoring conditionals, so these were not being included in the squashing pass.

In general TKET does not do well at detecting and simplifying sequences of conditional gates (with the same condition), and this led to one regression in a unit test for SynthesiseTket. Leaving this for future work.

Related issues

Fixes #1723 .
Fixes CQCL/pytket-quantinuum#557 .

Checklist

  • 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.

@cqc-alec cqc-alec changed the title Ae/squash.1 Squash conditional gates in SquashRzPhasedX Jan 7, 2025
@cqc-alec cqc-alec requested a review from sjdilkes January 7, 2025 15:30
@cqc-alec cqc-alec marked this pull request as ready for review January 7, 2025 15:30
Copy link
Contributor

@sjdilkes sjdilkes left a comment

Choose a reason for hiding this comment

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

LGTM

@cqc-alec cqc-alec merged commit 068d659 into main Jan 8, 2025
32 checks passed
@cqc-alec cqc-alec deleted the ae/squash.1 branch January 8, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants