quantum gate directory

Gates Groups SDKs GitHub
$R_{zz}$

rotations· 2 qubits ·1 parameter

$zz$ Rotation

Two-qubit rotation generated by $Z \otimes Z$.

Open in Quirk ↗ with $\theta = 2\pi t$

The $R_{zz}$ gate implements an Ising-type interaction with rotation angle $\theta$.

$$ \begin{align*} R_{zz}(\theta) & = \exp\left(-i\frac{\theta}{2}Z\otimes Z\right) \\ & = \begin{bmatrix} \mathrm{e}^{-i\frac{\theta}{2}} & 0 & 0 & 0 \\ 0 & \mathrm{e}^{i\frac{\theta}{2}} & 0 & 0 \\ 0 & 0 & \mathrm{e}^{i\frac{\theta}{2}} & 0 \\ 0 & 0 & 0 & \mathrm{e}^{-i\frac{\theta}{2}} \end{bmatrix} \end{align*} $$

Properties

  • Entangling for $\theta$ not a multiple of $\pi$.
  • Can be implemented with two CNOTs and a single-qubit $R_z$ rotation.

Also written

  • $R_{zz}(\theta)$
  • $\mathrm{RZZ}(\theta)$
  • $ZZ(\theta)$

Groups

  • diagonal
  • number-preserving

Data

  • This gate as JSON
  • Edit this page on GitHub

The unitary, drawn

Every entry of the matrix as a disc. The area is the transition probability $|U_{jk}|^2$; the colour and the hand are the phase. Rows are outputs $\langle j|$, columns inputs $|k\rangle$, in the computational basis. Each parameter has a slider; play runs through the family along the path of the Quirk link ($\theta = 2\pi t$).

Phase

Disc area $= |U_{jk}|^2$. Hover an entry for its value, or take the JSON.

Weyl chamber

Where this gate sits among all two-qubit gates, up to single-qubit rotations before and after.

  • this gate
  • other gates
  • perfect entanglers

Coordinates:

not entangling entangling perfect entangler

$(a, b, c)$ means the gate equals $e^{i(a\,XX + b\,YY + c\,ZZ)}$ up to single-qubit gates, reduced to the chamber $\pi/4 \ge a \ge b \ge |c|$ (the convention of the canonical gate, Qiskit and Cirq). The $a = \pi/4$ face is a mirror: $(\pi/4, b, c)$ and $(\pi/4, b, -c)$ are the same gate. Drag the figure to rotate it, double-click to reset.

SDK support

How to call this gate in each framework. Hover a ⓘ for a note; the support matrix compares every gate at once.

SDKName
Qiskit qiskit.circuit.library.RZZGate
PennyLane pennylane.IsingZZ
Cirq cirq.ZZPowGate ⓘ
Q# Std.Intrinsic.Rzz
PyQuil pyquil.simulation.matrices.RZZ ⓘ
Braket braket.circuits.gates.ZZ
BQSKit bqskit.ir.gates.RZZGate
Qibo qibo.gates.RZZ
pytket pytket.circuit.OpType.ZZPhase ⓘ
Stim SQRT_ZZ ⓘ
OpenQASM —

← All gates

gate.directory made by nts $\oplus$ rdls