The X Gate Swaps Computational Basis States
The X gate exchanges the two computational basis states and swaps their amplitudes in a superposition.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Its basis action is \(X\lvert0\rangle=\lvert1\rangle\) and \(X\lvert1\rangle=\lvert0\rangle\).
Trace an input with unequal amplitudes
If the amplitudes were \(3/5,4/5\), the output amplitudes become \(4/5,3/5\). This swaps the corresponding measurement probabilities. See squared-magnitude probabilities.
Check two applications
Swapping twice restores both amplitudes. The operation is its own inverse. Inverse mappings provide the analogous property for ordinary discrete transformations.[1][2]