Open mmazz opened 1 year ago
x_encrypted
since it has only one level of scaling factor.Enc(Delta * x) * Enc(Delta * y)
gives Enc(Delta^2 * x* y)
so we rescale it down to Enc(Delta^2/q * x * y)
and hoping Delta^2/q
is approximately closes to Delta
(where q
is the current modulus to drop)evaluator.mod_switch_to_next()
API to align the number of modulus WITHOUT doing the rescale.
I'm new in this world and one task that my advisor give was to implement a simple x^4.
The idea is to try an intensive workload for a domestic PC to do a naive profile using something like Perf.
I implement x^3 with no problem, but when I try x^4 I get wrong answers, even if use big parameters.
Here is what i have (working for x^3). I try different polynomial modulus, different coefficient modulus, etc. I know that doesn't exist THE way to choose the parameters, but some guide for the modulus array? Some guidance?