We consider the problem of deciding if a set of quantum one-qudit gates S={g1,…,gn}⊂G is universal, i.e. if <S> is dense in G, where G is either the special unitary or the special orthogonal group. To every gate g in S we assign the orthogonal matrix Adg that is image of g under the adjoint representation Ad:G→SO(g) and g is the Lie algebra of G. The necessary condition for the universality of S is that the only matrices that commute with all Adgi ’s are proportional to the identity. If in addition there is an element in <S> whose Hilbert–Schmidt distance from the centre of G belongs to ]0,21[ , then S is universal. Using these we provide a simple algorithm that allows deciding the universality of any set of d-dimensional gates in a finite number of steps and formulate a general classification theorem.
We present a criterion that serves as the basis for a polynomial-time algorithm to decide whether a finite set of qudit gates exponentiated by some Hamiltonians is universal. Our approach formulates universality in Lie algebraic terms and applies Borel--de Siebenthal theory with a diagonal generator having incommensurate spectrum. In this framework, nonuniversality is detected by invariant subspaces, equivalently by a graph-connectivity obstruction, while universality is repaired by adding generators that couple disconnected components. We further prove that two generators are sufficient for universal control. Our work reveals a profound link between qudit universality and irreducibility of Lie algebra representations.