Skip to content

Fixing sinter post-selection feature#1057

Open
Strilanc wants to merge 5 commits intomainfrom
fix-sinter-postselect
Open

Fixing sinter post-selection feature#1057
Strilanc wants to merge 5 commits intomainfrom
fix-sinter-postselect

Conversation

@Strilanc
Copy link
Copy Markdown
Collaborator

Via shohamjac:

Starting from sinter 1.14 sinter.collect with postselection is raising the following error:

ValueError: predictions.shape[0] != num_shots

An example can be seen here.

I have fixed the assertion (predictions.shape[0] != num_shots - num_discards_1) and added a post-selection test test_collect_postselection.

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