cirq.H¶
-
cirq.H= cirq.H¶ A Gate that performs a rotation around the X+Z axis of the Bloch sphere.
The unitary matrix of
HPowGate(exponent=t)is:[[g·(c-i·s/sqrt(2)), -i·g·s/sqrt(2)], [-i·g·s/sqrt(2)], g·(c+i·s/sqrt(2))]]
where
c = cos(π·t/2) s = sin(π·t/2) g = exp(i·π·t/2).
Note in particular that for
t=1, this gives the Hadamard matrix.cirq.H, the Hadamard gate, is an instance of this gate atexponent=1.