These are code snippets of the CTLWE holomorphic encryption scheme implemented on Optalysys' first silicon photonics optical computing demonstrator, described in more details in the Medium article https://medium.com/p/ee817ddc861c .
While the CTLWE scheme is, to the best of our knowledge, secure against classical and quantum attacks, this particular implementation was designed as a demonstration rather than a ready-to-use suite. It was used as a proof of principle that holomorphic encryption can be realized optically, and will form the basis of more efficient and fully secure optical encryption systems we are currently working on.