Table of Contents
Multiqubit gates
Multiqubit gates are quantum gates that act on two or more qubits simultaneously. They are the mechanism by which entanglement is created and destroyed in a quantum circuit — a single-qubit gate acting on one qubit at a time can never entangle two qubits that started in a product state.
A single-qubit gate is a unitary matrix. A two-qubit gate is a unitary, a three-qubit gate is , and in general an -qubit gate is a unitary. The most important two-qubit gate is the CX gate.
Controlled gates
Most multiqubit gates in common use are controlled gates. A controlled- gate applies a single-qubit unitary to a target qubit if and only if all control qubits are in state . The CX gate is controlled-. The Toffoli gate is doubly-controlled- (two control qubits). Any single-qubit gate has a controlled version, written , which is a unitary acting as identity on the control subspace and as on the control subspace.
Universality
Single-qubit gates together with the CX gate form a universal gate set: any -qubit unitary can be approximated to arbitrary precision using only these. In fault-tolerant quantum computing, the discrete set is typically used instead, where the Solovay-Kitaev theorem guarantees that any single-qubit unitary can be efficiently approximated to within using gates.
List of multiqubit gates
- CX gate (CNOT) — controlled-NOT (CX); the standard entangling gate
- CCX (Toffoli) gate — doubly-controlled-NOT (CCX); classically universal
- SWAP gate — exchanges the states of two qubits
- iSWAP gate — swap with imaginary phase; native on superconducting hardware
