Documentation

CslibFrontier.Computability.Complexity.Classes.BQP.ReturnTest

Measuring the return probability of a uniform circuit #

A CNOT layer saves the initial register, including its zero padding. After the circuit runs, the same layer adds its final register to the saved copy. A reversible zero test detects whether all the differences vanish. The resulting uniform circuit accepts with probability equal to the squared norm of the diagonal entry at the input basis state.

Main definitions #

Main results #

The uniform circuit family that accepts exactly the mass of the initial basis state after running the original circuit.

Measuring the designated output of the return test gives the squared norm of the diagonal matrix entry indexed by the padded input.