Documentation

CslibFrontier.Computability.Complexity.Classes.QMA.MA

MA ⊆ QMA and BPP ⊆ BQP #

A Merlin–Arthur verifier V (Cslib.Complexity.MA) reads Merlin's proof y of length q(n) and Arthur's random string r of length p(n). Its quantum simulation (Cslib.Quantum.UniformVerifierFamily.ofMA) does the following:

This is the gate-by-gate simulation of randomized circuits, with random bits produced by Hadamard gates, of Watrous, Section IV.3 (Figure 7), there used for BPP ⊆ BQP; the containment MA ⊆ QMA appears in the inclusion diagram of Watrous, Figure 14.

The classical part maps basis states to basis states, each accepted with probability 0 or 1, so different proofs and coin strings do not interfere. On a witness state ψ = ∑_y ψ_y |y⟩, the verifier accepts with probability ∑_y |ψ_y|² · #{r | V(x, y ++ r)} / 2^{p(n)} (Cslib.Quantum.UniformVerifierFamily.acceptProb_ofMA), the average over a distribution of proofs of their classical acceptance probabilities. A basis state of a good proof gives completeness, and soundness holds for every witness state, entangled or not, since an average of values at most 1 / 3 is at most 1 / 3. With no proof (q = 0), the same verifier is a BQP family for a BPP verifier.

The containment is stated for decision problems only, since the library has no promise version of MA; the verifier and its acceptance probability do not depend on a promise.

Main definitions #

Main results #

References #

The verifier of a Merlin–Arthur verifier #

The verifier's circuit: Hadamard gates on the p(n) qubits after Merlin's q(n)-qubit proof, then the verifier of the NP relation on proofs of length q(n) + p(n).

The quantum verifier of a Merlin–Arthur verifier: for a uniform family F of circuits on the words frame x ++ y ++ r, the verifier reads Merlin's proof as a witness of q(|x|) qubits, prepares Arthur's p(|x|) coins in uniform superposition with Hadamard gates, and runs the verifier of the NP relation of F on proofs of length q + p.

The acceptance probability of the Merlin–Arthur verifier. When F decides f exactly on the words frame x ++ w, the verifier accepts the witness state ψ = ∑_y ψ_y |y⟩ with probability ∑_y |ψ_y|² · #{r | f (y ++ r)} / 2^{p(|x|)}: the coins are uniform and independent of the proof, and different basis proofs do not interfere.

A basis proof y is accepted with probability #{r | f (y ++ r)} / 2^{p(|x|)}.

Acceptance with no Merlin proof. When F decides f exactly on the words frame x ++ r, the zero-witness Merlin--Arthur circuit accepts with probability #{r | f r} / 2^{p(|x|)}.

theorem Cslib.Quantum.UniformVerifierFamily.acceptProb_ofMA_le (F : UniformCircuitFamily) (q p : Polynomial ℕ) (x : List Bool) (f : List Bool → Bool) (hF : ∀ (w : List Bool), w.length = Polynomial.eval x.length (q + p) → F.acceptProb (Turing.MultiTapeTM.frame x ++ w) = if f w = true then 1 else 0) {t : ℝ} (ht : ∀ (y : Fin (Polynomial.eval x.length q) → Bool), ↑{r : Fin (Polynomial.eval x.length p) → Bool | f (List.ofFn y ++ List.ofFn r) = true}.card / 2 ^ Polynomial.eval x.length p ≤ t) (ψ : Qubits (Polynomial.eval x.length q)) (hψ : ‖ψ‖ = 1) :
(ofMA F q p).acceptProb x ψ ≤ t

Soundness of the Merlin–Arthur verifier: if every basis proof is accepted with probability at most t, then so is every unit witness state.

theorem Cslib.Complexity.MA_subset_QMA {α : Type} {enc : α ↪ List Bool} :
MA enc ⊆ QMA enc

MA ⊆ QMA: Merlin's proof is read as a quantum witness and Arthur's coins are prepared with Hadamard gates. A basis state of a good proof is accepted with probability at least 2 / 3; a witness state ∑_y ψ_y |y⟩ is accepted with the average of the acceptance probabilities of the proofs y, weighted by |ψ_y|², which is at most 1 / 3 on a non-member.

theorem Cslib.Complexity.BPP_subset_BQP {α : Type} {enc : α ↪ List Bool} :
BPP enc ⊆ BQP enc

BPP ⊆ BQP: the coins of a bounded-error verifier are prepared with Hadamard gates and the verifier runs as a reversible circuit; this is the Merlin–Arthur verifier with no proof.