Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@swernli
Copy link
Collaborator

@swernli swernli commented Aug 14, 2020

test_gates in capi_test.cpp had a low but non-zero chance of measuring One instead of Zero, resulting in a test crash due to assertion failure. This changes the instructions to ensure the test correctly unprepares the state so that measurement is as deterministic as possible.

Fixes #262

`test_gates` in capi_test.cpp had a low but non-zero chance of measuring One instead of Zero, resulting in a test crash due to assertion failure. This rearranges the instructions to ensure the test correctly unprepares the state so that measurement is as deterministic as possible.

Fixes #262
@swernli swernli merged commit 898be56 into master Aug 14, 2020
@swernli swernli deleted the swernli/fix-capi-test branch September 4, 2020 05:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_gates() not passing deterministically

3 participants