Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acctually assert in kraus_protocol_test.py #4546

Merged

Conversation

viathor
Copy link
Collaborator

@viathor viathor commented Oct 4, 2021

Fix ineffective test in kraus_protocol_test.py by replacing np.allclose with np.testing.assert_equal. Also, some minor naming improvements and updates.

@viathor viathor requested review from cduck, vtomole and a team as code owners October 4, 2021 00:47
@viathor viathor requested a review from maffoo October 4, 2021 00:47
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label Oct 4, 2021
@CirqBot CirqBot added the size: S 10< lines changed <50 label Oct 4, 2021
Copy link
Collaborator

@tanujkhattar tanujkhattar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Note that kraus and mixture would still be broken and wouldn't work with decompose, but that is being fixed as part of #4486

@tanujkhattar tanujkhattar added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Oct 4, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Oct 4, 2021
@CirqBot CirqBot merged commit 241695a into quantumlib:master Oct 4, 2021
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Oct 4, 2021
@viathor viathor deleted the actually_assert_in_kraus_protocol_test branch October 4, 2021 03:29
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Fix ineffective test in kraus_protocol_test.py by replacing `np.allclose` with `np.testing.assert_equal`. Also, some minor naming improvements and updates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining. size: S 10< lines changed <50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants