Skip to content

Fixing sinter post-selection feature#1002

Open
shohamjac wants to merge 1 commit intoquantumlib:mainfrom
shohamjac:sinter-postselection-fix
Open

Fixing sinter post-selection feature#1002
shohamjac wants to merge 1 commit intoquantumlib:mainfrom
shohamjac:sinter-postselection-fix

Conversation

@shohamjac
Copy link
Contributor

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.

1 participant