Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions glue/sample/src/sinter/_decoding/_stim_then_decode_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ def sample(self, max_shots: int) -> AnonTaskStats:
raise ValueError("predictions.dtype != np.uint8")
if len(predictions.shape) != 2:
raise ValueError("len(predictions.shape) != 2")
if predictions.shape[0] != num_shots:
raise ValueError("predictions.shape[0] != num_shots")
if predictions.shape[0] != num_shots - num_discards_1:
raise ValueError("predictions.shape[0] != num_shots - num_discards_1")
if predictions.shape[1] < actual_obs.shape[1]:
raise ValueError("predictions.shape[1] < actual_obs.shape[1]")
if predictions.shape[1] > actual_obs.shape[1] + 1:
Expand Down