Commit d70b206
authored
Fix observable predictions shape in sinter's MWPF and FussionBlossom decoder (#864)
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.1 parent a3e080c commit d70b206
File tree
2 files changed
+2
-2
lines changed- glue/sample/src/sinter/_decoding
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments