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

Check liveness of bits when computing slice iterator #1707

Merged
merged 7 commits into from
Dec 3, 2024
Merged

Conversation

cqc-alec
Copy link
Collaborator

@cqc-alec cqc-alec commented Dec 2, 2024

Fixes #1673 .

Most of this PR is just refactoring: moving SliceIterator and related functions into its own source file (and making it no longer a member of the Circuit class); and combining two versions of Circuit::next_cut() with different signatures into one. It was this last refactor that uncovered the source of the bug. In only one of these versions was a certain liveness check being done.

So the whole fix is actually in 98862a3 -- the rest is pure refactoring.

@cqc-alec cqc-alec changed the title Ae/slices.1 Check liveness of bits when computing slice iterator Dec 2, 2024
@cqc-alec cqc-alec requested a review from sjdilkes December 2, 2024 16:15
@cqc-alec cqc-alec marked this pull request as ready for review December 2, 2024 16:15
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 2b871b8 into main Dec 3, 2024
32 checks passed
@cqc-alec cqc-alec deleted the ae/slices.1 branch December 3, 2024 13:34
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.

Error returning depth from circuit with only Classical ops
2 participants