Table of Contents

CP gate

CP gate (controlled-phase) applies a phase to the $|11\rangle$ state, parameterized by angle $\theta$.

Matrix:

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

Special case: $\text{CP}(\pi) = \text{CZ}$.

Relation to other gates

Properties

Uses

Relation to xx/yy/zz

Implementation