
The first quantum algorithm was devised by David Deutsch in 1985, demonstrating that a quantum computer can solve problems more efficiently than a classical one.
Qubits become entangled so that a change in one instantly affects another, even at a distance. The algorithm processes the superposition of all input numbers simultaneously, as if computing on an infinite number of calculators in parallel. At the end, measurement collects the result — as if extracting the desired sound from a chorus of voices.