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
Two Boolean formulas on two bits are given: f(x1,x2)=x1∧x2 and g(x1,x2)=x1⊕x2. A randomised classical circuit tests whether f and g are identically equal by flipping two independent fair coins to obtain a uniformly random pair (b1,b2)∈{0,1}2, evaluating f(b1,b2) and g(b1,b2), and outputting 1 ("equivalent") if the two values agree, 0 ("not equivalent") otherwise.
((a)) Tabulate the circuit's output for the four coin outcomes and give its acceptance probability (probability of outputting 1). Confirm that, since f≡g, this is a valid randomised test with error at most 1/3 (the definition used for BPP).
((b)) Following the proof that BPP⊆BQP, build an explicit quantum circuit that reproduces this test: replace each coin by a qubit prepared in H∣0⟩, compute the agreement bit reversibly with CNOT/Toffoli-type gates into an output qubit initialised to ∣0⟩, and defer measurement of the coin qubits to the end. Write the state of the circuit, as a path sum over the two coins, immediately before any measurement.
((c)) Measure the output qubit. Using the path sum, compute the probability of the outcome 1 and confirm it matches part (a).