Skip to content

Commit

Permalink
Fix docstrings for the ionq GPIGate and GPI2Gate
Browse files Browse the repository at this point in the history
Make documented unitary expressions equal to the code below.

Fixes quantumlib#6639
  • Loading branch information
pavoljuhas committed Aug 1, 2024
1 parent c25678e commit c280502
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cirq-ionq/cirq_ionq/ionq_native_gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class GPIGate(cirq.Gate):
$$
\begin{bmatrix}
0 & e^{-i 2\pi\phi} \\
e^{-i2\pi\phi} & 0
e^{i 2\pi\phi} & 0
\end{bmatrix}
$$
Expand Down Expand Up @@ -106,8 +106,8 @@ class GPI2Gate(cirq.Gate):
$$
\frac{1}{\sqrt{2}}
\begin{bmatrix}
1 & -i e^{-i \phi} \\
-i e^{-i \phi} & 1
1 & -i e^{-i 2\pi\phi} \\
-i e^{i 2\pi\phi} & 1
\end{bmatrix}
$$
Expand Down

0 comments on commit c280502

Please sign in to comment.