Skip to content

bloqade.qasm3.u

← Module overview

functionusource

bloqade.qasm3.u

def u(qarg: Qubit, theta: float, phi: float, lam: float) -> None

Apply a general single-qubit unitary U(theta, phi, lam).

Parameters

NameTypeDescription
qargQubitThe qubit to apply the gate to.
thetafloatThe theta parameter.
phifloatThe phi parameter.
lamfloatThe lambda parameter.
source