cirq.X¶
-
cirq.X= cirq.X¶ A gate that rotates around the X axis of the Bloch sphere.
The unitary matrix of
XPowGate(exponent=t)is:[[g·c, -i·g·s], [-i·g·s, g·c]]
where:
c = cos(π·t/2) s = sin(π·t/2) g = exp(i·π·t/2).
Note in particular that this gate has a global phase factor ofe^{i·π·t/2} vs the traditionally defined rotation matricesabout the Pauli X axis. Seecirq.Rxfor rotations without the globalphase. The global phase factor can be adjusted by using theglobal_shiftparameter when initializing.cirq.X, the Pauli X gate, is an instance of this gate at exponent=1.