Error reduction for BQP #
The error 1 / 3 in the definition of BQP (Cslib.Complexity.BQP) can be made exponentially
small: A ∈ BQP enc exactly when for every polynomial q some uniform family accepts members with
probability at least 1 - 2^{-q(n)} and other instances with probability at most 2^{-q(n)}, where
n is the length of the encoded instance (Cslib.Complexity.mem_BQP_iff_forall_errorExponent).
This is the majority-vote error reduction of BPP
(Cslib.Complexity.mem_BPP_iff_forall_decidesWithErrorExponent), carried out inside a quantum
circuit, since acceptance is the measurement of a single qubit at the end. The threshold vote of a
family (Cslib.Quantum.UniformCircuitFamily.threshold) runs k copies of the circuit side by side
and reversibly decides whether more than t of them accept. On inputs of length n its register
holds the input, k blocks of the original width w, and the ancillas of a threshold counter:
- CNOT gates copy the input into each block (
Cslib.Quantum.Amplify.copyCodes); - each block runs the original circuit, with its qubit numbers shifted
(
Cslib.Quantum.Amplify.copiesCodes); - a reversible counter computes whether more than
tof the blocks' first qubits are one (Cslib.Quantum.Counter.codes); - three CNOT gates swap that answer into qubit
0(Cslib.Quantum.GateCode.swapCodes).
The copies act on disjoint blocks, so their measurement outcomes are independent
(Cslib.Quantum.Circuit.matrix_flatMap_mapWires), and the classical steps permute the outcomes. The
acceptance probability of the threshold vote is therefore the probability that more than t of k
independent trials succeed, each with the original acceptance probability
(Cslib.Quantum.UniformCircuitFamily.acceptProb_threshold). The amplified family
(Cslib.Quantum.UniformCircuitFamily.amplify) is the strict majority k = 2 r, t = r. The
exponential-moment bound Cslib.sum_prod_le_of_card_filter_le makes its error at most
(8 / 9) ^ r, and r = 6 q gives 2^{-q}. Other thresholds amplify any constant gap, also
away from 1 / 2 (Cslib.Complexity.mem_BQP_of_gap).
Main definitions #
Cslib.Quantum.Amplify.codes,Cslib.Quantum.Amplify.width: the threshold circuit.Cslib.Quantum.UniformCircuitFamily.threshold: the threshold vote of a family.Cslib.Quantum.UniformCircuitFamily.amplify: the amplified family, a strict majority vote.
Main results #
Cslib.Quantum.UniformCircuitFamily.acceptProb_threshold: the acceptance probability of the threshold vote is that of more thantsuccesses amongkindependent copies.Cslib.Quantum.Amplify.sum_accepting_counter_swap: the counter and the swap accept exactly the outcomes with more thantones among the blocks' first qubits; the error reduction forQMAuses it too.Cslib.Quantum.UniformCircuitFamily.acceptProb_amplify: the acceptance probability of the amplified family is that of a strict majority of independent copies.Cslib.Complexity.mem_BQP_iff_forall_errorExponent: error reduction forBQP.
The argument is the standard one; no source locator is claimed for it. BQP itself follows
Bernstein, Vazirani and Arora, Barak (see
Cslib.Complexity.BQP).
References #
CNOT gates copying the first n qubits into the blocks 1, …, k of width w.
The first ancilla of the counter, after the input block and k copies of width w.
The register width of the threshold circuit: the blocks and the counter's ancillas, t + 1
levels for each of its k + 1 stages.
The counter's qubit that reads whether more than t of the k copies accept.
The classical steps #
The CNOT layer is well formed on any register that contains all the copy blocks.
In each copy block the CNOT gates XOR the first n source bits into the destination.
All other bits retain their initial values. The destination may contain arbitrary data.
After the copy step every block holds the input: started from the input x of length
n ≤ m ≤ w, the first m qubits of each block read x.
The classical steps vote by threshold: on a register whose qubits from the counter on are
zero, the counter and the swap leave in qubit 0 whether more than t of the blocks' first qubits
are one.
The parallel copies #
The threshold measurement #
The threshold measurement: on a register that is zero from the counter on, the counter and
the swap accept exactly when more than t of the blocks' first qubits are one. So summing a
function of the blocks' contents over the accepted outcomes that agree with X off the blocks is
summing it over the blocks' contents with more than t ones among their first qubits.
Acceptance probability of the threshold circuit #
The acceptance probability of the threshold circuit is the probability that more than t
of k independent runs of the original circuit accept.
The threshold circuit is constructed in polynomial time #
The threshold vote of a family: on inputs of length n, k(n) copies of the family's
circuit run side by side, and the final measurement reads whether more than t(n) of them
accept.
The acceptance probability of the threshold vote is the probability that more than t(n)
of k(n) independent runs of the family accept, on inputs of length n.
The amplified family: on inputs of length n, 2 r(n) copies of the family's circuit run
side by side, and a reversible strict majority vote of their answers is measured.
The acceptance probability of the amplified family is the probability that more than
r(n) of 2 r(n) independent runs of the family accept, on inputs of length n.
Amplifying acceptance: a family accepting with probability at least 2 / 3 gives a family
accepting with probability at least 1 - (8 / 9) ^ r(n).
Amplifying rejection: a family accepting with probability at most 1 / 3 gives a family
accepting with probability at most (8 / 9) ^ r(n).
Error reduction for BQP: a problem is in BQP exactly when, for every polynomial q,
some polynomial-time uniform family accepts the encodings of members with probability at least
1 - 2^{-q(n)} and those of other instances with probability at most 2^{-q(n)}, where n is the
length of the encoding.