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: Handle classical control in PhasedXFrontier #1338

Merged
merged 2 commits into from
Apr 15, 2024
Merged

Conversation

lmondada
Copy link
Contributor

@lmondada lmondada commented Apr 14, 2024

Closes #1306

This solves the issue by treating any classically controlled gate as a barrier when squashing and turning gates to global gates. This is the only simple solution I could think of, as squashing classically controlled operation is always a bit tricky and comes with many edge cases.

@lmondada lmondada requested a review from cqc-alec April 14, 2024 18:47
Copy link
Collaborator

@cqc-alec cqc-alec left a comment

Choose a reason for hiding this comment

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

Thanks!

@cqc-alec cqc-alec merged commit e5c5e5c into develop Apr 15, 2024
30 checks passed
@cqc-alec cqc-alec deleted the fix/bug-1306 branch April 15, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SIGABRT Error with GlobalisePhasedX Pass on Classically Controlled Circuits
2 participants