Electromagnetic pulses lasting one millionth of a millionth of a second may hold the key to advances in medical imaging, communications and drug development. But the pulses, called terahertz waves, have long required elaborate and expensive equipment to use.