Skip to content

bloqade.squin.stdlib.simple.gate.u3

← Module overview

functionu3source

bloqade.squin.stdlib.simple.gate.u3

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

Apply the U3 gate of a 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 around Y axis (radians).
phifloatGlobal phase shift component (radians).
lamfloatZ rotations in decomposition (radians).
qubitQubitTarget qubit.
source