Controlled phase gate (source code)

= Controlled phase gate
{title2=$CP(\phi)$}

The <controlled phase gate> contributes $e^{i\phi}$ exactly when both of its computational-basis input bits are one. It is diagonal and symmetric between its two <qubits>.