Sign in
← Atlas
Exact & formalGatesTwo-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.

ising interactiontwo qubitrotationtrapped ion

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

RXX matters wherever a model's interaction term is naturally expressed in the X basis rather than Z — Heisenberg-type spin chains, or trapped-ion hardware whose native multi-qubit gate is generated by a collective XX-type coupling rather than ZZ.

Circuit & simulation
P(|00⟩) at θ=π/250%
P(|11⟩) at θ=π/250%
What this takes and returns
Takes2 qubitsWhat joins here

Takes a 2-qubit register and states no assumption about what is on it. That is the whole condition: anything returning 2 qubits can feed it.

16 entries meet this end. Named below.

Returns2 qubitsWhat joins here

Returns a 2-qubit register a next stage can take. This is the end that joins.

11 entries meet this end. Named below.

A unitary. The same register goes in and comes out, and this entry states no assumption about what is on it — which is what lets anything of the same width feed it. See all 29 →

How it works

Definition

RXX(θ)=eiθ(XX)/2=(cos(θ/2)00isin(θ/2)0cos(θ/2)isin(θ/2)00isin(θ/2)cos(θ/2)0isin(θ/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 (XX)2=II(X\otimes X)^2 = I\otimes I, the exponential splits as cos(θ/2)IIisin(θ/2)XX\cos(\theta/2)\,I\otimes I - i\sin(\theta/2)\,X\otimes X, and because XXX\otimes X swaps 0011|00\rangle\leftrightarrow|11\rangle and 0110|01\rangle\leftrightarrow|10\rangle, the off-diagonal terms connect exactly those pairs.

Action on basis states

RXX(θ)00=cos(θ/2)00isin(θ/2)11,RXX(θ)01=cos(θ/2)01isin(θ/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(00i11)\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(θ)=(HH)  RZZ(θ)  (HH)\mathrm{RXX}(\theta) = (H\otimes H)\;\mathrm{RZZ}(\theta)\;(H\otimes H)

Since X=HZHX = HZH, we have XX=(HH)(ZZ)(HH)X\otimes X = (H\otimes H)(Z\otimes Z)(H\otimes H), so conjugating the entire RZZ(θ)\mathrm{RZZ}(\theta) circuit — itself CX(IRZ(θ))CX\mathrm{CX}\,(I\otimes R_Z(\theta))\,\mathrm{CX} — by Hadamards on both qubits rotates the interaction axis from ZZZ\otimes Z to XXX\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 (HH)RZZ(π/2)(HH)(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(π)=iXX\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.
Implementation
Native
rxx-interaction.qasm
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
rxx(pi/2) q[0], q[1];
Quantum vs classical

Classical baseline

Use a classical state-vector or matrix simulation at the same width, precision, and measurement objective.

Quantum claim

The quantum record demonstrates a state or operator behavior; it does not make classical simulation or communication costs disappear.

How to compare

Compare fidelity, samples, gate depth, noise, memory, and the cost of preparing and reading the state.

Declared gaps

Nobody has reviewed this record for gaps yet.

Literature & references
Quantum Computation and Quantum Information: 10th Anniversary Edition2010 · Michael A. Nielsen and Isaac L. Chuang

Standard reference for gate matrices, the Clifford/non-Clifford distinction, and controlled-gate constructions used throughout this record.

doi.org/10.1017/cbo9780511976667
OpenQASM 3: A broader and deeper quantum assembly language2021 · Andrew W. Cross, Ali Javadi-Abhari, Thomas Alexander, Niel de Beaudrap, Lev S. Bishop, Steven Heidel, Colm A. Ryan, Prasahnt Sivarajah, John Smolin, Jay M. Gambetta, Blake R. Johnson

Defines the standard gate library (id, sdg, tdg, cy, crz, rxx, rzz, ccx, cx…) used natively by the code snippets on this record.

arxiv.org/abs/2104.14722