Site Tools


quantum-gate-xx

XX Gate (Parametric)

XX gate is a parametric two-qubit gate implementing the interaction Hamiltonian $H = \theta X_1 X_2$. Natural in some quantum systems.

Matrix:

$$\text{XX}(\theta) = e^{-i\theta X_1 X_2 / 2} = \begin{pmatrix} \cos(\theta/2) & 0 & 0 & -i\sin(\theta/2) \\ 0 & \cos(\theta/2) & -i\sin(\theta/2) & 0 \\ 0 & -i\sin(\theta/2) & \cos(\theta/2) & 0 \\ -i\sin(\theta/2) & 0 & 0 & \cos(\theta/2) \end{pmatrix}$$

Action: applies correlated X rotations to both qubits simultaneously.

Relation to CNOT

XX($\pi/2$) is related to CNOT but not identical. Composition of XX gates in specific sequences can generate CNOT-like behavior.

Special Cases

  • $\text{XX}(0) = I$ (identity)
  • $\text{XX}(\pi/2)$ creates entanglement
  • $\text{XX}(\pi)$ is a full rotation

Properties

  • Parametric: tune $\theta$ to control interaction strength
  • Symmetric: both qubits interact equally
  • Entangling: creates/modifies entanglement
  • Hamiltonian form: $\text{XX}(\theta) = e^{-i\theta X \otimes X / 2}$

Physical Origin

  • Superconducting qubits: capacitive coupling between qubits
  • Trapped ions: laser-driven interactions
  • Spin systems: exchange coupling between adjacent spins

Uses

  • Variational ansatze: XX gates with tunable angles in QAOA and VQE circuits
  • Quantum simulation: simulate XX-coupled spin systems
  • Native operations: use directly if available instead of decomposing

Relation to YY and ZZ

  • Gate family: XX, YY, ZZ gates implement $e^{-i\theta X \otimes X / 2}$, $e^{-i\theta Y \otimes Y / 2}$, $e^{-i\theta Z \otimes Z / 2}$
  • Physical correspondence: different interaction Hamiltonians in physics
quantum-gate-xx.md · Last modified: by 127.0.0.1