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

CHadamard #1114

Merged
merged 6 commits into from
Jul 19, 2024
Merged

CHadamard #1114

merged 6 commits into from
Jul 19, 2024

Conversation

mpharrigan
Copy link
Collaborator

Add the controlled-hadamard CHadamard bloq. This will be a leaf bloq #873 and specialized compilations should be relegated to the architecture-specific models #237

Basic gates #1109

@mpharrigan mpharrigan requested a review from tanujkhattar July 9, 2024 00:55

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

ditto: should we rename to ctrl and target instead?

# This is based on the decomposition provided by `cirq.decompose_multi_controlled_rotation`
# which uses three cirq.MatrixGate's to do a controlled version of any single-qubit gate.
# The first MatrixGate happens to be a clifford, Hadamard operation in this case.
# The other two are considered 'rotations'.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please link #237 in the comments so we can update the T-complexity at a later point.

@mpharrigan
Copy link
Collaborator Author

At long last I have made the requested changes

@mpharrigan mpharrigan enabled auto-merge (squash) July 19, 2024 21:59
@mpharrigan mpharrigan merged commit 7eac4ff 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