Skip to content

bloqade.native.stdlib.broadcast.u3

← Module overview

functionu3source

bloqade.native.stdlib.broadcast.u3

Signature
def u3(theta: float, phi: float, lam: float, qubits: ilist.IList[qubit.Qubit, Any])

Apply the U3 gate on a group of qubits.

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).
qubitsilist.IList[qubit.Qubit, Any]Target qubits.
source