Knowledge base
The Pauli-Z gate is a single-qubit rotation through π\piπ radians around the z-axis.
Z=σz=σ3=(100−1)\ Z = \sigma_z = \sigma_3 = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} Z=σz=σ3=(100−1)
Examples: