# MakeCKKSPackedPlaintext Level

**URL:** <https://openfhe.discourse.group/t/makeckkspackedplaintext-level/1979>\
**Category:** Library Questions\
**Created:** [April 4, 2025, 4:14pm UTC](https://openfhe.discourse.group/t/makeckkspackedplaintext-level/1979 "2025-04-04T16:14:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lawrenceklim](https://avatars.discourse-cdn.com/v4/letter/l/e95f7d/32.png) [@lawrenceklim](https://openfhe.discourse.group/u/lawrenceklim)\
**Post date:** [April 4, 2025, 4:14pm UTC](https://openfhe.discourse.group/t/makeckkspackedplaintext-level/1979/1 "2025-04-04T16:14:33Z")

</div>

I noticed that you can specify a level for creating a CKKS plaintext. My question is that suppose I have a ciphertext with a certain level, does it matter that it is multiplied or added with a CKKS plaintext with the same or different level? What is the recommended practice (and/or best performance) for specifying the level of a CKKS plaintext when doing ciphertext-plaintext addition or multiplication operations?

---

<div class="post-metadata">

**Author:** ![andreea.alexandru](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/andreea.alexandru/32/378_2.png) [@andreea.alexandru](https://openfhe.discourse.group/u/andreea.alexandru)\
**Post date:** [April 4, 2025, 8:43pm UTC](https://openfhe.discourse.group/t/makeckkspackedplaintext-level/1979/2 "2025-04-04T20:43:45Z")

</div>

For efficiency reasons, it is recommended that you align the number of levels of the ciphertexts/plaintexts before performing an operation over them. This is done automatically (with the exception of the FIXEDMANUAL mode, where you have to manually ensure the scaling is the same). Encoding a plaintext (this holds for ciphertexts as well) directly at the level it has to be used instead at default 0 level saves both space since fewer limbs will be stored, and computation time since the dropping of levels does not need to be done anymore.

---

<div class="post-metadata">

**Author:** ![lawrenceklim](https://avatars.discourse-cdn.com/v4/letter/l/e95f7d/32.png) [@lawrenceklim](https://openfhe.discourse.group/u/lawrenceklim)\
**Post date:** [April 5, 2025, 2:32pm UTC](https://openfhe.discourse.group/t/makeckkspackedplaintext-level/1979/3 "2025-04-05T14:32:48Z")

</div>

Thanks for the answer!
