Phase Gate (S Gate)

Matrix Representation
The Phase Gate SSS is represented by the matrix:

Effect on Basis States

Truth Table of the Phase Gate
Since quantum gates don’t behave like classical logic gates (they act on quantum states, not binary bits), we use a quantum truth table that shows the input state and output state.
Input State | Output State after S Gate |
---|---|
( | 0⟩ ) |
( | 1⟩ ) |