quantum-gate-two-qubit
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| quantum-gate-two-qubit [August 26, 2026 at 17:21] – 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 that act on pairs of qubits. They are represented by $4 \times 4$ unitary matrices and form the Lie group $\mathrm{SU}(4)$. | + | **Two-qubit gates** are unitary operations that act on a pair of qubits. They are represented by $4 \times 4$ unitary matrices and form the Lie group $\mathrm{SU}(4)$. |
| - | A two-qubit gate acts on a state $|\psi\rangle$ | + | A two-qubit gate is applied to a joint state $|\psi\rangle |
| + | |||
| + | Not every two-qubit | ||
| ## List of gates | ## List of gates | ||
| Line 12: | Line 14: | ||
| - [[quantum-gate-swap|SWAP]] | - [[quantum-gate-swap|SWAP]] | ||
| - [[quantum-gate-iswap|iSWAP]] | - [[quantum-gate-iswap|iSWAP]] | ||
| - | - [[quantum-gate-cphase|Controlled-Phase | + | - [[quantum-gate-cp|Controlled-Phase]] |
| - | - [[quantum-gate-xx|XX (Ising | + | - [[quantum-gate-xx|XX (Ising |
| - | - [[quantum-gate-yy|YY (Ising | + | - [[quantum-gate-yy|YY (Ising |
| - | - [[quantum-gate-zz|ZZ (Ising | + | - [[quantum-gate-zz|ZZ (Ising |
| - | ## Entanglement and entangling power | ||
| - | |||
| - | Two-qubit gates enable entanglement by creating correlations between qubits that cannot be expressed as a product of independent single-qubit states. A state $|\psi\rangle$ is separable if it can be written as $|\psi\rangle = |\phi_0\rangle \otimes |\phi_1\rangle$; | ||
| - | |||
| - | $$|\Phi^+\rangle = \frac{1}{\sqrt{2}}(|00\rangle + |11\rangle), | ||
| - | $$|\Psi^+\rangle = \frac{1}{\sqrt{2}}(|01\rangle + |10\rangle), | ||
| - | |||
| - | A gate's **entangling power** measures how much it can increase entanglement when applied to a separable state. A gate with zero entangling power (like single-qubit gates acting independently) cannot create entanglement from separable input. Most two-qubit gates have nonzero entangling power and can transform any separable two-qubit state to an entangled one (given the right single-qubit pre-rotations). Measuring entanglement uses metrics like **concurrence** (ranges 0 for separable to 1 for maximally entangled) and **entanglement entropy** of one qubit after tracing out the other. | ||
| - | |||
| - | The **entanglement landscape** geometrically describes how two-qubit gates move around the space of possible two-qubit states. Unlike the Bloch sphere for single qubits (a 2D surface), the two-qubit state space is $2^4 - 1 = 15$ real dimensions. Two-qubit gates that leave separable states invariant (like tensor products of single-qubit gates) do not change entanglement; | ||
| ## Matrix representations | ## Matrix representations | ||
| - | **Controlled-NOT (CX):** | + | **Controlled |
| - | $$\text{CX} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \end{pmatrix}$$ | + | $$\mathrm{CX} = \begin{pmatrix} 1& |
| - | Applies X to target qubit if control qubit is $|1\rangle$. Also called CNOT. | + | **SWAP family:** |
| - | **SWAP:** | + | $$\mathrm{SWAP} = \begin{pmatrix} 1& |
| - | $$\text{SWAP} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix}$$ | + | **Parametric Ising-coupling gates (angle |
| - | Exchanges the state of two qubits. Its own inverse: | + | $$\text{XX}(\theta) = \exp\left(-i\frac{\theta}{2} X \otimes X\right), \quad \text{YY}(\theta) |
| - | **iSWAP:** | + | Note: $\mathrm{SWAP} = \mathrm{CX}_{12} \, \mathrm{CX}_{21} \, \mathrm{CX}_{12}$, |
| - | $$\text{iSWAP} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & i & 0 \\ 0 & i & 0 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix}$$ | ||
| - | Swaps qubits and applies an imaginary unit phase to the swapped components. Native to trapped-ion and superconducting platforms with parametric coupling. The iSWAP is self-inverse when applied twice: $(iSWAP)^4 = I$ (accounting for global phase). | + | ## Group structure |
| - | **Controlled-Z (CZ):** | + | 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 gates, lives in the remaining 9-dimensional quotient $\mathrm{SU}(4) / (\mathrm{SU}(2) \otimes \mathrm{SU}(2))$. |
| - | $$\text{CZ} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & -1 \end{pmatrix}$$ | + | $\mathrm{SU}(4)$ has no Bloch-sphere-like picture. Instead its entangling content |
| - | + | ||
| - | Applies Z to both qubits if both are $|1\rangle$. Symmetric: CZ has no control/ | + | |
| - | + | ||
| - | **Ising interactions (XX, YY, ZZ):** | + | |
| - | + | ||
| - | $$R_{XX}(\theta) = \begin{pmatrix} \cos(\theta/ | + | |
| - | + | ||
| - | Similarly for $R_{YY}(\theta)$ and $R_{ZZ}(\theta)$. These parameterized gates implement Ising-type interactions common in natural Hamiltonians. | + | |
| - | + | ||
| - | ## Clifford vs non-Clifford | + | |
| - | + | ||
| - | Two-qubit gates partition into Clifford and non-Clifford classes, extending the single-qubit definitions. | + | |
| - | + | ||
| - | **Clifford gates** (like CX, CZ, SWAP) preserve the property that conjugating a Pauli tensor product by the gate yields another Pauli tensor product (up to phase). The two-qubit Clifford group has $5 \times 2^7 = 11{,}520$ elements. Examples: | + | |
| - | + | ||
| - | - CX conjugates $X_1 \rightarrow X_1$ and $X_2 \rightarrow X_1 X_2$ (where subscripts denote qubit indices) | + | |
| - | - CZ is symmetric and conjugates $Z_1 Z_2 \rightarrow Z_1 Z_2$ | + | |
| - | - SWAP conjugates Paulis on qubit 1 to the same Paulis on qubit 2 and vice versa | + | |
| - | + | ||
| - | Clifford circuits remain efficiently simulatable classically via stabilizer tableaux; two-qubit Cliffords alone cannot provide quantum advantage. | + | |
| - | + | ||
| - | **Non-Clifford gates** (like parameterized Ising gates with irrational angles, or some phase-controlled | + | |
| ## KAK decomposition | ## KAK decomposition | ||
| - | The **Cartan decomposition** (or Khanna-Abernathy-Klappenecker decomposition) is the two-qubit | + | The intuition: any two-qubit |
| - | $$U = (A_1 \otimes | + | $$U = (K_1 \otimes |
| - | where $A_i, B_i, C_i$ are arbitrary single-qubit unitaries and $\text{CX}_{12}$ denotes a CX gate from qubit 0 to qubit 1. In the worst case, this requires three CX gates (the maximum two-qubit gate depth for universal gates). Some gates can be implemented with fewer CNOTs: for example, | + | 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. |
| - | The canonical form emphasizes the role of the **entangling coefficients** (or Cartan parameters) | + | The triples |
| - | + | ||
| - | $$U = (A_1 \otimes A_2) \, \text{CX}_{12} \, R_Z(c_1) \, \text{CX}_{12} \, R_Z(c_2) \, \text{CX}_{12} \, R_Z(c_3) \, (C_1 \otimes C_2)$$ | + | |
| - | + | ||
| - | where the Cartan parameters encode how much entanglement the gate creates. When all three are zero, $U$ is separable. When they are nonzero and distinct, $U$ is fully entangling. This decomposition is the workhorse for compiling arbitrary two-qubit gates on real hardware. | + | |
| - | + | ||
| - | ## Isospectral equivalence | + | |
| - | + | ||
| - | Two-qubit | + | |
| - | + | ||
| - | This equivalence is important for hardware mapping: if a physical platform natively implements iSWAP but a circuit calls for CX, the compiler uses single-qubit | + | |
| ## Uses | ## Uses | ||
| - | - **Entanglement generation**: | + | - **Entanglement generation**: |
| - | - **Controlled operations**: | + | - **Variational algorithms**: |
| - | - **Basis-dependent measurements**: | + | - **Error correction**: CX/CZ entangle data qubits |
| - | - **Quantum error correction**: | + | - **Circuit synthesis**: KAK decomposition is how compilers target native gates |
| - | - **Variational algorithms**: | + | - **State |
| - | - **Qubit routing and relabeling**: SWAP gates move qubit states across linear or 2D qubit arrays when distant | + | |
| - | - **Quantum simulation**: Ising interactions ($R_{XX}, R_{YY}, R_{ZZ}$) directly implement nearest-neighbor Hamiltonian terms | + | |
| - | - **State | + | |
| ## Implementation | ## Implementation | ||
| - | Two-qubit gate performance is platform-dependent and often dominates circuit cost. | + | - **Superconducting**: |
| - | + | - **Trapped ions**: native Mølmer-Sørensen gate is effectively $\text{XX}(\theta)$ (~10–200 | |
| - | **Superconducting | + | - **Photonic**: deterministic gates need weak optical nonlinearity, |
| - | - CX via AC-Stark shift or parametric drive: ~20–100 ns | + | |
| - | - iSWAP via parametric coupling: ~50–200 ns | + | |
| - | - fidelity: typically 98–99.5% (lower than single-qubit) | + | |
| - | - CZ decomposed from CX + single-qubit gates when not natively available | + | |
| - | - Gate depth and error are the main performance bottlenecks in longer circuits | + | |
| - | + | ||
| - | **Trapped ions:** | + | |
| - | - iSWAP via Rabi oscillations on a simulated coupling: | + | |
| - | - Native interactions often include Heisenberg XX and parametric Ising-type gates | + | |
| - | - fidelity: 99%+ achievable; slower than superconducting but higher fidelity | + | |
| - | - CX decomposed from iSWAP and single-qubit gates if not native | + | |
| - | + | ||
| - | **Photonic:** | + | |
| - | - Beam splitters implement parameterized XX and YY interactions | + | |
| - | - No direct CX available; must decompose via multiple beam splitters and phase shifters | + | |
| - | - fidelity: ~95–99% (limited by optical component precision) | + | |
| - | + | ||
| - | **Spin qubits (solid-state): | + | |
| - | - Heisenberg XX coupling via exchange interaction or dipole coupling | + | |
| - | - iSWAP and CX decomposed from native parametric interactions | + | |
| - | - fidelity: varies; rapidly improving | + | |
| - | The **Cartan/ | + | CX is rarely |
| ## Relations | ## Relations | ||
| - | - [[quantum-gate|Quantum gates]]: two-qubit gates are part of the broader | + | - [[quantum-gate-cx|CX]], [[quantum-gate-cy|CY]], |
| - | - [[quantum-gate-single-qubit|Single-qubit gates]]: the building blocks of two-qubit | + | - [[quantum-gate-swap|SWAP]], |
| - | - [[quantum-gate-three-qubit|Three-qubit gates]]: multi-qubit generalizations; | + | - [[quantum-gate-xx|XX]], [[quantum-gate-yy|YY]], |
| - | - [[quantum-entanglement|Quantum entanglement]]: the resource created and manipulated by two-qubit gates | + | - [[quantum-gate-single-qubit|Single-qubit |
| - | - [[quantum-gate-parametric|Parametric gates]]: framework for angle-parameterized two-qubit | + | - [[quantum-gate-clifford|Clifford gates]]: |
| - | - [[quantum-gate-clifford|Clifford | + | - [[quantum-gate-three-qubit|Three-qubit gates]]: built from two-qubit |
| - | - [[quantum-gate-non-clifford|Non-Clifford gates]]: | + | |
| - | - [[quantum-gate-universal|Universal gate sets]]: single-qubit rotations + two-qubit | + | |
| - $\mathrm{SU}(4)$: | - $\mathrm{SU}(4)$: | ||
| - | - Cartan decomposition: parametrization | + | - Weyl chamber: geometric classification |
quantum-gate-two-qubit.1787764866.md.gz · Last modified: by 127.0.0.1
