Unmarked amplitude bar Marked amplitude bar State-vector arrow
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Grover's Algorithm in 3D: The Geometric Rotation

Grover's algorithm confines its entire trajectory to a single 2-D plane spanned by the marked state and the equal superposition of everything else — a fact usually shown as a flat diagram. This simulator renders it as an actual orbitable 3-D scene: a ring of amplitude bars around the search space (the real, live amplitude array, oracle-flipped and mean-inverted every iteration exactly as the algorithm defines), and a literal state-vector arrow whose angle is computed each step from that same array's marked and unmarked components. Orbit the camera to watch the arrow sweep toward the marked axis and, if you keep iterating past the optimal count, sweep straight past it — the real over-rotation effect, not an animation loop.