cirq.CZ

The controlled Z gate.

Used in the notebooks

Used in the tutorials

This is the exponent=1 instance of cirq.CZPowGate.

The unitary matrix of this gate is (empty elements are \(0\)):

\[ \begin{bmatrix} 1 & & & \\ & 1 & & \\ & & 1 & \\ & & & -1 \end{bmatrix} \]