Documentation

CslibFrontier.Computability.Complexity.Classes.BQP.Nondeterministic

Nondeterministic quantum computation and nonzero counting gaps #

NQP accepts exactly when the probability of measuring one on the output qubit is positive. We prove NQP_eq_coCeqP for polynomial-time uniform circuits over Hadamard, NOT, CNOT and Toffoli. The exact path sum gives the upper bound. For the converse we implement a difference of two counts as a circuit's acceptance bias, flip the phase of its accepting subspace and uncompute. Measuring return to the input gives the square of the bias (exists_uniformCircuitFamily_acceptProb_sq_of_mem_GapP). Fenner, Green, Homer and Pruim, Theorem 1.1, use polynomial-time quantum Turing machines with algebraic amplitudes. Their construction for the counting-to-quantum direction (Theorem 3.2) uses only signs and Hadamard amplitudes, as observed in Section 4.

Main definitions #

Main results #

References #

def Cslib.Complexity.NQP {α : Type} (enc : α ↪ List Bool) :
Set (Set α)

Languages recognized with strictly positive acceptance probability by polynomial-time uniform elementary quantum circuits. This is the circuit model of nondeterministic quantum polynomial time over Hadamard, NOT, CNOT and Toffoli.

theorem Cslib.Complexity.NQP_eq_iUnion_NQTIME {α : Type} {enc : α ↪ List Bool} :
NQP enc = ⋃ (k : ℕ), NQTIME enc fun (n : ℕ) => n ^ k

Nondeterministic quantum polynomial time is the union of the polynomial gate bounds in NQTIME.

theorem Cslib.Complexity.exists_uniformCircuitFamily_acceptProb_sq_of_mem_GapP {α : Type} {enc : α ↪ List Bool} {g : α → ℤ} (hg : g ∈ GapP enc) :
∃ (F : Quantum.UniformCircuitFamily) (p : Polynomial ℕ), ∀ (a : α), F.acceptProb (enc a) = (↑(g a) / 2 ^ Polynomial.eval (enc a).length p) ^ 2

Every GapP function is realized by a uniform quantum circuit with acceptance probability equal to its square divided by a power of two depending only on the input length. This is the acceptance probability in Fenner et al., Theorem 3.2, for our elementary circuit model.

theorem Cslib.Complexity.NQP_eq_coCeqP {α : Type} {enc : α ↪ List Bool} :
NQP enc = coCeqP enc

NQP = coC₌P for polynomial-time uniform Hadamard, NOT, CNOT and Toffoli circuits, the circuit version of Fenner et al., Theorem 1.1.