Standard reference for gate matrices, the Clifford/non-Clifford distinction, and controlled-gate constructions used throughout this record.
doi.org/10.1017/cbo9780511976667 ↗Controlled-RZ gate (CRZ)
A parametrized controlled gate that applies an RZ(θ) rotation to the target exactly when the control is |1⟩, the entangling generalization of RZ used when a Z-rotation itself needs to be conditioned on another qubit.
Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.
CRZ is easy to confuse with the controlled-phase gate CP, since both are parametrized two-qubit gates built around a single-qubit Z-axis operation — but they are genuinely different unitaries, and this record exists partly to make that distinction explicit.
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
with the control as the first (leftmost) qubit.
Action on basis states
The control is untouched. When the control is , both target values pick up a phase — gets , not just — which is the key difference from , whose amplitude is always left exactly at .
Decomposition
For control , both CNOTs act trivially and the target sees . For control , the first CNOT flips the target, the surrounding gates pick up phases that depend on the (opposite-sign) bit values before and after the flip, and the second CNOT flips the target back — a direct phase-kickback calculation shows the two contributions add to exactly , reproducing on the original target value .
Key identities
- in general: they agree on only up to how each defines phase on , and differ by a target-controlled global-phase factor overall.
- : controlled Z-rotations on the same qubit pair compose additively, just like the underlying .
- and , since up to global phase considerations that cancel in the controlled version.
- is the natural entangling primitive whenever an algorithm needs a data-dependent -rotation, e.g. controlled time-evolution steps in quantum simulation.
Implementation
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
x q[0];
crz(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 ↗