Table of Contents

S Gate (Phase Gate)

S gate applies a 90° phase to the $|1\rangle$ state, also called the phase gate or $\sqrt{Z}$ (since $S^2 = Z$).

Matrix:

$$S = \begin{pmatrix} 1 & 0 \\ 0 & i \end{pmatrix}$$

Action: $S|0\rangle = |0\rangle$, $S|1\rangle = i|1\rangle$ (adds $\pi/2$ phase to $|1\rangle$).

Properties

Relation to Z

$$S = R_Z(\pi/2) = e^{-i\pi Z/4}$$

$$Z = S^2 = R_Z(\pi)$$

$$T = S/\sqrt{-i} \approx S^{1/2}$$

Uses

Implementation