quantum-gate-cx
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| quantum-gate-cx [August 26, 2026 at 16:46] – created - external edit 127.0.0.1 | quantum-gate-cx [August 26, 2026 at 17:28] (current) – Ivan Janevski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | # CX (Controlled NOT) | + | # CX gate (Controlled-NOT) |
| - | **CX** (also written CNOT or controlled-not) is the most common two-qubit gate: flips the target qubit if the control qubit is $|1\rangle$. Essential for creating entanglement. | + | **CX gate** (or **CNOT gate**, **Controlled-NOT gate**) is the most common two-qubit gate: flips the target qubit if the control qubit is $|1\rangle$. Essential for creating entanglement. |
| Matrix (control on qubit 0, target on qubit 1): | Matrix (control on qubit 0, target on qubit 1): | ||
| - | $$\text{CX} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \end{pmatrix}$$ | + | $$\text{CX} = \text{CNOT} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \end{pmatrix}$$ |
| Action on basis states: | Action on basis states: | ||
quantum-gate-cx.1787762801.md.gz · Last modified: by 127.0.0.1
