Grover rotation of the state in the marked / unmarked plane
Phase-estimation readout probability P(y)

Quantum Counting: Phase-Estimation Readout Distribution and Grover Rotation (2D)

Count the marked items in an unsorted database without finding them. Grover's operator rotates the state by an angle set by the fraction of marked items; quantum phase estimation on that operator reads the angle out as a peaked distribution of outcomes, and the count follows from N sin squared of the estimated phase. A Blender-built quantum chip shows the database cubes whose amplitudes grow and shrink with each Grover step, the rotation dial and the readout histogram. Change the database size, the number of marked items and the number of phase qubits. The readout distribution is checked against a full state-vector simulation of the circuit and against the Brassard-Hoyer-Tapp error bound.

Made with 🟠 Blender