Skip to content

How many levels does support BFV/BGV? #516

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

You must be logged in to vote

Indeed there is a hard-coded [32]uint64 array in the ring.BasisExtender and ring.Decomposer. I think allocating parameters with more than 32 primes should return an error to avoid a panic at runtime, I encourage you to open an issue about it.

If you really want, you can modify this hard-coded value to something larger and it should work.

In theory over 32 primes should not be needed because the higher the level is the more expensive homomorphic operations are, especially key-switching, and it becomes more efficient to instead have a smaller starting level and use bootstrapping. Unfortunately Lattigo does not support bootstrapping for BFV/BGV, it only does for CKKS.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@carblu
Comment options

Answer selected by Pro7ech
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