skip to content
Ivan's wiki
Site Tools
Search
Tools
Show pagesource
Backlinks
Recent Changes
Media Manager
Sitemap
>
Recent Changes
Media Manager
Sitemap
x-gate
This page is read only. You can view the source, but not change it.
# X gate **X gate** (or **Pauli-X gate**, or **quantum NOT gate**) is a single-qubit gate that flips $\lvert 0\rangle$ to $\lvert 1\rangle$ and $\lvert 1\rangle$ to $\lvert 0\rangle$, making it the quantum analog of a classical NOT gate. It is one of the three [Pauli gates](/pauli-gates). $$X = \begin{pmatrix}0 & 1\\ 1 & 0\end{pmatrix}$$ The gate flips the computational basis states and leaves the Hadamard basis states ($\lvert +\rangle$, $\lvert -\rangle$) unchanged, since those are its eigenstates: $$X\lvert 0\rangle = \lvert 1\rangle \qquad X\lvert 1\rangle = \lvert 0\rangle$$ $$X\lvert +\rangle = \lvert +\rangle \qquad X\lvert -\rangle = \lvert -\rangle$$ On the [Bloch sphere](/bloch-sphere), $X$ corresponds to a rotation of $\pi$ radians about the $x$-axis. Applying the gate twice returns the qubit to its original state — this is the involution property, $X^2 = I$, shared by all Pauli gates. The $X$ gate appears in virtually every quantum algorithm as the quantum equivalent of setting or flipping a bit. ## List of code implementations - [X gate (Qiskit)](/x-gate-qiskit) - [X gate (cuStateVec)](/x-gate-custatevec) - [X gate (CUDA-Q)](/x-gate-cudaq)
Page Tools
Show pagesource
Backlinks
Back to top