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 of
e^{i·π·t/2} vs the traditionally defined rotation matrices
about the Pauli X axis. See cirq.Rx for rotations without the global
phase. The global phase factor can be adjusted by using the global_shift
parameter when initializing.

cirq.X, the Pauli X gate, is an instance of this gate at exponent=1.