quantum-gate-three-qubit
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| quantum-gate-three-qubit [August 26, 2026 at 16:53] – created - external edit 127.0.0.1 | quantum-gate-three-qubit [August 26, 2026 at 17:49] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| # Three-qubit gates | # Three-qubit gates | ||
| - | **Three-qubit gates** act on three qubits, typically as controlled versions | + | **Three-qubit gates** |
| - | ## CCX (Toffoli) | + | A three-qubit gate is applied to a joint state $|\psi\rangle \in \mathbb{C}^8$ to produce $U|\psi\rangle$. Most three-qubit gates used in practice are doubly-controlled versions of single-qubit gates (CCX, CCY, CCZ, CCRx, CCRy, CCRz, CCP) or controlled two-qubit gates (CSWAP, CiSWAP): two control qubits or one control plus a two-qubit operation, rather than an arbitrary point in $\mathrm{SU}(8)$. |
| - | **[[quantum-gate-ccx|CCX]]** (also Toffoli or Controlled-Controlled-X) is the three-qubit version | + | Nearly all of them decompose into CNOT and single-qubit |
| - | Action: $|a\rangle|b\rangle|c\rangle \to |a\rangle|b\rangle|c \oplus (a \wedge b)\rangle$ | + | ## List of gates |
| - | $$\text{Toffoli} = \begin{pmatrix} 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \end{pmatrix}$$ | + | - [[quantum-gate-ccx|CCX (Toffoli)]] |
| + | - [[quantum-gate-ccy|CCY (Controlled-Controlled-Y)]] | ||
| + | - [[quantum-gate-ccz|CCZ (Controlled-Controlled-Z)]] | ||
| + | - [[quantum-gate-cswap|CSWAP (Fredkin)]] | ||
| + | - [[quantum-gate-ciswap|CiSWAP (Controlled-iSWAP)]] | ||
| + | - [[quantum-gate-ccp|CCP (Controlled-Controlled-Phase)]] | ||
| + | - [[quantum-gate-ccrx|CCRx (Controlled-Controlled-RX)]] | ||
| + | - [[quantum-gate-ccry|CCRy (Controlled-Controlled-RY)]] | ||
| + | - [[quantum-gate-ccrz|CCRz (Controlled-Controlled-RZ)]] | ||
| - | Basis action: flips target qubit only for $|11c\rangle$ states. Basis mapping: $|110\rangle \to |111\rangle$ and $|111\rangle \to |110\rangle$. | + | ## Genuine tripartite entanglement |
| - | ## CCY (Controlled-Controlled-Y) | + | Two-qubit entanglement is a single number: concurrence, |
| - | **[[quantum-gate-ccy|CCY]]** (Controlled-Controlled-Y) applies Y to the target qubit if both control qubits are $|1\rangle$. Like CCX, it is an asymmetric doubly-controlled gate but less commonly native. It can be decomposed into CCX plus phase gates on the target. | + | $\mathrm{GHZ} = \frac{|000\rangle |
| - | $$\text{CCY} = \begin{pmatrix} 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & -i \\ 0 & 0 & 0 & 0 & 0 & 0 & i & 0 \end{pmatrix}$$ | + | **GHZ-class** states, produced by a Hadamard followed by CCZ-style correlation (e.g. $H \otimes I \otimes I$ then CCX-chained), have maximal three-way correlation but lose all entanglement if any one qubit is traced out. **W-class** states keep some pairwise entanglement between any two of the three qubits even after tracing out the third, but never reach GHZ's three-way correlation. Between these sit **biseparable** states (entangled across one bipartition, |
| - | Basis action: applies Y to target only for $|11c\rangle$ | + | The three-tangle extends concurrence |
| - | ## CCZ (Controlled-Controlled-Z) | + | ## Matrix representations |
| - | **[[quantum-gate-ccz|CCZ]]** (Controlled-Controlled-Z) applies a phase to the $|111\rangle$ | + | **CC-Pauli family** (controls on qubits 1,2, target on qubit 3), all identity except |
| - | $$\text{CCZ} = \begin{pmatrix} | + | $$\text{CCX} = \begin{pmatrix} |
| - | Basis action: applies phase only to $|111\rangle$. Basis mapping: | + | where $I_6$ is the $6\times6$ identity on the subspace where at least one control is $|0\rangle$, and the bottom-right $2\times2$ block is the target-qubit Pauli, applied only in the $|11\rangle$-control subspace. |
| - | ## CSWAP (Fredkin) | + | **Controlled two-qubit gates** |
| - | **[[quantum-gate-cswap|CSWAP]]** (also Fredkin or Controlled-SWAP) swaps two qubits if the control is $|1\rangle$. The quantum controlled-SWAP and also universal for classical reversible computation, | + | $$\text{CSWAP} = \begin{pmatrix} I_4 & 0 \\ 0 & \mathrm{SWAP} \end{pmatrix} \quad \text{CiSWAP} = \begin{pmatrix} I_4 & 0 \\ 0 & \mathrm{iSWAP} \end{pmatrix}$$ |
| - | Action: $|c\rangle|a\rangle|b\rangle \to |c\rangle|a' | + | ## Universality for reversible classical computation |
| - | $$\text{Fredkin} = \begin{pmatrix} 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 \end{pmatrix}$$ | + | CCX and CSWAP are each, on their own, universal for classical reversible computation: |
| - | Basis action: swaps the second and third qubits when the first qubit is $|1\rangle$. Basis mapping: $|101\rangle \to |110\rangle$ and $|110\rangle \to |101\rangle$. | + | $\text{CCX}(|1\rangle, a, b) = |1\rangle, a, (b \oplus a)$, so fixing one control recovers CNOT |
| - | ## General controlled gates | + | No single- or two-qubit gate has this property, since a $2\times2$ or $4\times4$ unitary can't implement a genuinely irreversible-looking classical function like AND without an extra output qubit to preserve unitarity. This is why Toffoli and Fredkin appear throughout reversible and quantum arithmetic circuits: they let a quantum computer host ordinary classical logic without discarding information. |
| - | Any unitary $U$ can be controlled: a controlled-$U$ gate applies $U$ to target qubits if all control qubits are $|1\rangle$. Construction typically decomposes $U = e^{i\alpha} A X B X C$ where $ABC = I$, then uses controlled single-qubit gates and CNOTs to build the full controlled operation. | + | ## Group structure |
| - | ## Scalability | + | Three-qubit gates form $\mathrm{SU}(8)$, |
| - | Multi-qubit gates are expensive: implementing a controlled-$U$ on $n$ qubits requires | + | Classification instead falls back on the coarser GHZ/ |
| + | |||
| + | ## Decomposition and circuit cost | ||
| + | |||
| + | CCX costs about 6 CNOTs plus single-qubit gates; CSWAP and CiSWAP | ||
| + | |||
| + | ## Uses | ||
| + | |||
| + | - **Quantum arithmetic**: | ||
| + | - **Grover' | ||
| + | - **Error correction**: | ||
| + | - **Entanglement benchmarking**: | ||
| + | - **Reversible computing**: | ||
| + | |||
| + | ## Implementation | ||
| + | |||
| + | Three-qubit gates are essentially never physically native; every platform compiles them down to single- and two-qubit primitives. | ||
| + | |||
| + | - **Superconducting**: | ||
| + | - **Trapped ions**: decomposed via chains of native | ||
| + | - **Photonic**: | ||
| + | |||
| + | ## Relations | ||
| + | |||
| + | - [[quantum-gate-ccx|CCX]], | ||
| + | - [[quantum-gate-ccy|CCY]], | ||
| + | - [[quantum-gate-ciswap|CiSWAP]]: | ||
| + | - [[quantum-gate-ccp|CCP]], | ||
| + | - [[quantum-gate-two-qubit|Two-qubit gates]]: three-qubit gates decompose into chains of these | ||
| + | - [[quantum-gate-multiqubit|Multi-qubit gates]]: general $n$-qubit generalization, | ||
| + | - $\mathrm{SU}(8)$: | ||
| + | - GHZ state, W state: the two inequivalent classes of genuine tripartite entanglement | ||
quantum-gate-three-qubit.1787763197.md.gz · Last modified: by 127.0.0.1
