Skip to content

bloqade.native.stdlib.simple.u3

← Module overview

functionu3source

bloqade.native.stdlib.simple.u3

def u3(theta: float, phi: float, lam: float, qubit: qubit.Qubit)

Apply the U3 gate on a single qubit.

The applied gate is represented by the unitary matrix given by:

U3(θ,ϕ,λ)=Rz(ϕ)Ry(θ)Rz(λ)U3(\theta, \phi, \lambda) = R_z(\phi)R_y(\theta)R_z(\lambda)

Parameters

NameTypeDescription
thetafloatRotation angle around the Y axis in radians.
phifloatRotation angle around the Z axis in radians.
lamfloatRotation angle around the Z axis in radians.
qubitqubit.QubitThe qubit to apply the U3 gate to.
source