Let DQMLD be the following problem. The input is a stabilizer code on qubits given by independent generators, a memoryless Pauli channel, a syndrome and a promise gap . It is promised that some logical class satisfies for all , where is the total conditional probability of the coset labelled by as in the definition of degenerate maximum-likelihood decoding. The output is .
Theorem (Iyer and Poulin, 2015, Theorem 5.1). On the independent – channel, already for codes with and for a promise gap with , DQMLD is #P-complete up to polynomial-time Turing reductions.
Membership follows because, for a channel in which the probability of an error depends only on its weight (for the independent – channel, on its -weight and its -weight), the probability of a coset is determined by its weight enumerator, the number of its elements of each weight, and counting those elements is a #P problem. Hardness is shown by reducing from the computation of the weight enumerator of a classical binary linear code, which is #P-complete. By Toda's theorem a polynomial-time machine with a #P oracle decides every language in the polynomial hierarchy, so the result places optimal degenerate decoding well above the NP-hard problem of finding a most likely error. The same paper shows that when the promise gap is so large that one error dominates its coset, degenerate and non-degenerate decoding coincide.