Running a uniform quantum circuit on a random tagged input #
A Hadamard gate generates a fair tag bit. The circuit copies the tag and input into a fresh block, runs the given circuit there, and returns the tag on wire zero and the circuit decision on wire one. Keeping the tag outside the block makes the two branches have disjoint measurement supports.
Main definitions #
UniformCircuitFamily.randomTagprepares the correlated tag and decision wires.
Main results #
UniformCircuitFamily.onesProb_randomTagcomputes the decision marginal.UniformCircuitFamily.jointProb_randomTagcomputes the joint probability of tag one and success.
On input x, generate a fair bit b, run F on b :: x, and output b on wire
zero and the decision of F on wire one.
theorem Cslib.Quantum.UniformCircuitFamily.onesProb_randomTag (F : UniformCircuitFamily) (x : List Bool) :
The success probability when running the circuit on a fair random tag.
theorem Cslib.Quantum.UniformCircuitFamily.jointProb_randomTag (F : UniformCircuitFamily) (x : List Bool) :
Joint probability that the random tag is one and the circuit on the tagged input succeeds.