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

CYGate #1115

Merged
merged 5 commits into from
Jul 19, 2024
Merged

CYGate #1115

merged 5 commits into from
Jul 19, 2024

Conversation

mpharrigan
Copy link
Collaborator

Add the controlled Y gate

Basic gates #1109


@cached_property
def signature(self) -> 'Signature':
return Signature.build(ctrl=1, q=1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we use ctrl and target instead of ctrl and q ? That's what the CNOT gate uses.

np.testing.assert_allclose(YGate().tensor_contract(), cbloq.tensor_contract())


def test_cy_adjoint():
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add a test for t_complexity(CYGate())

@mpharrigan
Copy link
Collaborator Author

At long last, I have addressed the review comments

@mpharrigan mpharrigan enabled auto-merge (squash) July 19, 2024 23:11
@mpharrigan mpharrigan merged commit f997d83 into quantumlib:main Jul 19, 2024
7 checks passed
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