SEAL-Python icon indicating copy to clipboard operation
SEAL-Python copied to clipboard

Multiplication Depth analysis

Open ayushmohod opened this issue 2 years ago • 3 comments

I want to use any on of the scheme and get to know about the multiplication depth for the parameters that are ( n = 8192, q = 2^383-2^33+1, t1 = 1099511922689, and t2 = 1099512004609) i want want to know which scheme i can use and how to create this context for it.

ayushmohod avatar Jun 29 '23 11:06 ayushmohod

You can use CoeffModulus.MaxBitCount(poly_modulus_degree) to get the value, and the sum of CoeffModulus should smaller than this, releated issue.

Huelse avatar Jun 30 '23 14:06 Huelse

so for n=8192 there are a particular number of bits of q which we can given and sum up those bit to the q i provided,right?

but how can i give plaintext modulus(t1 and t2) value in ckks scheme? and also for n=8192 the q limit is 218 something and my q is 383 bits, so what can i do in that case?

ayushmohod avatar Jun 30 '23 15:06 ayushmohod

I'm not sure what you want to know, but the rule is simple. If you need larger a MaxBitCount, you can increase the poly_modulus_degree, like n=16384, which means the noise budget will be larger and you can do more multiplication at the same accuracy, but the costs are the evaluate will be slower.

Huelse avatar Jul 01 '23 03:07 Huelse