Documentation

CslibFrontier.Computability.Complexity.Classes.BQP.Classical

Classical computation in BQP #

Every polynomial-time Boolean function is computed exactly by a uniform family of quantum circuits over the NOT, CNOT and Toffoli gates (Cslib.Complexity.exists_uniformCircuitFamily): its acceptance probability is 1 on the instances where the function is true and 0 elsewhere. Hence P ⊆ BQP (Cslib.Complexity.P_subset_BQP).

The family compiles the polynomial-time uniform Boolean circuits of Cslib.Complexity.CircuitValue.exists_uniformCircuits. On inputs of length n, the De Morgan circuit with G gates is compiled into reversible gates on n + G + 1 qubits (Cslib.Quantum.Reversible.codes): gate j writes the fresh qubit n + j, and the last qubit stays zero. Three CNOT gates then swap the output wire into qubit 0 (Cslib.Quantum.Reversible.circuitCodes). A classical circuit maps the input basis state to a basis state, so the final measurement reads the circuit's output with certainty. This is the gate-by-gate simulation of Boolean circuits by permutation gates in Arora, Barak, Chapter 10 (Section 20.4 of the January 2007 web draft, used there for Theorem 20.17, BPP ⊆ BQP), without the final uncomputation, which is unnecessary when only qubit 0 is measured. With Hadamard gates preparing the random bits, the same compilation gives BPP ⊆ BQP (Cslib.Complexity.BPP_subset_BQP, in CslibFrontier.Computability.Complexity.Classes.QMA.MA).

Main results #

References #

Exact quantum computation of polynomial-time Boolean functions: a polynomial-time Boolean function is computed by a polynomial-time uniform family of NOT, CNOT and Toffoli circuits that accepts with probability 1 where the function is true and 0 where it is false.

theorem Cslib.Complexity.P_subset_BQP {α : Type} {enc : α ↪ List Bool} :
P enc ⊆ BQP enc

P ⊆ BQP: deterministic polynomial time is contained in bounded-error quantum polynomial time, with zero error.