Skip to content

bloqade.squin.stdlib.broadcast.gate.phased_xz

← Module overview

functionphased_xzsource

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]) -> None

Apply 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

NameTypeDescription
x_radfloatX rotation angle in radians.
z_radfloatZ rotation angle in radians.
axis_phase_radfloatAxis phase (XY plane) in radians.
qubitsilist.IList[Qubit, Any]Target qubits.
source