qrisp.QuantumCircuit.u3#

QuantumCircuit.u3(theta, phi, lam, qubits)[source]#

Instruct a U3-gate from given Euler angles.

A U3 gate has the unitary:

\[\begin{split}U3(\theta, \phi, \lambda) = \begin{pmatrix} \cos{(\frac{\theta}{2})} & -\exp{(i\lambda)}\sin{(\frac{\theta}{2})} \\ \exp{(i\phi)} \sin{(\frac{\theta}{2})} & \exp{(i(\phi+\lambda))}\cos{(\frac{\theta}{2})} \end{pmatrix}\end{split}\]
Parameters:
thetafloat or sympy.Symbol

The theta parameter.

phifloat or sympy.Symbol

The phi parameter.

lamfloat or sympy.Symbol

The lambda parameter.

qubitsQubit

The Qubit to apply the u3 gate on.