- Fundamentals
- Also: controlled-Z gate
- Also: controlled-phase gate
- Also: CPHASE
CZ Gate
A symmetric two-qubit gate that applies a phase flip (Z gate) to the target qubit if and only if both qubits are in the |1> state, native to several superconducting and neutral atom platforms.
The CZ (controlled-Z) gate is a two-qubit entangling gate that applies a phase of to the component of the state, leaving all other computational basis states unchanged. Unlike the CNOT gate, the CZ gate is symmetric: it treats both qubits identically, so there is no distinction between control and target.
Matrix representation
In the computational basis :
Its action on basis states:
The CZ gate is diagonal in the computational basis, meaning it only modifies phases, never swaps populations. It is also Hermitian () and its own inverse ().
Relationship to CNOT
The CZ and CNOT gates are equivalent up to single-qubit Hadamard gates:
This means any circuit using CNOTs can be rewritten using CZ gates (and vice versa) with at most two additional Hadamard gates per CNOT. On hardware where CZ is native (Google, Rigetti, many neutral atom platforms), this conversion is how CNOT gates are implemented.
The symmetry of CZ is apparent from its matrix: swapping the two qubits leaves the gate unchanged. In circuit diagrams, both qubits are typically shown with a filled dot connected by a vertical line, reflecting this symmetry.
Physical implementations
Superconducting qubits: CZ gates are implemented by tuning two transmon qubits so that the state transiently interacts with the non-computational or state. This conditional phase accumulation produces the CZ gate in 20 to 60 nanoseconds. Google’s Sycamore processor uses this approach.
Neutral atoms: The Rydberg blockade mechanism naturally implements a CZ gate. When two atoms are close enough, exciting both to the Rydberg state is energetically forbidden. A pulse sequence that conditionally excites and de-excites atoms produces a phase of on and on all other states. QuEra and Atom Computing use this approach.
Trapped ions: CZ can be constructed from the native Molmer-Sorensen (XX) gate plus single-qubit rotations.
Role in quantum algorithms
The CZ gate appears directly in many quantum algorithms. In Grover’s algorithm, the oracle for searching is exactly a CZ gate. The diffusion operator also uses CZ as a building block. In the surface code, syndrome extraction circuits commonly use CZ gates on platforms where they are native.
Why it matters for learners
The CZ gate is one of the most common native two-qubit gates. Its symmetry makes it conceptually cleaner than CNOT for many purposes, and its diagonal structure (purely phase-based, no bit flips) connects directly to the phase-based reasoning that underlies much of quantum algorithm design. Understanding the CZ-CNOT equivalence also helps when translating algorithms between different hardware platforms.