qrisp.QuantumCircuit.prx#
- QuantumCircuit.prx(alpha: FloatLike, beta: FloatLike, qubits: QubitLike)[source]#
Instruct a PRX (Phased-RX) gate.
The unitary is
\[\begin{split}\text{PRX}(\alpha, \beta) = R_Z(\beta) R_X(\alpha) R_Z(-\beta) = \begin{pmatrix} \cos\!\tfrac{\alpha}{2} & -i e^{-i\beta}\sin\!\tfrac{\alpha}{2} \\ -i e^{i\beta}\sin\!\tfrac{\alpha}{2} & \cos\!\tfrac{\alpha}{2} \end{pmatrix}\end{split}\]- Parameters:
- alphaFloatLike
Rotation angle in radians. Controls the amount of rotation.
- betaFloatLike
Phase angle in radians. Selects the rotation axis in the XY plane.
- qubitsQubitLike
The qubit to apply the gate on.