-
Notifications
You must be signed in to change notification settings - Fork 57
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
CYGate #1115
Conversation
qualtran/bloqs/basic_gates/y_gate.py
Outdated
|
||
@cached_property | ||
def signature(self) -> 'Signature': | ||
return Signature.build(ctrl=1, q=1) |
There was a problem hiding this comment.
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(): |
There was a problem hiding this comment.
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())
At long last, I have addressed the review comments |
Add the controlled Y gate
Basic gates #1109