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

Reimplement Circuit::get_commands_of_type() #1730

Merged
merged 4 commits into from
Jan 8, 2025
Merged

Reimplement Circuit::get_commands_of_type() #1730

merged 4 commits into from
Jan 8, 2025

Conversation

cqc-alec
Copy link
Collaborator

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

Fixes #1726 .

This function was implemented using a method where the slice iterator skipped certain vertices, leading to problems when some of those vertices were sources of Boolean wires targeting the unskipped vertices. The new implementation is simpler and avoids this problem.

@cqc-alec cqc-alec changed the title Ae/sliceiter Reimplement Circuit::get_commands_of_type() Jan 8, 2025
@cqc-alec cqc-alec requested a review from sjdilkes January 8, 2025 15:19
@cqc-alec cqc-alec marked this pull request as ready for review January 8, 2025 15:19
@cqc-alec cqc-alec merged commit b84609b into main Jan 8, 2025
32 checks passed
@cqc-alec cqc-alec deleted the ae/sliceiter branch January 8, 2025 15:54
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.

Critical assertion for Circuit.commands_of_type(OpType.Conditional)
2 participants