bloqade.native.stdlib.simple.u3
← Module overview
function
source
functionu3¶source
bloqade.native.stdlib.simple.u3
def u3(theta: float, phi: float, lam: float, qubit: qubit.Qubit)Apply the U3 gate on a single qubit.
The applied gate is represented by the unitary matrix given by:
Parameters
| Name | Type | Description |
|---|---|---|
theta | float | Rotation angle around the Y axis in radians. |
phi | float | Rotation angle around the Z axis in radians. |
lam | float | Rotation angle around the Z axis in radians. |
qubit | qubit.Qubit | The qubit to apply the U3 gate to. |