From Quantum Mechanics to Quantum Advantage: A Comprehensive Survey of Theoretical Foundations, Algorithmic Innovations, and Hardware Implementations in the NISQ Era | Synapse