Table of Contents

P gate (Phase gate)

P gate applies a phase $e^{i\theta}$ to the $|1\rangle$ state, leaving $|0\rangle$ unchanged. It is a parameterized single-qubit gate that rotates around the z-axis on the Bloch sphere. With specific angle choices, the P gate becomes S ($\theta = \pi/2$), T ($\theta = \pi/4$), or Z ($\theta = \pi$).

Matrix:

$$P(\theta) = \begin{pmatrix} 1 & 0 \\ 0 & e^{i\theta} \end{pmatrix}$$

Action: $P(\theta)|0\rangle = |0\rangle$, $P(\theta)|1\rangle = e^{i\theta}|1\rangle$ (adds phase $\theta$ to $|1\rangle$).

Properties

Special cases

Common instances of the P gate with specific angles:

Relation to rotations

The P gate is a special case of the RZ rotation gate:

$$P(\theta) = R_Z(\theta) = \begin{pmatrix} e^{-i\theta/2} & 0 \\ 0 & e^{i\theta/2} \end{pmatrix} \times e^{i\theta/2}$$

The difference is a global phase factor that doesn't affect measurement outcomes. On superconducting qubits, P gates are typically implemented as virtual RZ rotations via reference frame adjustment.

Uses

Implementation

Relations