Site Tools


quantum-gate-single-qubit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
quantum-gate-single-qubit [August 22, 2026 at 18:47] Ivan Janevskiquantum-gate-single-qubit [August 22, 2026 at 18:55] (current) – external edit 127.0.0.1
Line 5: Line 5:
 ## Identity gate ## Identity gate
  
-The **[[quantum-gate-i|Identity]]** gate is the trivial gate that leaves the quantum state unchanged. It is the quantum analog of "do nothing" and appears as a placeholder in circuit padding and theoretical proofs.+**[[quantum-gate-i|Identity]]** gate is the trivial gate that leaves the quantum state unchanged. It is the quantum analog of "do nothing" and appears as a placeholder in circuit padding and theoretical proofs. Self-inverse ($I^2 = I$), it commutes with all gates.
  
-Matrix: $I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$ +$$I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$$
- +
-Property: $I^2 = I$, commutes with all gates.+
  
 ## Pauli X gate ## Pauli X gate
  
-The **[[quantum-gate-x|Pauli X]]** gate flips the qubit: $|0\rangle \leftrightarrow |1\rangle$. It is the quantum analog of the classical NOT gate and is the most fundamental bit-flip operation. +**[[quantum-gate-x|Pauli X]]** gate flips the qubit: $|0\rangle \leftrightarrow |1\rangle$. It is the quantum analog of the classical NOT gate and is the most fundamental bit-flip operation. Self-inverse ($X^2 I$).
- +
-Matrix: $X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$+
  
-Property: $X^2 I(self-inverse).+$$X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$$
  
 ## Pauli Y gate ## Pauli Y gate
  
-The **[[quantum-gate-y|Pauli Y]]** gate combines a bit flip and phase. It rotates around the y-axis of the Bloch sphere.+**[[quantum-gate-y|Pauli Y]]** gate combines a bit flip and phase, rotating around the y-axis of the Bloch sphere. Self-inverse ($Y^2 = I$), though less commonly used directly than X or Z.
  
-Matrix: $Y = \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}$ +$$Y = \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}$$
- +
-Property: $Y^2 = I$ (self-inverse). Less commonly used directly than X or Z.+
  
 ## Pauli Z gate ## Pauli Z gate
  
-The **[[quantum-gate-z|Pauli Z]]** gate applies a phase: $|0\rangle$ unchanged, $|1\rangle \to -|1\rangle$. It leaves the computational basis unchanged but introduces a relative phase.+**[[quantum-gate-z|Pauli Z]]** gate applies a phase: $|0\rangle$ unchanged, $|1\rangle \to -|1\rangle$. It leaves the computational basis unchanged but introduces a relative phase. Self-inverse ($Z^2 = I$).
  
-Matrix: $Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}$ +$$Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}$$
- +
-Property: $Z^2 = I$ (self-inverse).+
  
 ## Hadamard (H) gate ## Hadamard (H) gate
  
-The **[[quantum-gate-h|Hadamard]]** gate creates equal superposition from computational basis states. Essential for quantum algorithms; appears in nearly every quantum circuit.+**[[quantum-gate-h|Hadamard]]** gate creates equal superposition from computational basis states. Essential for quantum algorithms; appears in nearly every quantum circuit. Self-inverse ($H^2 = I$), it maps $|0\rangle \to (|0\rangle + |1\rangle)/\sqrt{2}$ and $|1\rangle \to (|0\rangle - |1\rangle)/\sqrt{2}$.
  
-Matrix: $H = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}$ +$$H = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}$$
- +
-Property: $H^2 = I$ (self-inverse). Creates $|0\rangle \to (|0\rangle + |1\rangle)/\sqrt{2}$ and $|1\rangle \to (|0\rangle - |1\rangle)/\sqrt{2}$.+
  
 ## S (Phase) gate ## S (Phase) gate
  
-The **[[quantum-gate-s|S gate]]** applies a 90° phase to the $|1\rangle$ state. It is a quarter-turn phase gate.+**[[quantum-gate-s|S gate]]** applies a 90° phase to the $|1\rangle$ statea quarter-turn phase gate with $S^2 = Z$ and $S^4 = I$.
  
-Matrix: $S = \begin{pmatrix} 1 & 0 \\ 0 & i \end{pmatrix}$ +$$S = \begin{pmatrix} 1 & 0 \\ 0 & i \end{pmatrix}$$
- +
-Property: $S^2 = Z$, $S^4 = I$.+
  
 ## T gate ## T gate
  
-The **[[quantum-gate-t|T gate]]** applies a 45° phase to the $|1\rangle$ state. Critical for quantum algorithms and fault-tolerant quantum computing.+**[[quantum-gate-t|T gate]]** applies a 45° phase to the $|1\rangle$ state. Critical for quantum algorithms and fault-tolerant quantum computing, it is often called the "magic gate" in quantum error correction ($T^2 = S$, $T^8 = I$).
  
