Documentation

CslibFrontier.Computability.Circuit.Quantum.RandomTag

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 #

Main results #

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.

The success probability when running the circuit on a fair random tag.

Joint probability that the random tag is one and the circuit on the tagged input succeeds.