bloqade.squin.stdlib.simple.gate.u3
← Module overview
function
source
functionu3¶source
bloqade.squin.stdlib.simple.gate.u3
def u3(theta: float, phi: float, lam: float, qubit: Qubit)Apply the U3 gate of a qubit.
The applied gate is represented by the unitary matrix given by:
Parameters
| Name | Type | Description |
|---|---|---|
theta | float | Rotation around Y axis (radians). |
phi | float | Global phase shift component (radians). |
lam | float | Z rotations in decomposition (radians). |
qubit | Qubit | Target qubit. |