Skip to content

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
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