Phase Gates
The S gate rotates phase by 90 degrees and the T gate by 45 degrees, enabling fine-grained control over interference
Source: mortalapps.com- Phase gates perform fractional rotations around the Z-axis of the Bloch sphere.
- The S gate performs a 90-degree (π/2 radians) rotation; S^2 = Z.
- The T gate performs a 45-degree (π/4 radians) rotation; T^2 = S.
- Neither gate is self-inverse; their inverses are S† and T†.
- These gates alter the relative phase without changing computational basis measurement probabilities.
- The T gate is a critical, resource-intensive 'non-Clifford' gate required for universal quantum computing.
Why This Matters
While the Pauli-Z gate performs a 180-degree phase flip, quantum algorithms often require much finer control over the relative phase of a qubit. This is where the Phase Gates, specifically the S Gate and the T Gate, come in. These gates perform fractional rotations around the Z-axis of the Bloch sphere, allowing us to adjust the relative phase by 90 degrees and 45 degrees, respectively. These fractional phase shifts are essential for creating quantum interference patterns and are critical building blocks for universal quantum computation.
Core Intuition
Imagine a clock face. The Pauli-Z gate is like moving the minute hand halfway around the clock (a 180-degree turn, or 30 minutes). The S gate is like moving the hand a quarter of the way around (a 90-degree turn, or 15 minutes). The T gate is even finer, moving the hand an eighth of the way around (a 45-degree turn, or 7.5 minutes). These gates do not change how far the hand is from the center (the probability amplitudes remain equal), but they change the exact direction the hand points (the relative phase), which determines how the state will interfere with other states later in the computation.
Visualization
Technical Explanation
The Phase Gates are represented by diagonal unitary matrices that generalize the Z gate. The S Gate (also known as the $\pi/2$ phase gate) is represented by: $S = \begin{pmatrix} 1 & 0 \\ 0 & i \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & e^{i\pi/2} \end{pmatrix}$. When applied to the basis states, it leaves $|0\rangle$ unchanged and maps $|1\rangle$ to $i|1\rangle$, corresponding to a 90-degree rotation around the Z-axis of the Bloch sphere. Note that $S^2 = Z$. The T Gate (also known as the $\pi/4$ phase gate) is represented by: $T = \begin{pmatrix} 1 & 0 \\ 0 & e^{i\pi/4} \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & \frac{1+i}{\sqrt{2}} \end{pmatrix}$. It leaves $|0\rangle$ unchanged and maps $|1\rangle$ to $e^{i\pi/4}|1\rangle$, corresponding to a 45-degree rotation around the Z-axis. Note that $T^2 = S$. Neither gate is self-inverse; their inverses are their conjugate transposes, $S^\dagger$ and $T^\dagger$, which rotate in the opposite direction.