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

Deconstruct classical conditions in terms of ClExprOp instead of ClassicalExpBox #1657

Merged
merged 12 commits into from
Nov 6, 2024

Conversation

cqc-alec
Copy link
Collaborator

@cqc-alec cqc-alec commented Nov 5, 2024

Also change int type in expressions to uint64_t, since otherwise pybind11 assumes 32 bits.

@cqc-alec cqc-alec changed the title Ae/addcondition Deconstruct classical conditions in terms of ClExprOp instead of ClassicalExpBox Nov 5, 2024
@@ -1115,178 +1115,6 @@ def check_serialization_roundtrip(circ: Circuit) -> None:
assert circ_from_dict.to_dict() == circ_dict


def test_decomposition_known() -> None:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Next step after this will be to write a new decomposition pass, at which point I'll add a corresponding test to replace this one.

@cqc-alec cqc-alec requested a review from sjdilkes November 5, 2024 15:16
@cqc-alec cqc-alec marked this pull request as ready for review November 5, 2024 15:16
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 71d76a4 into main Nov 6, 2024
32 checks passed
@cqc-alec cqc-alec deleted the ae/addcondition branch November 6, 2024 10:53
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.

2 participants