-Matrix: $T = \begin{pmatrix} 1 & 0 \\ 0 & e^{i\pi/4} \end{pmatrix}$ +$$T = \begin{pmatrix} 1 & 0 \\ 0 & e^{i\pi/4} \end{pmatrix}$$
- +
-Property: $T^2 = S$, $T^8 = I$. Often called the "magic gate" in quantum error correction.+
  
 ## RX (Rotation around X) gate ## RX (Rotation around X) gate
  
-The **[[quantum-gate-rx|RX gate]]** is a parameterized rotation around the x-axis of the Bloch sphere by angle $\theta$.+**[[quantum-gate-rx|RX gate]]** is a parameterized rotation around the x-axis of the Bloch sphere by angle $\theta$; $R_X(\pi/2)$ is a half-rotation.
  
-Matrix: $R_X(\theta) = \begin{pmatrix} \cos(\theta/2) & -i\sin(\theta/2) \\ -i\sin(\theta/2) & \cos(\theta/2) \end{pmatrix}$ +$$R_X(\theta) = \begin{pmatrix} \cos(\theta/2) & -i\sin(\theta/2) \\ -i\sin(\theta/2) & \cos(\theta/2) \end{pmatrix}$$
- +
-Special cases: $R_X(\pi) = iX$, $R_X(\pi/2)$ is a half-rotation.+
  
 ## RY (Rotation around Y) gate ## RY (Rotation around Y) gate
  
-The **[[quantum-gate-ry|RY gate]]** is a parameterized rotation around the y-axis of the Bloch sphere by angle $\theta$+**[[quantum-gate-ry|RY gate]]** is a parameterized rotation around the y-axis of the Bloch sphere by angle $\theta$$R_Y(\pi/2)$ creates superposition.
- +
-Matrix: $R_Y(\theta) = \begin{pmatrix} \cos(\theta/2) & -\sin(\theta/2) \\ \sin(\theta/2) & \cos(\theta/2) \end{pmatrix}$+
  
-Special cases: $R_Y(\pi) = iY$, $R_Y(\pi/2)$ creates superposition.+$$R_Y(\theta) = \begin{pmatrix} \cos(\theta/2) & -\sin(\theta/2) \\ \sin(\theta/2) & \cos(\theta/2) \end{pmatrix}$$
  
 ## RZ (Rotation around Z) gate ## RZ (Rotation around Z) gate
  
-The **[[quantum-gate-rz|RZ gate]]** is a parameterized rotation around the z-axis (phase rotation) by angle $\theta$.+**[[quantum-gate-rz|RZ gate]]** is a parameterized rotation around the z-axis (phase rotation) by angle $\theta$; note $R_Z(\pi/2) = S$ and $R_Z(\pi/4) = T$.
  
-Matrix: $R_Z(\theta) = \begin{pmatrix} e^{-i\theta/2} & 0 \\ 0 & e^{i\theta/2} \end{pmatrix}$ +$$R_Z(\theta) = \begin{pmatrix} e^{-i\theta/2} & 0 \\ 0 & e^{i\theta/2} \end{pmatrix}$$
- +
-Special cases: $R_Z(\pi) = iZ$, $R_Z(\pi/2) = S$, $R_Z(\pi/4) = T$.+
  
 ## Universal Single-Qubit (U) gate ## Universal Single-Qubit (U) gate
  
-The **[[quantum-gate-u|Universal U gate]]** is a general single-qubit gate parameterized by three angles. Any single-qubit unitary can be expressed as a U gate, making it universal for single-qubit operations+**[[quantum-gate-u|Universal U gate]]** is a general single-qubit gate parameterized by three angles. Any single-qubit unitary can be expressed as a U gate, making it universal for single-qubit operations; it reduces to HXY, Z, S, T when parameters are set appropriately.
- +
-Matrix: $U(\theta\phi\lambda) = \begin{pmatrix} \cos(\theta/2) & -e^{i\lambda}\sin(\theta/2) \\ e^{i\phi}\sin(\theta/2) & e^{i(\phi+\lambda)}\cos(\theta/2) \end{pmatrix}$+
  
-Property: reduces to HXY, Z, S, T when parameters are set appropriately. General decomposition: any rotation gate sequence can be expressed as a single U gate.+$$U(\theta\phi\lambda) = \begin{pmatrix} \cos(\theta/2) & -e^{i\lambda}\sin(\theta/2) \\ e^{i\phi}\sin(\theta/2) & e^{i(\phi+\lambda)}\cos(\theta/2) \end{pmatrix}$$
  
quantum-gate-single-qubit.md · Last modified: by 127.0.0.1