Generation and detection of continuous variable quantum states