skip to content
Ivan's wiki
Site Tools
Search
Tools
Show pagesource
Backlinks
Recent Changes
Media Manager
Sitemap
>
Recent Changes
Media Manager
Sitemap
rotation-gates
This page is read only. You can view the source, but not change it.
# Rotation gates **Rotation gates** $R_x(\theta)$, $R_y(\theta)$, $R_z(\theta)$ are single-qubit gates that rotate the [Bloch vector](/bloch-sphere) by angle $\theta$ about the $x$-, $y$-, and $z$-axes respectively. They are defined via the matrix exponential of the corresponding [Pauli matrices](/pauli-gates): $$R_x(\theta) = e^{-i\theta X/2} \qquad R_y(\theta) = e^{-i\theta Y/2} \qquad R_z(\theta) = e^{-i\theta Z/2}$$ ## Matrix form Using $e^{-i\theta P/2} = \cos(\theta/2)I - i\sin(\theta/2)P$ (which follows from $P^2 = I$ for any Pauli $P$): $$R_x(\theta) = \begin{pmatrix}\cos\frac{\theta}{2} & -i\sin\frac{\theta}{2}\\[4pt] -i\sin\frac{\theta}{2} & \cos\frac{\theta}{2}\end{pmatrix} \qquad R_y(\theta) = \begin{pmatrix}\cos\frac{\theta}{2} & -\sin\frac{\theta}{2}\\[4pt] \sin\frac{\theta}{2} & \cos\frac{\theta}{2}\end{pmatrix} \qquad R_z(\theta) = \begin{pmatrix}e^{-i\theta/2} & 0\\[4pt] 0 & e^{i\theta/2}\end{pmatrix}$$ ## Special cases and universality The [Pauli gates](/pauli-gates) are $\pi$ rotations: $X = iR_x(\pi)$, $Y = iR_y(\pi)$, $Z = iR_z(\pi)$. The [Hadamard gate](/h-gate) is (up to global phase) $H = R_y(\pi/2)R_z(\pi)$. Any single-qubit unitary (up to global phase) can be written as a composition of rotation gates via the Euler angle decomposition $U = R_z(\alpha)R_y(\beta)R_z(\gamma)$. This makes the rotation gates the natural building blocks for single-qubit control and the foundation of the [U gate](/u-gate) parameterization. ## Individual gates - [$R_x(\theta)$](/rx-gate) - [$R_y(\theta)$](/ry-gate) - [$R_z(\theta)$](/rz-gate) ## List of code implementations - [Rotation gates (Qiskit)](/r-gate-qiskit) - [Rotation gates (cuStateVec)](/r-gate-custatevec) - [Rotation gates (CUDA-Q)](/r-gate-cudaq)
Page Tools
Show pagesource
Backlinks
Back to top