Skip to content

bloqade.qasm2.glob.u

← Module overview

functionusource

bloqade.qasm2.glob.u

Signature
def u(registers: ilist.IList[QReg, Any] | list, theta: float, phi: float, lam: float) -> None

Apply a U gate to all qubits in the input registers.

Parameters

NameTypeDescription
registersilist.IList[QReg, Any] | listThe registers to apply the gate to.
thetafloatThe angle theta.
phifloatThe angle phi.
lamfloatThe angle lam.
source