-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Typo in docstring for GPI2 gate #6639
Comments
Cirq cycn: Ionq folks, can you comment whether this should be positive or negative signed? |
TODO(@pavoljuhas) - contact ionq folks about this |
The suggestion looks good given the unitary matrix below - however the docstring seems to be missing the 2π factor. Cirq/cirq-ionq/cirq_ionq/ionq_native_gates.py Lines 120 to 123 in f5566b6
@Cynocracy or @splch - can you please confirm? |
@pavoljuhas can confirm, updating the comment to match the unitary function* sgtm. The 2pi factor comes from, aiui, the phase argument being expressed in units of turns, and should be present in the doc string as well, if phi there is intended to be the phase argument |
Make documented unitary expressions equal to the code below. Fixes quantumlib#6639
@Cynocracy - thanks for a quick response. Can you PTAL at #6694? |
There seems to be a typo in the docstring for the GPI2 gate:
Cirq/cirq-ionq/cirq_ionq/ionq_native_gates.py
Lines 101 to 156 in ab96766
according to https://ionq.com/docs/getting-started-with-native-gates, the 10-component int the matrix should be$-i \exp{i \phi}$ and not $-i\exp(-i \phi)$
The text was updated successfully, but these errors were encountered: