Swap-test circuit
Running overlap estimate

Swap Test: Circuit, Bloch Spheres and Running Overlap Estimate (2D)

Compare two quantum states without learning either one. An ancilla qubit controls a swap of two data qubits, and the chance of reading 0 is one half plus half the squared overlap. Set both states on the Bloch sphere and watch shots accumulate into an overlap estimate with a shrinking error bar. Change the angles, readout error and shots per experiment to see the estimator distribution and the shot budget. A Blender-built circuit board, gates, dial and Bloch spheres, with a real three-qubit state-vector check built in.

Made with 🟠 Blender