quantum-gate-two-qubit
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| quantum-gate-two-qubit [August 26, 2026 at 17:16] – created - external edit 127.0.0.1 | quantum-gate-two-qubit [August 26, 2026 at 18:03] (current) – Ivan Janevski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| # Two-qubit gates | # Two-qubit gates | ||
| - | **Two-qubit gates** are unitary operations | + | **Two-qubit gates** are unitary operations |
| - | A two-qubit gate applies | + | A two-qubit gate is applied |
| - | Two-qubit | + | Not every two-qubit |
| ## List of gates | ## List of gates | ||
| - | Controlled-Pauli family: | ||
| - [[quantum-gate-cx|CX (Controlled-NOT)]] | - [[quantum-gate-cx|CX (Controlled-NOT)]] | ||
| - | - [[quantum-gate-cy|CY | + | - [[quantum-gate-cy|CY |
| - | - [[quantum-gate-cz|CZ gate]] | + | - [[quantum-gate-cz|CZ |
| + | - [[quantum-gate-swap|SWAP]] | ||
| + | - [[quantum-gate-iswap|iSWAP]] | ||
| + | - [[quantum-gate-cp|Controlled-Phase]] | ||
| + | - [[quantum-gate-xx|XX (Ising coupling)]] | ||
| + | - [[quantum-gate-yy|YY (Ising coupling)]] | ||
| + | - [[quantum-gate-zz|ZZ (Ising coupling)]] | ||
| - | Symmetric interaction family: | ||
| - | - [[quantum-gate-swap|SWAP gate]] | ||
| - | - [[quantum-gate-iswap|iSWAP gate]] | ||
| - | Parametric Ising family: | + | ## Matrix representations |
| - | - [[quantum-gate-cphase|Controlled-Phase gate]] | + | |
| - | - [[quantum-gate-xx|XX gate]] | + | |
| - | - [[quantum-gate-yy|YY gate]] | + | |
| - | - [[quantum-gate-zz|ZZ gate]] | + | |
| - | ## Entanglement and the two-qubit space | + | **Controlled gates** (control on qubit 1, target on qubit 2): |
| - | Entanglement is the central concept distinguishing two-qubit from single-qubit physics. A two-qubit state is **separable** if it factors: | + | $$\mathrm{CX} = \begin{pmatrix} 1& |
| - | $$|\Phi^+\rangle = \frac{1}{\sqrt{2}}(|00\rangle + |11\rangle), | + | **SWAP family:** |
| - | $$|\Phi^-\rangle = \frac{1}{\sqrt{2}}(|00\rangle - |11\rangle), | + | |
| - | These states are eigenstates of various two-qubit gate families. The entanglement of a state can be quantified by the **Schmidt rank** (how many terms in the Schmidt decomposition) or the **entanglement entropy** (information-theoretic measure). Two-qubit gates can generate, preserve, or destroy entanglement depending on their structure. | + | $$\mathrm{SWAP} = \begin{pmatrix} 1& |
| - | The computational subspace is 4-dimensional, | + | **Parametric Ising-coupling gates (angle $\theta$):** |
| - | ## Asymmetry and symmetry | + | $$\text{XX}(\theta) = \exp\left(-i\frac{\theta}{2} X \otimes X\right), \quad \text{YY}(\theta) = \exp\left(-i\frac{\theta}{2} Y \otimes Y\right), \quad \text{ZZ}(\theta) = \exp\left(-i\frac{\theta}{2} Z \otimes Z\right)$$ |
| - | Two-qubit | + | Note: $\mathrm{SWAP} = \mathrm{CX}_{12} \, \mathrm{CX}_{21} \, \mathrm{CX}_{12}$, |
| - | **Asymmetric (control/ | ||
| - | **Symmetric**: | + | ## Group structure |
| - | This structural difference affects implementation: | + | Two-qubit gates form $\mathrm{SU}(4)$ (dimension 15); the local subgroup $\mathrm{SU}(2) \otimes \mathrm{SU}(2)$ has dimension 6. The entangling content of a gate, the part that can't be absorbed into surrounding single-qubit |
| - | ## Matrix structure patterns | + | $\mathrm{SU}(4)$ has no Bloch-sphere-like picture. Instead its entangling content is captured by a small set of **local invariants**, |
| - | Two-qubit gates exhibit consistent matrix structure patterns that reveal their action: | + | ## KAK decomposition |
| - | **Diagonal | + | The intuition: any two-qubit gate can be sorted into "local dressing", |
| - | **Block-diagonal gates** | + | $$U = (K_1 \otimes K_2) \; A \; (K_3 \otimes K_4), \quad A = \exp\left(i \left( a\, X{\otimes}X + b\, Y{\otimes}Y + c\, Z{\otimes}Z \right)\right)$$ |
| - | **Off-diagonal phases**: Many two-qubit gates apply phase $\pm i$ or $\pm 1$ during state transitions. These phase corrections are often byproducts of physical implementation | + | This is the **Cartan KAK decomposition** of $\mathfrak{su}(4)$: all entangling content is isolated in $(a, b, c)$, since the $K_k$ entangle nothing. |
| - | **Symmetries**: Diagonal | + | The triples $(a,b,c)$ range over the **Weyl chamber**; gates related by local operations map to the same point. CX, CZ, and iSWAP sit at distinct points; SWAP sits at the corner of maximal entanglement. This also bounds circuit cost: any two-qubit unitary needs at most 3 CNOTs, an entangling one at least 1. |
| - | ## Clifford structure at two qubits | + | ## Uses |
| - | A two-qubit | + | - **Entanglement generation**: |
| + | - **Variational algorithms**: [[cuda-q-vqe|VQE]] and [[cuda-q-qaoa|QAOA]] alternate single-qubit | ||
| + | - **Error correction**: | ||
| + | - **Circuit synthesis**: | ||
| + | - **State transfer**: SWAP moves information between non-adjacent qubits | ||
| - | **Two-qubit Clifford gates**: CX, CY, CZ, SWAP, iSWAP, and products thereof form a finite group of 11,520 elements. Any Clifford circuit (using only these gates) can be simulated classically in $O(n^3)$ time via the stabilizer tableau method. Clifford circuits cannot provide quantum advantage but form the foundation of quantum error correction codes. | + | ## Implementation |
| - | **Non-Clifford at general angles**: Parametric gates XX, YY, ZZ at arbitrary $\theta$ break Pauli closure. For instance, conjugating $X \otimes I$ by $\text{ZZ}(\theta)$ yields a superposition of Paulis, not a Pauli itself. This breakdown enables universality and exponential speedup. However, at special angles (e.g., $\theta = \pi$ makes ZZ equal to CZ, which is Clifford), parametric gates reduce to Cliffords. | + | - **Superconducting**: CZ is usually |
| - | + | - **Trapped ions**: native Mølmer-Sørensen | |
| - | The Clifford/ | + | - **Photonic**: |
| - | + | ||
| - | ## Universality and decomposition | + | |
| - | + | ||
| - | The **Karatsuba-Agafonov-Kuznetsov (KAK) decomposition** is the foundational universality result for two-qubit gates: any two-qubit unitary can be written as | + | |
| - | + | ||
| - | $$U = (A_1 \otimes A_2) \exp\left(-i\frac{\theta}{2}(c_1 X \otimes X + c_2 Y \otimes Y + c_3 Z \otimes Z)\right) (B_1 \otimes B_2)$$ | + | |
| - | + | ||
| - | where $A_i, B_i$ are single-qubit unitaries and $c_i$ are fixed coupling strengths determined by $U$. This decomposes any two-qubit unitary into **at most three CX gates plus single-qubit rotations**. The KAK form proves universality: | + | |
| - | + | ||
| - | Practically, | + | |
| - | - Any controlled unitary | + | |
| - | - SWAP decomposes into three CX gates | + | |
| - | - Parametric XX, YY, ZZ decompose into CX ladders with single-qubit rotation interleavings | + | |
| - | + | ||
| - | The decomposition depth is the primary cost metric on platforms where CX is expensive (superconducting qubits: | + | |
| - | + | ||
| - | ## Native implementations by platform | + | |
| - | + | ||
| - | Two-qubit gate performance varies dramatically by platform due to different physical mechanisms: | + | |
| - | + | ||
| - | **Superconducting qubits**: | + | |
| - | - **CX**: decomposed via microwave pulses; ~20–100 ns; fidelity 99–99.5%. The workhorse gate. | + | |
| - | - **CZ**: sometimes native via frequency-selective interactions (~50 ns); often decomposed from CX. | + | |
| - | - **iSWAP**: native on transmon qubits with tunable coupling; ~20–50 ns. Often faster than CX on these systems. | + | |
| - | - **ZZ**: native via detuned two-photon interactions; | + | |
| - | + | ||
| - | **Trapped ions**: | + | |
| - | - **CX/CZ**: native | + | |
| - | - **SWAP**: often native or very low cost. | + | |
| - | - **iSWAP**: less common; usually decomposed. | + | |
| - | - **Fidelity**: | + | |
| - | + | ||
| - | **Photonic**: | + | |
| - | - Most two-qubit | + | |
| - | - **Success probability**: | + | |
| - | - **Fidelity**: | + | |
| - | - Photonic platforms excel at linear optics (single-qubit operations) but struggle with two-qubit entanglement. | + | |
| - | + | ||
| - | **Neutral atoms**: | + | |
| - | - **CZ**: native via Rydberg blockade; tunable range. | + | |
| - | - **SWAP, iSWAP**: native via exchange interactions. | + | |
| - | - **Fidelity**: | + | |
| - | + | ||
| - | ## Uses | + | |
| - | - **Quantum algorithms**: | + | CX is rarely the physically native gate; it' |
| - | - **Variational algorithms**: | + | |
| - | - **Quantum simulation**: | + | |
| - | - **State preparation**: | + | |
| - | - **Quantum error correction**: | + | |
| - | - **Basis rotation**: Two-qubit gates enable measurement in rotated bases (Bell basis) to extract different quantum correlations. | + | |
| ## Relations | ## Relations | ||
| - | - [[quantum-gate-single-qubit|Single-qubit gates]]: plus any two-qubit gate form a universal | + | - [[quantum-gate-cx|CX]], [[quantum-gate-cy|CY]], [[quantum-gate-cz|CZ]]: the controlled-Pauli family, interconvertible via single-qubit |
| - | - [[quantum-gate-three-qubit|Three-qubit gates]]: controlled versions of two-qubit gates (CCX, CCY, CCZ, CCP, etc.) | + | - [[quantum-gate-swap|SWAP]], |
| - | - [[quantum-gate-controlled-unitary|Controlled-unitary]]: general framework; | + | - [[quantum-gate-xx|XX]], [[quantum-gate-yy|YY]], [[quantum-gate-zz|ZZ]]: parametric Ising-coupling |
| - | - [[quantum-gate-clifford|Clifford gates]]: two-qubit Cliffords | + | - [[quantum-gate-single-qubit|Single-qubit gates]]: plus one entangling |
| - | - [[quantum-gate-non-clifford|Non-Clifford | + | - [[quantum-gate-clifford|Clifford gates]]: |
| - | - $\mathrm{SU}(4)$ | + | - [[quantum-gate-three-qubit|Three-qubit gates]]: |
| - | - Bell states: maximally entangled two-qubit states; eigenstates | + | - $\mathrm{SU}(4)$: |
| - | - Entanglement entropy: quantifies two-qubit correlations; | + | - Weyl chamber: geometric classification |
quantum-gate-two-qubit.1787764591.md.gz · Last modified: by 127.0.0.1
