← Atlas

Gates · Two-qubit gate

RZZ (ZZ interaction) gate

A parametrized two-qubit gate implementing evolution under the Ising ZZ coupling, the entangling primitive most directly native to superconducting and trapped-ion hardware built from always-on or tunable ZZ interactions.

Exact & formalUpdated

View frozen graph

A small worked example, computed in your browser. It is not a result from this record's papers.

RZZ(θ), the two-qubit interaction Ising models are made of

Two qubits, both put into |+⟩, then coupled by RZZ(π/2).

q0q1Step 1 of 3 · HHStep 2 of 3 · HHStep 3 of 3 · RZZ(π/2)RZZ(π/2)

Step 1 of 3 · H

Probability of each outcome after this step

  • 0050%
  • 0150%
  1. Qubit 0 into an equal superposition.

    Probability spreads from 1 outcome to 2. All 2 are equally likely.

  2. Qubit 1 as well.

    Probability spreads from 2 outcomes to 4. All 4 are equally likely.

  3. Turns the phase one way where the two qubits agree and the other way where they disagree. No probability moves. This is one term of an Ising Hamiltonian evolved for a short time, and a chain of these is what a Trotter step is made of.

    The outcome probabilities do not move at all. What this step changes is phase — 2 distinct relative phases across the state now — which no measurement can see until a later step turns it back into probability. This is the step that entangles the qubits: from here on no single qubit has a state of its own, only the register as a whole does.

Readout All four outcomes stay equally likely. The gate's whole effect is a phase that depends on whether the two qubits agree — which is exactly what a coupling term in an Ising model is, and why this gate appears in every Trotter step and every QAOA cost layer in the Atlas.

Open in Studio
  • Steps1
  • Wires2
  • Qubits2
  • Depth1 native / 3-gate decomposition (CX, RZ, CX)
  • Parameterθ (radians)
  • Papers2

Definition

RZZ(θ)=e−iθ(Z⊗Z)/2=(e−iθ/20000eiθ/20000eiθ/20000e−iθ/2)\mathrm{RZZ}(\theta) = e^{-i\theta (Z\otimes Z)/2} = \begin{pmatrix} e^{-i\theta/2}&0&0&0\\0&e^{i\theta/2}&0&0\\0&0&e^{i\theta/2}&0\\0&0&0&e^{-i\theta/2} \end{pmatrix}

Since (Z⊗Z)2=I⊗I(Z\otimes Z)^2 = I\otimes I, the exponential splits exactly as cos⁡(θ/2) I⊗I−isin⁡(θ/2) Z⊗Z\cos(\theta/2)\,I\otimes I - i\sin(\theta/2)\,Z\otimes Z, and because Z⊗ZZ\otimes Z is diagonal with eigenvalues ±1\pm1, the result is diagonal.

Action on basis states

RZZ(θ)∣00⟩=e−iθ/2∣00⟩,RZZ(θ)∣01⟩=eiθ/2∣01⟩,RZZ(θ)∣10⟩=eiθ/2∣10⟩,RZZ(θ)∣11⟩=e−iθ/2∣11⟩\mathrm{RZZ}(\theta)|00\rangle = e^{-i\theta/2}|00\rangle, \quad \mathrm{RZZ}(\theta)|01\rangle = e^{i\theta/2}|01\rangle, \quad \mathrm{RZZ}(\theta)|10\rangle = e^{i\theta/2}|10\rangle, \quad \mathrm{RZZ}(\theta)|11\rangle = e^{-i\theta/2}|11\rangle

No population moves between basis states; only the relative phase between same-parity and opposite-parity computational states changes, which is exactly the interference resource used by QAOA cost-Hamiltonian layers.

Decomposition

RZZ(θ)=CX  (I⊗RZ(θ))  CX\mathrm{RZZ}(\theta) = \mathrm{CX}\;(I\otimes R_Z(\theta))\;\mathrm{CX}

The first CNOT maps the target qubit onto the parity t⊕ct\oplus c; a single-qubit RZ(θ)R_Z(\theta) there attaches eiθ sign(t⊕c)/2e^{i\theta\,\mathrm{sign}(t\oplus c)/2}, and the second CNOT restores the target to tt while leaving the accumulated phase in place — direct basis-state tracking confirms this phase equals the RZZ(θ)\mathrm{RZZ}(\theta) diagonal entry exactly for all four (c,t)(c,t) inputs.

Key identities

  • RZZ(π/2)\mathrm{RZZ}(\pi/2) is Clifford: numerically, eiπ/4RZZ(π/2)=(S⊗S)⋅CZe^{i\pi/4}\mathrm{RZZ}(\pi/2) = (S\otimes S)\cdot\mathrm{CZ} (both sides equal diag(1,i,i,1)\mathrm{diag}(1,i,i,1)), so at this special angle RZZ\mathrm{RZZ} reduces to a product of Clifford gates; for generic θ\theta it is not Clifford.
  • RZZ(θ1) RZZ(θ2)=RZZ(θ1+θ2)\mathrm{RZZ}(\theta_1)\,\mathrm{RZZ}(\theta_2) = \mathrm{RZZ}(\theta_1+\theta_2): successive ZZ-interaction pulses on the same pair compose additively, matching real continuous-time evolution under a fixed coupling.
  • RXX(θ)=(H⊗H) RZZ(θ) (H⊗H)\mathrm{RXX}(\theta) = (H\otimes H)\,\mathrm{RZZ}(\theta)\,(H\otimes H): conjugating by Hadamards on both qubits rotates the interaction axis from Z⊗ZZ\otimes Z to X⊗XX\otimes X.
  • RZZ(θ)\mathrm{RZZ}(\theta) is the two-qubit workhorse of Trotterized Hamiltonian simulation for Ising-type models and of the cost-Hamiltonian layer in QAOA for Max-Cut-style problems.

References

Exact & formal
  • Unitary / matrix equivalence
  • Direct mathematics
  • Textbook / standard citation
Method
Expand exp(-iθZZ/2) using (Z⊗Z)²=I⊗I to split the Taylor series into cosine and sine terms, and compare the closed form against the parametrized RZZ diagonal matrix.
Result
Pass · RZZ(θ) = diag(e^{-iθ/2}, e^{iθ/2}, e^{iθ/2}, e^{-iθ/2}) exactly, matching the ZZ eigenvalue structure (+1 on |00⟩,|11⟩, -1 on |01⟩,|10⟩).
OpenQASM 3 standard gate set ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
ising interactiontwo qubitrotationhardware native

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