Avalanche photodiodes and quenching circuits for single-photon detection | Synapse