Mathematics Physics and Computer Science A method for quantum key distribution and for transmittng and receiving an optical signal, and a receiver of an optivcal signal for quantum key distribution