Skip to content

Incorrect Power Basis in Polynomial Evaluation: Rescale Failure to Control Noise? How to Obtain Ciphertext Noise? #530

Answered by Pro7ech
Tokubara asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, so the issue is way more straight forward than I though.

TLDR

A scaling factor of $\Delta=2^{27}$ is not sufficient to ensure numerical stability as well as well close primes for what you are doing and the only solution (if you want it to work with secure parameters, i.e. a with a larger $N$) is to increase the size of your scaling factor.

More Details

By default you will lose in the order of :

  • Encoding: $\approx \log_{2}(2n)$ bits of precision just due to the encoding (the discretization of $\Delta\cdot\text{DFT}^{-1}(v)\in\mathbb{C}^{2n}$ into $\mathbb{Z}^{N}$),
  • Squaring: $\approx 1$ to $1.5$ bit of precision per squaring.
  • Primes: you will lose $\approx \log_{2}(\Delta/\min(q_{i…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Tokubara
Comment options

@Pro7ech
Comment options

Pro7ech Jan 6, 2025
Collaborator

Answer selected by Pro7ech
@Tokubara
Comment options

@Pro7ech
Comment options

Pro7ech Jan 7, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants