Skip to content

Adds explicit precision to tests. #35

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

Merged
merged 9 commits into from
Jun 18, 2022

Conversation

cognigami
Copy link
Collaborator

Addressing breaking change upstream (Cirq): quantumlib/Cirq#5426

@cognigami cognigami requested a review from dstrain115 June 16, 2022 18:27


def test_controlled_iswap():
qubits = cirq.LineQubit.range(3)
result = controlled_iswap.controlled_iswap(qubits[0], qubits[1], qubits[2])
cirq.testing.assert_allclose_up_to_global_phase(
cirq.unitary(result),
cirq.unitary(result, dtype=np.complex128),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add a comment why this is necessary.

@cognigami
Copy link
Collaborator Author

This problem is resolved. I'm going to start a separate PR to address the new test failures generated by Cirq PR#5544.

@cognigami cognigami merged commit d2e637b into quantumlib:main Jun 18, 2022
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