Skip to content

Commit 228c7e6

Browse files
authored
Fix LaTeX formatting for arbitrary-angle MS gate (#6166)
1 parent f4605da commit 228c7e6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cirq-ionq/cirq_ionq/ionq_native_gates.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@ def __pow__(self, power):
179179
class MSGate(cirq.Gate):
180180
r"""The Mølmer–Sørensen (MS) gate is a two qubit gate native to trapped ions.
181181
182-
The unitary matrix of this gate for parameters $\phi_0$, $\phi_1$ and $\theta is
182+
The unitary matrix of this gate for parameters $\phi_0$, $\phi_1$ and $\theta$ is
183183
184184
$$
185185
\begin{bmatrix}
186-
cos{\theta/2} & 0 & 0 & -i*e^{-i*2*\pi(\phi_0+\phi_1)}*sin{\theta/2} \\
187-
0 & cos{\theta/2} & -i*e^{-i*2*\pi(\phi_0-\phi_1)}*sin{\theta/2} & 0 \\
188-
0 & -i*e^{i*2*\pi(\phi_0-\phi_1)}*sin(\theta/2) & cos{\theta/2} & 0 \\
189-
-i*e^{i*2*\pi(\phi_0+\phi_1)}*sin{\theta/2} & 0 & 0 & cos{\theta/2}
186+
\cos\frac{\theta}{2} & 0 & 0 & -ie^{-i2\pi(\phi_0+\phi_1)}\sin\frac{\theta}{2} \\
187+
0 & \cos\frac{\theta}{2} & -ie^{-i2\pi(\phi_0-\phi_1)}\sin\frac{\theta}{2} & 0 \\
188+
0 & -ie^{i2\pi(\phi_0-\phi_1)}\sin\frac{\theta}{2} & \cos\frac{\theta}{2} & 0 \\
189+
-ie^{i2\pi(\phi_0+\phi_1)}\sin\frac{\theta}{2} & 0 & 0 & \cos\frac{\theta}{2}
190190
\end{bmatrix}
191191
$$
192192

0 commit comments

Comments
 (0)