In this CKKS bootstrapping paper https://eprint.iacr.org/2018/153 the authors use a Taylor expansion to approximate the complex exponential function within a small range. More precisely, for the input $t \in R_q$ the formula $$ P_0(t)=\Delta \sum_{k=0}^{d_0} \frac{1}{k!} \left(\frac{2\pi \mathrm{i} t}{2^r q}\right)^k $$ is evaluated for some finite $d_0\geq 1$ (in the box on page 10).
I'm wondering how the authors are able to evaluate the term in the brackets. Here, $t\in[-Kq,Kq]$ can be quite large, but often $||t||\ll 2^r q $.
I can see two possible strategies, but neither of them seems to be a good choice:
- one uses something like $\lfloor \Delta /(2^r q) \rceil$ and multiplies with it in the homomorphic evaluation. However, this is not desirable because a large $\Delta$ is required
- one applies $\mathrm{Rescaling}$ by $2^r q$ to a ciphertext with message $ \approx 2 \pi \mathrm{i} t$. This reduces the modulus a lot and potentially destroys all the precision of $t$