encode_to_light_plaintext
Engine.encode_to_light_plaintext(message, level)- Encodes a message into a light plaintext format for multiplication.
The maximum size that can be encoded at once is determined by
Engine.slot_count. If the message length exceeds this size, an error is raised. If it is smaller, the message is padded with zeros during encoding. The recommended range of values to encode is[-1, 1].
- Input:
- message: A Python list or numpy array. Data types supported include int, double, and complex double.
- level: optional
- Should be set to the level of the ciphertext that the light plaintext will be multiplied to.
- The level should be an integer greater than or equal to 1.
- Output:
- LightPlaintext
Warning
- The matrix form does not yet support this operation.