Coherent pulse detection and multi-channel coherent detection based on a single balanced homodyne receiver.