Interfacing a superconducting quantum processor to a quantum memory