openfhe-development icon indicating copy to clipboard operation
openfhe-development copied to clipboard

CoefPackedEncoding in BFV with q - abs(value)

Open sarojaduality opened this issue 2 years ago • 0 comments

In the EncodeVec function of the CoefPackedEncoding, when encoding negative values, we encode t - abs(value), where t is the plaintext modulus. Before, we used q - abs(value), where q is the ciphertext modulus because this has less noise. Why does using q fail with the noise improvement when using Q/t instead of Delta?

sarojaduality avatar Jul 06 '22 16:07 sarojaduality