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

Remove stale TODO and fix #5546 #5643

Merged
merged 1 commit into from Jun 29, 2022
Merged

Remove stale TODO and fix #5546 #5643

merged 1 commit into from Jun 29, 2022

Conversation

tanujkhattar
Copy link
Collaborator

@tanujkhattar tanujkhattar commented Jun 29, 2022

#5546 was raised because the test diagram had to be changed from ─Z─ to ─[Z]^1─

This was caused because of precision issues caused by changing np.complex128 to np.complex64.

A recent PR (f904a09) rolled back the change and increased the precision back to np.complex128; thereby reverting the diagram to it's original form ─Z─.

We can remove the stale TODO and close the issue.

Fixes #5546

Copy link
Collaborator

@viathor viathor left a comment

Choose a reason for hiding this comment

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

The test is already updated, so (assuming it runs) the code does the right thing.

@tanujkhattar tanujkhattar merged commit 9867093 into master Jun 29, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: XS <10 lines changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

paulistring optimize_test.py: Changed Z gate string representation
4 participants