How Quantum Computing Solves Complex Problems