Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c280502

Browse files
committedAug 1, 2024
Fix docstrings for the ionq GPIGate and GPI2Gate
Make documented unitary expressions equal to the code below. Fixes quantumlib#6639
1 parent c25678e commit c280502

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎cirq-ionq/cirq_ionq/ionq_native_gates.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class GPIGate(cirq.Gate):
3131
$$
3232
\begin{bmatrix}
3333
0 & e^{-i 2\pi\phi} \\
34-
e^{-i2\pi\phi} & 0
34+
e^{i 2\pi\phi} & 0
3535
\end{bmatrix}
3636
$$
3737
@@ -106,8 +106,8 @@ class GPI2Gate(cirq.Gate):
106106
$$
107107
\frac{1}{\sqrt{2}}
108108
\begin{bmatrix}
109-
1 & -i e^{-i \phi} \\
110-
-i e^{-i \phi} & 1
109+
1 & -i e^{-i 2\pi\phi} \\
110+
-i e^{i 2\pi\phi} & 1
111111
\end{bmatrix}
112112
$$
113113

0 commit comments

Comments
 (0)
Please sign in to comment.