Fundamental Quantum Limits to Waveform Detection