← Atlas

Gates · Two-qubit gate

RXX (XX interaction) gate

A parametrized two-qubit gate implementing evolution under the Ising XX coupling, the RZZ gate's basis-rotated sibling used in Heisenberg-model simulation and trapped-ion Mølmer–Sørensen-style entangling operations.

Exact & formalUpdated

View frozen graph

q[0]q[1]Step 1 of 1 · RXX(π/2) · on q[0], q[1]RXX(π/2)

1 step across 2 wires. Hover a step, or press play to go through them in order.

Expected outcomes

  • P(|00⟩) at θ=π/250%
  • P(|11⟩) at θ=π/250%
  • Steps1
  • Wires2
  • Qubits2
  • Depth1 native / 5-gate decomposition (H, H, CX, RZ, CX, H, H)
  • Parameterθ (radians)
  • Papers2

Definition

RXX(θ)=e−iθ(X⊗X)/2=(cos⁡(θ/2)00−isin⁡(θ/2)0cos⁡(θ/2)−isin⁡(θ/2)00−isin⁡(θ/2)cos⁡(θ/2)0−isin⁡(θ/2)00cos⁡(θ/2))\mathrm{RXX}(\theta) = e^{-i\theta (X\otimes X)/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}

Since (X⊗X)2=I⊗I(X\otimes X)^2 = I\otimes I, the exponential splits as cos⁡(θ/2) I⊗I−isin⁡(θ/2) X⊗X\cos(\theta/2)\,I\otimes I - i\sin(\theta/2)\,X\otimes X, and because X⊗XX\otimes X swaps ∣00⟩↔∣11⟩|00\rangle\leftrightarrow|11\rangle and ∣01⟩↔∣10⟩|01\rangle\leftrightarrow|10\rangle, the off-diagonal terms connect exactly those pairs.

Action on basis states

RXX(θ)∣00⟩=cos⁡(θ/2)∣00⟩−isin⁡(θ/2)∣11⟩,RXX(θ)∣01⟩=cos⁡(θ/2)∣01⟩−isin⁡(θ/2)∣10⟩\mathrm{RXX}(\theta)|00\rangle = \cos(\theta/2)|00\rangle - i\sin(\theta/2)|11\rangle, \qquad \mathrm{RXX}(\theta)|01\rangle = \cos(\theta/2)|01\rangle - i\sin(\theta/2)|10\rangle

At θ=π/2\theta=\pi/2, RXX(π/2)∣00⟩=12(∣00⟩−i∣11⟩)\mathrm{RXX}(\pi/2)|00\rangle = \tfrac{1}{\sqrt2}(|00\rangle - i|11\rangle) — an entangled Bell-like state produced from a product-state input, giving equal 1/21/2 probability on ∣00⟩|00\rangle and ∣11⟩|11\rangle.

Decomposition

RXX(θ)=(H⊗H)  RZZ(θ)  (H⊗H)\mathrm{RXX}(\theta) = (H\otimes H)\;\mathrm{RZZ}(\theta)\;(H\otimes H)

Since X=HZHX = HZH, we have X⊗X=(H⊗H)(Z⊗Z)(H⊗H)X\otimes X = (H\otimes H)(Z\otimes Z)(H\otimes H), so conjugating the entire RZZ(θ)\mathrm{RZZ}(\theta) circuit — itself CX (I⊗RZ(θ)) CX\mathrm{CX}\,(I\otimes R_Z(\theta))\,\mathrm{CX} — by Hadamards on both qubits rotates the interaction axis from Z⊗ZZ\otimes Z to X⊗XX\otimes X, giving the five-gate circuit H,H,CX,RZ(θ),CX,H,HH,H,\mathrm{CX},R_Z(\theta),\mathrm{CX},H,H.

Key identities

  • RXX(π/2)\mathrm{RXX}(\pi/2) is Clifford: it equals (H⊗H) RZZ(π/2) (H⊗H)(H\otimes H)\,\mathrm{RZZ}(\pi/2)\,(H\otimes H), a conjugation of the Clifford gate RZZ(π/2)\mathrm{RZZ}(\pi/2) by Clifford Hadamards, hence itself Clifford; for generic θ\theta it is not.
  • RXX(θ1) RXX(θ2)=RXX(θ1+θ2)\mathrm{RXX}(\theta_1)\,\mathrm{RXX}(\theta_2) = \mathrm{RXX}(\theta_1+\theta_2): successive XX pulses on the same pair compose additively.
  • RXX(π)=−i X⊗X\mathrm{RXX}(\pi) = -i\,X\otimes X: a full-π\pi pulse reproduces a simultaneous bit-flip on both qubits up to global phase.
  • RXX\mathrm{RXX} is the generating gate of the trapped-ion Mølmer–Sørensen interaction, which natively entangles pairs (or larger groups) of ions via their shared motional mode.

References

Exact & formal
  • Unitary / matrix equivalence
  • Direct mathematics
  • Textbook / standard citation
Method
Expand exp(-iθXX/2) using (X⊗X)²=I⊗I to split the Taylor series into cosine and sine terms, and compare the closed form against the parametrized RXX matrix.
Result
Pass · RXX(θ) = cos(θ/2)·I⊗I - i·sin(θ/2)·X⊗X exactly, matching the anti-diagonal structure of X⊗X.
OpenQASM 3 standard gate set ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
ising interactiontwo qubitrotationtrapped ion

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.