-
Notifications
You must be signed in to change notification settings - Fork 71
Add AutoPartition
and BloqBuilder.add_and_partition
to fit bloqs together whose registers don't quite match
#1086
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
Add AutoPartition
and BloqBuilder.add_and_partition
to fit bloqs together whose registers don't quite match
#1086
Conversation
FYI @fdmalone |
One of the motivations in the linked PR was to clean up the circuit diagrams by hiding the partition/unpartition pairs behind a level of decomposition. Does this still do that? |
Awesome, I was thinking the AutoPartition would be a bloq by itself (like Split and Join) and then the bloq builder would use this bloq (similar to split and join), but this works too. |
BloqBuilder.add_and_partition
to fit bloqs together whose registers don't quite matchAutoPartition
and BloqBuilder.add_and_partition
to fit bloqs together whose registers don't quite match
I made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very comprehensive! Thanks for adding docs as well. LGTM modulo wording fixes on the flag-for-one-sidedness
@mpharrigan PTAL! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweeeeeeeeet
Completes the implementation of the wrapper bloq introduced in #789 and adds an alternative interface to it as a
BloqBuilder
utility method.