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

Fix observable predictions shape in sinter's MWPF and FussionBlossom decoder #864

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

inmzhang
Copy link
Contributor

@inmzhang inmzhang commented Dec 3, 2024

The packed obs predictions should be of shape (num_shots, (self.num_obs + 7) // 8) instead of (num_shots, self.num_obs), which results in error ValueError: predictions.shape[1] > actual_obs.shape[1] + 1 when simulating codes with multiple logical observables.

@Strilanc
Copy link
Collaborator

Strilanc commented Dec 4, 2024

LGTM; would probably be good to add a unit test to the standard battery of tests that exercises this

@Strilanc Strilanc enabled auto-merge (squash) December 4, 2024 08:14
@Strilanc Strilanc merged commit d70b206 into quantumlib:main Dec 4, 2024
57 checks passed
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