1. A receiver in a quantum key distribution (QKD) system, the receiver comprising: a quantum optical unit configured to receive quantum signals from a transmitter of the QKD system, modulate the quantum signals based on a basis sequence, and output detection information by detecting the modulated quantum signals; and a signal processor configured to generate a raw key by using the detection information and the basis sequence based on a double buffering scheme.