A terbium-based molecular magnet, containing four nuclear quantum states, or a qudit, experimentally validates the Grover algorithm for database searches.