Skip to content

Commit

Permalink
Fix LaTeX formatting for arbitrary-angle MS gate (#6166)
Browse files Browse the repository at this point in the history
  • Loading branch information
jli0108 committed Jun 27, 2023
1 parent f4605da commit 228c7e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cirq-ionq/cirq_ionq/ionq_native_gates.py
Expand Up @@ -179,14 +179,14 @@ def __pow__(self, power):
class MSGate(cirq.Gate):
r"""The Mølmer–Sørensen (MS) gate is a two qubit gate native to trapped ions.
The unitary matrix of this gate for parameters $\phi_0$, $\phi_1$ and $\theta is
The unitary matrix of this gate for parameters $\phi_0$, $\phi_1$ and $\theta$ is
$$
\begin{bmatrix}
cos{\theta/2} & 0 & 0 & -i*e^{-i*2*\pi(\phi_0+\phi_1)}*sin{\theta/2} \\
0 & cos{\theta/2} & -i*e^{-i*2*\pi(\phi_0-\phi_1)}*sin{\theta/2} & 0 \\
0 & -i*e^{i*2*\pi(\phi_0-\phi_1)}*sin(\theta/2) & cos{\theta/2} & 0 \\
-i*e^{i*2*\pi(\phi_0+\phi_1)}*sin{\theta/2} & 0 & 0 & cos{\theta/2}
\cos\frac{\theta}{2} & 0 & 0 & -ie^{-i2\pi(\phi_0+\phi_1)}\sin\frac{\theta}{2} \\
0 & \cos\frac{\theta}{2} & -ie^{-i2\pi(\phi_0-\phi_1)}\sin\frac{\theta}{2} & 0 \\
0 & -ie^{i2\pi(\phi_0-\phi_1)}\sin\frac{\theta}{2} & \cos\frac{\theta}{2} & 0 \\
-ie^{i2\pi(\phi_0+\phi_1)}\sin\frac{\theta}{2} & 0 & 0 & \cos\frac{\theta}{2}
\end{bmatrix}
$$
Expand Down

0 comments on commit 228c7e6

Please sign in to comment.