-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add Clifford.from_operation
to shortcut checking matrix representation
#9576
Comments
See more details here: #9475 (comment) |
It would be also good to directly create Additionally, it would be nice to create |
The main question is whether |
See the discussion in #9582 |
From #9475:
@ShellyGarion 's comment is hinting that another thing that would be nice to have is something like
Clifford.from_operation
or similar, that could rely on methods that might be quicker than generating and checking the unitary matrix representation.For example, checking if the
name
is in the list of hard coded names in_BASIS_1Q
/_BASIS_2Q
to know if anInstruction
is Clifford, or utilizing the equivalence library to see if aGate
has an all Clifford decomposition, or for cases like the parameterized rotations where there may be a simple arithmetic check on theparams
to know if it is Clifford.Additionally, the same methods could be available to know quickly if an unknown operation
is_clifford
.Opening this issue to discuss how and where we can include such checks for
Clifford
, and for the otherOperation
subclasses more generally.The text was updated successfully, but these errors were encountered: