Skip to content

Add balanced pauli sampling as a Twirl.group option#300

Merged
joshuasn merged 10 commits intomainfrom
balanced-uniform-pauli-v2
Mar 6, 2026
Merged

Add balanced pauli sampling as a Twirl.group option#300
joshuasn merged 10 commits intomainfrom
balanced-uniform-pauli-v2

Conversation

@ihincks
Copy link
Collaborator

@ihincks ihincks commented Feb 11, 2026

Summary

WIP for now, but close.

Details and comments

if twirl_type != VirtualType.PAULI:
raise BuildError(
f"Cannot use {twirl_type.value} twirl in a box with measurements."
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TODO: replace this with something

Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe it's a bit too messy but I think having a group mode resolve to a virtual type for certain checks makes sense.

if twirl_type != VirtualType.PAULI:
raise BuildError(
f"Cannot use {twirl_type.value} twirl in a box with measurements."
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe it's a bit too messy but I think having a group mode resolve to a virtual type for certain checks makes sense.

@ihincks ihincks marked this pull request as ready for review March 6, 2026 15:53
@joshuasn joshuasn merged commit 22090a7 into main Mar 6, 2026
8 checks passed
@joshuasn joshuasn deleted the balanced-uniform-pauli-v2 branch March 6, 2026 16:46
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