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

[Decomposition] Add support for other operators #7043

Open
wants to merge 10 commits into
base: decomp-some-ops
Choose a base branch
from

Conversation

PietropaoloFrisoni
Copy link
Contributor

@PietropaoloFrisoni PietropaoloFrisoni commented Mar 4, 2025

Please ignore the name of this branch

Context:

This PR aims to support more operators for the decomposition effort.

Benefits: Contributions to new PL decompositions effort

[sc-84332]

@PietropaoloFrisoni PietropaoloFrisoni changed the base branch from master to decomp-some-ops March 4, 2025 21:22
@PietropaoloFrisoni PietropaoloFrisoni changed the title Decomposition of BasisRotation Add support for other operators Mar 4, 2025
@PietropaoloFrisoni PietropaoloFrisoni changed the title Add support for other operators [Decomposition] Add support for other operators Mar 4, 2025
@@ -891,6 +931,32 @@ def compute_decomposition(wires): # pylint: disable=arguments-differ
]


def _ccz_resources():
return {qml.CNOT: 6, qml.adjoint(qml.T): 3, qml.T: 4, qml.Hadamard: 2}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return {qml.CNOT: 6, qml.adjoint(qml.T): 3, qml.T: 4, qml.Hadamard: 2}
return {qml.CNOT: 6, qml.adjoint_resource_rep(qml.T, {}): 3, qml.T: 4, qml.Hadamard: 2}

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