Swap Test: Circuit, Bloch Spheres and Running Overlap Estimate (2D)
The swap-test circuit with two Bloch spheres for the input states, a dial for the ancilla readout and a running estimate of the overlap with its 95 percent band. The same shared model as the 3D scene, with live readouts and numerical checks.
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.
The swap-test circuit with two Bloch spheres for the input states, a dial for the ancilla readout and a running estimate of the overlap with its 95 percent band. The same shared model as the 3D scene, with live readouts and numerical checks.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install