bloqade.squin.stdlib.broadcast.gate.phased_xz
← Module overview
function
source
functionphased_xz¶source
bloqade.squin.stdlib.broadcast.gate.phased_xz
Signature
def phased_xz(x_rad: float, z_rad: float, axis_phase_rad: float, qubits: ilist.IList[Qubit, Any]) -> NoneApply a PhasedXZ gate to a group of qubits.
Equivalent to Rz(-axis_phase) Rx(x) Rz(axis_phase + z) with angles in radians. The gate is a phased X rotation (axis in the XY plane) followed by a Z rotation.
Parameters
| Name | Type | Description |
|---|---|---|
x_rad | float | X rotation angle in radians. |
z_rad | float | Z rotation angle in radians. |
axis_phase_rad | float | Axis phase (XY plane) in radians. |
qubits | ilist.IList[Qubit, Any] | Target qubits. |