Skip to main content

U2Gate

Function U2Gate 

Source
pub fn U2Gate() -> UnitaryExpression
Expand description

The single-qubit U2 gate.

$$ U2(\phi, \lambda) = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & -e^{i\lambda} \\ e^{i\phi} & e^{i(\phi+\lambda)} \end{pmatrix} $$