Mathematical Foundations of Quantum Advantage (2nd Edition)