bloqade.qasm2.glob.u
← Module overview
function
source
functionu¶source
bloqade.qasm2.glob.u
Signature
def u(registers: ilist.IList[QReg, Any] | list, theta: float, phi: float, lam: float) -> NoneApply a U gate to all qubits in the input registers.
Parameters
| Name | Type | Description |
|---|---|---|
registers | ilist.IList[QReg, Any] | list | The registers to apply the gate to. |
theta | float | The angle theta. |
phi | float | The angle phi. |
lam | float | The angle lam. |