Abstract: A method and apparatus for measuring time, and a programmable controller for a quantum communication device are provided. The method includes: receiving a START signal and a STOP signal; sampling the START signal and the STOP signal by using a same clock to generate a START bit string corresponding to the START signal and a STOP bit string corresponding to the STOP signal; extracting a rising edge of the START signal from the START bit string, and extracting a rising edge of the STOP signal from the STOP bit string; and determining a time interval between the START signal and the STOP signal based on a count of bits between the rising edge of the START signal and the rising edge of the STOP signal and based on a period of the clock.
Abstract: A circuit apparatus for calibrating an unequal-arm interferometer, and a quantum communication device are provided. The circuit apparatus includes: a constant-voltage power supply; a heater, provided on a short arm of the unequal-arm interferometer; and a diode, reversely connected between a positive electrode and a negative electrode of output ends of the constant-voltage power supply, and connected in series with the heater, wherein the diode provides a corresponding reverse saturation current to the heater according to a change in ambient temperature, so as to counteract an excess amount of an optical path change on a long arm of the unequal-arm interferometer under the effect of the change in the ambient temperature, relative to an optical path change on the short arm of the unequal-arm interferometer under the effect of the change in the ambient temperature.
Abstract: The gating apparatus comprises: a system synchronization unit configured to acquire a clock of a quantum communication system; and a programmable controller configured to generate at least one periodic gating signal sequence that are synchronized with the clock of the quantum communication system, wherein gating signals in each gating signal sequence are spaced apart from each other by a predetermined duration, such that a single-photon detector can operate in a corresponding Geiger mode for a received optical pulse, and the predetermined duration is an optical path difference between a long arm and a short arm of an unequal-arm interferometer that is used for performing phase encoding in the quantum communication system.