Lidar techniques for a SNSPD-based measurement