The invention relates to
quantum key distribution, in particular to an efficient base matching method based on
software and hardware
collaboration, which comprises the following steps: temporarily storing massive base matching information in DDR (
Double Data Rate) through
collaboration among modules such as
software at a transmitting end and a receiving end, an FPGA (
Field Programmable Gate Array) and the DDR, firstly carrying out hardware base matching on the FPGA according to a detection result, and obviously reducing the data volume preprocessed by the FPGA; the method comprises the following steps of: preprocessing data of a hardware module, transmitting the preprocessed data to
software, and finishing base matching by the software on the basis, thereby effectively reducing data interaction pressure between the hardware module and the software, performing
data compression on high-redundancy information at a receiving end and a transmitting end, reducing data communication pressure, and providing
technical support for high-speed
quantum key distribution and long-distance transmission. The working frequency and the maximum transmission distance of the
quantum key distribution system are possible to be improved; according to the technical scheme provided by the invention, the
processing pressure of massive base data of the
quantum key distribution system under the conditions of high-speed working frequency and long-distance transmission can be effectively overcome.