Skip to content

Commit c35ccff

Browse files
fixed XPowGate matrix description (#5946)
1 parent 2674f6c commit c35ccff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cirq-core/cirq/ops/common_gates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ class XPowGate(eigen_gate.EigenGate):
7272
7373
The unitary matrix of `cirq.XPowGate(exponent=t, global_shift=s)` is:
7474
$$
75-
e^{i \pi s t}
75+
e^{i \pi t (s + 1/2)}
7676
\begin{bmatrix}
77-
e^{i \pi t /2} \cos(\pi t) & -i e^{i \pi t /2} \sin(\pi t) \\
78-
-i e^{i \pi t /2} \sin(\pi t) & e^{i \pi t /2} \cos(\pi t)
77+
\cos(\pi t /2) & -i \sin(\pi t /2) \\
78+
-i \sin(\pi t /2) & \cos(\pi t /2)
7979
\end{bmatrix}
8080
$$
8181

0 commit comments

Comments
 (0)