bloqade.qasm2.u2
← Module overview
function
source
functionu2¶source
bloqade.qasm2.u2
def u2(qarg: Qubit, phi: float, lam: float) -> None2 Parameter single qubit unitary gate.
This is equivalent to u(pi/2,phi,lambda)
Parameters
| Name | Type | Description |
|---|---|---|
qarg | Qubit | The qubit to apply the gate to. |
phi | float | The angle of rotation. |
lam | float | The angle of rotation. |