bloqade.qasm3.u
← Module overview
function
source
functionu¶source
bloqade.qasm3.u
def u(qarg: Qubit, theta: float, phi: float, lam: float) -> NoneApply a general single-qubit unitary U(theta, phi, lam).
Parameters
| Name | Type | Description |
|---|---|---|
qarg | Qubit | The qubit to apply the gate to. |
theta | float | The theta parameter. |
phi | float | The phi parameter. |
lam | float | The lambda parameter. |