-
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
Introduce new op types GPI
, GPI2
and AAMS
#1329
Conversation
481bb61
to
15c6455
Compare
More tests.
15c6455
to
677b978
Compare
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! Only a small problem with the docs
pytket/binders/circuit/main.cpp
Outdated
":math:`(\\theta, \\phi_0, \\phi_1) \\mapsto \\left[ " | ||
"\\begin{array}{cccc} \\cos\\frac{\\pi\\theta}{2} & 0 & 0 & " | ||
"-ie^{-i\\pi{\\phi_0+\\phi_1}}\\sin\\frac{\\pi\\theta}{2} \\\\ " | ||
"0 & " | ||
"\\cos\\frac{\\pi\\theta}{2} & " | ||
"-ie^{i\\pi{\\phi_0-\\phi_1}}\\sin\\frac{\\pi\\theta}{2} & 0 \\\\ 0 " | ||
"& " | ||
"-ie^{i\\pi{\\phi_0-\\phi_1}}\\sin\\frac{\\pi\\theta}{2} & " | ||
"\\cos\\frac{\\pi\\theta}{2} & 0 \\\\ " | ||
"-ie^{i\\pi{\\phi_0+\\phi_1}}\\sin\\frac{\\pi\\theta}{2} & 0 & 0 & " | ||
"\\cos\\frac{\\pi\\theta}{2} \\end{array} \\right]`") |
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.
missing parentheses in the exponents
e.g.
-ie^{-i\\pi{\\phi_0+\\phi_1}}\\sin\\frac{\\pi\\theta}{2}
should be
-ie^{-i\\pi(\\phi_0+\\phi_1)}\\sin\\frac{\\pi\\theta}{2}
same problem in OpType.hpp
also the exponent of the second non-zero entry in the second row should be
i\pi(\phi_1-\phi_0)
instead of i\pi(\phi_0-\phi_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.
Good spot, thanks.
PR has been merged, but PR status not updated for some reason. |
Closing this manually as github problems prevented it from being closed when merged. |
Description
Add the IonQ native ops defined here.
Related issues
Closes #1259 .
Checklist