phased_x¶
- guppylang.std.qsystem.helios.phased_x(q: qubit, angle1: angle, angle2: angle) None[source]¶
phased_x gate command.
\[\begin{split}\mathrm{PhasedX}(\theta_1, \theta_2)= \mathrm{Rz}(\theta_2)\mathrm{Rx}(\theta_1)\mathrm{Rz}(-\theta_2) = \begin{pmatrix} \cos(\frac{ \theta_1}{2}) & -i e^{-i \theta_2}\sin(\frac{\theta_1}{2})\\ -i e^{i \theta_2}\sin(\frac{\theta_1}{2}) & \cos(\frac{\theta_1}{2}) \end{pmatrix}\end{split}\]