Standard reference for gate matrices, the Clifford/non-Clifford distinction, and controlled-gate constructions used throughout this record.
doi.org/10.1017/cbo9780511976667 ↗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.
Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.
RZZ matters because ZZ coupling is often the physical interaction a device actually has: rather than compiling a target algorithm's entangling step down to CNOT, many Hamiltonian-simulation and QAOA compilers target RZZ directly since it matches the hardware's native two-body term.
Circuit & simulation
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
Since , the exponential splits exactly as , and because is diagonal with eigenvalues , the result is diagonal.
Action on basis states
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
The first CNOT maps the target qubit onto the parity ; a single-qubit there attaches , and the second CNOT restores the target to while leaving the accumulated phase in place — direct basis-state tracking confirms this phase equals the diagonal entry exactly for all four inputs.
Key identities
- is Clifford: numerically, (both sides equal ), so at this special angle reduces to a product of Clifford gates; for generic it is not Clifford.
- : successive ZZ-interaction pulses on the same pair compose additively, matching real continuous-time evolution under a fixed coupling.
- : conjugating by Hadamards on both qubits rotates the interaction axis from to .
- 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.
Implementation
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
rzz(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
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 ↗