Statistics for Development and analysis of the optical communication system with quantum cryptography