Skip to content

bloqade.qasm2.u2

← Module overview

functionu2source

bloqade.qasm2.u2

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

2 Parameter single qubit unitary gate.

This is equivalent to u(pi/2,phi,lambda)

Parameters

NameTypeDescription
qargQubitThe qubit to apply the gate to.
phifloatThe angle of rotation.
lamfloatThe angle of rotation.
source