The technique leverages quantum properties of light to guarantee security while preserving the accuracy of a deep-learning model.