- Fundamentals
- Also: CU gate
Controlled Unitary Gate
A controlled unitary is a quantum gate that applies a unitary operation U to a target qubit only when a control qubit is in state |1>, generalizing the CNOT gate to arbitrary unitaries and enabling phase kickback, quantum phase estimation, and Grover oracles.
A controlled unitary gate acts on two registers: a single control qubit and a target register of one or more qubits. When the control qubit is , the target is left unchanged; when the control is , the unitary is applied to the target. The general action is and . The CNOT gate is the special case where is the Pauli-X gate, and the controlled-Z gate is the case where is the Pauli-Z gate. Any single-qubit unitary, including rotations of arbitrary angle, can be used as , making controlled unitaries a versatile building block for quantum circuits. The gate reduces to the identity on the target whenever the control is , which is what gives the gate its conditional character.
The matrix representation of in the computational basis is block diagonal: the top-left block is the identity (acting when the control is ) and the bottom-right block is (acting when the control is ). For a single-qubit this yields a matrix, and for a -qubit the full matrix is . The block-diagonal structure directly reflects the conditional action. For multi-qubit targets, the same principle applies: the upper block is an identity of the target dimension and the lower block is . This representation makes it straightforward to verify that is unitary whenever is unitary, since a block-diagonal matrix of unitaries is itself unitary.
Multi-controlled variants generalize to use control qubits, applying only when all controls are . The Toffoli gate is the iconic example with two controls and . Multi-controlled unitaries can be decomposed into sequences of single-qubit and CNOT gates, though the number of primitive gates grows with the number of controls. A common decomposition strategy uses ancilla qubits to compute the AND of all control qubits into a single ancilla, then applies a singly-controlled , then uncomputes the ancilla. Without ancillas, decompositions use basic gates for an -qubit control register. Efficient decompositions of multi-controlled gates are an active area of circuit optimization research because they directly determine the depth of algorithms like quantum phase estimation and Grover’s algorithm.
Controlled unitaries play a central role in quantum phase estimation (QPE), where a series of gates are applied with the -th qubit of a phase register as the control. Because for an eigenstate , each gate kicks back a phase of onto the control qubit, encoding the eigenphase in the Fourier basis of the control register. This phase kickback mechanism relies entirely on the eigenvalue relation and the conditional application structure of the controlled unitary. In Grover oracles the controlled structure enables the selective phase flip of marked states, and in variational algorithms parameterized controlled rotations form the trainable layers of quantum neural network ansatze.