Modulus Switch in CKKS

Hello,

I want to perform the modulus switch in CKKS. For example, now my modulus Q is the product of two primes: p0 and p1. How can I switch the modulus of the CKKS ciphertext from Q to p0?

Just use the CryptoContext method Rescale (Template Class CryptoContextImpl — OpenFHE documentation) and it will do it for you . Note than all *AUTO modes of CKKS do this automatically.

Thank you for the reply. It helps!