-
Notifications
You must be signed in to change notification settings - Fork 48
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
Methods for GPI, GPI2, and AAMS gates. #1395
Conversation
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.
Thanks! Please could you also add a method to convert a CX gate, and add some C++ tests to get the coverage up? Otherwise looks great.
Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com>
I added |
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.
Thank you for your work on this.
My pleasure. |
Description
Fix
GPI2
inpytket
(a typo in the binder would causec.GPI2
to returnc.GPI
).Add symbolic
GPI
,GPI2
, andAAMS
gates.Add methods to decompose the following gates to
GPI
,GPI2
, andAAMS
:-
Rx
,Ry
,Rz
,-
XXPhase
,YYPhase
,ZZPhase
,-
TK1
,TK2
.Support the target gateset
(GPI, GPI2, AAMS)
in theauto_rebase_pass
.Add the transform
rebase_ionq
. It decomposes the gates in the source circuit to the IonQ native gateset(GPI, GPI2, AAMS)
. It does not push theRz
's in the source circuit to the end of the target circuit using commutation relations with the target gates.Related issues
Resolves #1361.
Checklist