Quantum Memory Channels in Quantum Optics