Skip to content

Commit 9c836ba

Browse files
authored
fix error on msgate unitary matrix (#6645)
1 parent 4b8e8e4 commit 9c836ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cirq-ionq/cirq_ionq/ionq_native_gates.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,16 @@ def __pow__(self, power):
177177

178178
@cirq.value.value_equality
179179
class MSGate(cirq.Gate):
180-
r"""The MølmerSørensen (MS) gate is a two qubit gate native to trapped ions.
180+
r"""The Mølmer-Sørensen (MS) gate is a two qubit gate native to trapped ions.
181181
182182
The unitary matrix of this gate for parameters $\phi_0$, $\phi_1$ and $\theta$ is
183183
184184
$$
185185
\begin{bmatrix}
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}
186+
\cos(\pi \theta) & 0 & 0 & -ie^{-i2\pi(\phi_0+\phi_1)}\sin(\pi\theta) \\
187+
0 & \cos(\pi\theta) & -ie^{-i2\pi(\phi_0-\phi_1)}\sin(\pi\theta) & 0 \\
188+
0 & -ie^{i2\pi(\phi_0-\phi_1)}\sin(\pi\theta) & \cos(\pi\theta) & 0 \\
189+
-ie^{i2\pi(\phi_0+\phi_1)}\sin(\pi\theta) & 0 & 0 & \cos(\pi\theta)
190190
\end{bmatrix}
191191
$$
192192

0 commit comments

Comments
 (0)