cirq.CNOT = cirq.CNOT

A gate that applies a controlled power of an X gate.

When applying CNOT (controlled-not) to qubits, you can either use
positional arguments CNOT(q1, q2), where q2 is toggled when q1 is on,
or named arguments CNOT(control=q1, target=q2).
(Mixing the two is not permitted.)

The unitary matrix of CNotPowGate(exponent=t) is:

[[1, 0, 0, 0],
 [0, 1, 0, 0],
 [0, 0, g·c, -i·g·s],
 [0, 0, -i·g·s, g·c]]


c = cos(π·t/2)
s = sin(π·t/2)
g = exp(i·π·t/2).
cirq.CNOT, the controlled NOT gate, is an instance of this gate at