Pauli-Z gate

The Pauli-Z gate is a single-qubit rotation through π\pi radians around the z-axis.

 Z=σz=σ3=(1001)\ Z = \sigma_z = \sigma_3 = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}

Examples: