A randomised classical circuit is meant to copy its single input bit to its output
PHYSICS · Multi-part · Fermi University Physics · Quantum Information & Technology · The quantum circuit model and quantum algorithms · The quantum circuit model and quantum algorithms
Quantum Information and Technology, Ch What quantum computers can compute efficiently
Problem
A randomised classical circuit is meant to copy its single input bit x∈{0,1} to its output, but is corrupted by two independent fair coin flips c1,c2∈{0,1}: it outputs y=x⊕(c1∧c2), where ⊕ is addition modulo 2 and c1∧c2 is 1 only when both coins show the outcome labelled 1.
((a)) Find P(y=x) and confirm it is consistent with using this circuit as a bounded-error subroutine with error at most 1/3 on every input x.
((b)) Following the proof that BPP⊆BQP, replace each coin by a qubit prepared in H∣0⟩ and build the reversible circuit (a Toffoli gate computing c1∧c2 into a fresh ancilla, then a CNOT from that ancilla onto a qubit initialised to ∣x⟩) that computes y, deferring measurement of the coin qubits to the end. Write the resulting state, before any measurement, as a path sum over the two coins.
((c)) Measure the qubit that holds y. Using the path sum, compute P(y=x) and confirm it matches part (a).