Documentation

CslibFrontier.Computability.Circuit.Quantum.AcceptOperator

The acceptance operator of a quantum verifier #

On an input word x, a verifier (Cslib.Quantum.UniformVerifierFamily) maps a witness state ψ to its final state and accepts on the outcomes accepting. Restricting the final state to those outcomes gives a linear map B_x (Cslib.Quantum.UniformVerifierFamily.acceptMap) with ‖B_x ψ‖² = acceptProb x ψ. The acceptance operator Q_x = B_x† B_x (Cslib.Quantum.UniformVerifierFamily.acceptOp) is therefore positive and its quadratic form is the acceptance probability. Its eigenvalues are the acceptance probabilities of its eigenvectors, so the largest one is the maximum acceptance probability over unit witnesses Marriott, Watrous, proof of Theorem 3.4.

For circuits over the Hadamard and Toffoli gates with h Hadamard gates, the matrix entry ⟨u|Q_x|v⟩ in the computational basis is the projected pair gap of the registers x ++ u and x ++ v divided by 2^h (Cslib.Quantum.UniformVerifierFamily.inner_ket_acceptOp_ket). Hence 2^{hd} tr(Q_x^d) is the integer traceGap x d, a sum over closed paths of d steps through the basis witnesses of products of pair gaps (Cslib.Quantum.UniformVerifierFamily.re_trace_acceptOp_pow). The trace bounds for positive operators (LinearMap.IsPositive.pow_le_re_trace_pow, LinearMap.IsPositive.re_trace_pow_le) then separate accepting from rejecting inputs:

Marriott and Watrous bound tr(Q_x) for a verifier whose error has first been reduced below 2^{-m-2}. Here powers of Q_x play that role instead, which is how Cslib.Complexity.QMA_subset_PP avoids strong error reduction.

Main definitions #

Main results #

References #

The acceptance map of the verifier on the input word x: a witness state ψ goes to the final state of the circuit run on x, ψ and zeros, restricted to the accepting outcomes.

The squared norm of the acceptance map is the acceptance probability.

On a basis witness |z⟩, the acceptance map restricts the final state of the circuit run on the word x ++ z.

The acceptance operator B† B of the verifier on the input word x, where B is the acceptance map.

The quadratic form of the acceptance operator is the acceptance probability.

The entries of the acceptance operator are pair gaps: ⟨u|Q_x|v⟩ is the projected pair gap of qubit 0 on the registers holding x ++ u and x ++ v, divided by 2^h.

The trace gap of the verifier on the input word x: the sum, over closed paths p 0, …, p d = p 0 of basis witnesses, of the product of the pair gaps of consecutive steps. It is 2^{hd} tr(Q_x^d) (Cslib.Quantum.UniformVerifierFamily.re_trace_acceptOp_pow).

The trace of a power of the acceptance operator is a trace gap over a power of two.

theorem Cslib.Quantum.UniformVerifierFamily.pow_mul_le_traceGap (V : UniformVerifierFamily) (x : List Bool) {c : ℝ} (hc : 0 ≤ c) (h : ∃ (ψ : Qubits (V.witnessLength x.length)), ‖ψ‖ = 1 ∧ c ≤ V.acceptProb x ψ) (d : ℕ) :
c ^ d * 2 ^ (hadamardCount (V.gates x.length) * d) ≤ ↑(V.traceGap x d)

Completeness bound: if some unit witness is accepted with probability at least c ≥ 0, then c^d 2^{hd} ≤ traceGap x d.

theorem Cslib.Quantum.UniformVerifierFamily.traceGap_le (V : UniformVerifierFamily) (x : List Bool) {s : ℝ} (h : ∀ (ψ : Qubits (V.witnessLength x.length)), ‖ψ‖ = 1 → V.acceptProb x ψ ≤ s) (d : ℕ) :
↑(V.traceGap x d) ≤ 2 ^ V.witnessLength x.length * s ^ d * 2 ^ (hadamardCount (V.gates x.length) * d)

Soundness bound: if every unit witness is accepted with probability at most s, then traceGap x d ≤ 2^m s^d 2^{hd}, where m is the number of witness qubits.