The setting
In quantum circuit synthesis, a gate set is universal on two qubits when finite products of its gates and their inverses realize every operation in the two-qubit unitary group . Because single-qubit gates acting independently on each qubit cannot generate entanglement, universality on two qubits requires adjoining an entangling two-qubit gate. Here the entangling primitive is the gate, and the question is whether all single-qubit product gates together with generate .
The generating set
Write for the group of complex unitary matrices and for the group of complex unitary matrices, indexed in the two-qubit computational basis . The gate is the complex unitary matrix that fixes and and swaps and with a phase factor of , given in the computational basis by (1): (1)✦
For single-qubit unitaries , their Kronecker product in the same computational basis lies in . The set of local and generators consists of all single-qubit product gates together with , given by (2): (2)✦ The subgroup of generated by , denoted , is the smallest subgroup of containing .
The claim
Theorem. For every two-qubit unitary matrix , (3)✦
What is checked
In the Lean library, the membership claim (3) is stated over the two-qubit unitary group and the subgroup generated by the set in (2), built from Kronecker products of single-qubit unitaries and the matrix in (1).