File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -183,10 +183,10 @@ class MSGate(cirq.Gate):
183183
184184 $$
185185 \begin{bmatrix}
186- cos{\theta} & 0 & 0 & -i*e^{-i*2*\pi(\phi_0+\phi_1)}*sin{\theta} \\
187- 0 & cos{\theta} & -i*e^{-i*2*\pi(\phi_0-\phi_1)}*sin{\theta} & 0 \\
188- 0 & -i*e^{i*2*\pi(\phi_0-\phi_1)}*sin(\theta) & cos{\theta} & 0 \\
189- -i*e^{i*2*\pi(\phi_0+\phi_1)}*sin{\theta} & 0 & 0 & cos{\theta}
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 }
190190 \end{bmatrix}
191191 $$
192192
@@ -202,8 +202,8 @@ def _unitary_(self) -> np.ndarray:
202202 theta = self .theta
203203 phi0 = self .phi0
204204 phi1 = self .phi1
205- diag = np .cos (2 * math .pi * theta )
206- sin = np .sin (2 * math .pi * theta )
205+ diag = np .cos (math .pi * theta )
206+ sin = np .sin (math .pi * theta )
207207
208208 return np .array (
209209 [
You can’t perform that action at this time.
0 commit comments