Flips the phase of the component and leaves all other components unchanged.
CZ applies a Z gate (phase flip) to the target qubit when the control qubit is . The remarkable property of CZ is that it is completely symmetric between the two qubits. It does not matter which qubit you call the control and which you call the target. The gate multiplies the component of the state by −1 and leaves , and unchanged. This symmetry makes CZ a natural fit for hardware where qubit interactions are symmetric.
CZ is a diagonal matrix with entries (1, 1, 1, −1). A diagonal matrix acts on each basis state independently by multiplying it by the corresponding entry. So CZ multiplies by 1, by 1, by 1, and by −1. The symmetry CZ = CZ^T (the matrix equals its own transpose) means there is no physical distinction between the two qubits. CZ is related to CNOT by the identity CZ = (IH) CNOT (IH), which means you can convert between them by applying Hadamard to the target. CZ is a native gate on superconducting transmon processors.
The joint phase structure of the two-qubit state changes. This can create or modify correlations between the qubits.
Creates entanglement when either qubit is in superposition, because the phase flip on cannot be factored into independent single-qubit operations.
Applies a conditional phase flip. The gate is symmetric between the two qubits, so there is no geometric distinction between control and target.
It is tempting to think CZ has a designated control and target qubit, like CNOT does. That sounds plausible because circuit diagrams usually draw one qubit with a control dot. What actually happens is that the CZ matrix treats both qubits identically. The −1 phase lands on , which is symmetric in the two qubit labels. Both qubits play the same role.
CZ is the native entangling gate on many superconducting quantum processors. Understanding CZ and how to convert between CZ and CNOT using Hadamard gates lets you write circuits that map efficiently onto real hardware without unnecessary overhead.
Why is CZ symmetric between the two qubits while CNOT is not?