Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Coefficient Packing #1192

Open
AlexanderViand-Intel opened this issue Dec 15, 2024 · 2 comments
Open

Support Coefficient Packing #1192

AlexanderViand-Intel opened this issue Dec 15, 2024 · 2 comments
Labels
dialect: openfhe Issues related to the openfhe dialect

Comments

@AlexanderViand-Intel
Copy link
Collaborator

AlexanderViand-Intel commented Dec 15, 2024

Probably requires a more explicit packing layout first (e.g., #913).

The OpenFHE backend offers MakeCoefPackedPlaintext and we've got lwe.polynomial_coefficient_encoding, but right now we have neither a openfhe.make_coef_packed_plaintext operation to codegen/emit, nor would the compiler know how to deal with such ciphertexts. For example, rotate takes on a very different meaning for such a ciphertext (multiply with $X$ as in CGGI, not the complex automorphism-based rotate used with most other packed ciphertexts).

@AlexanderViand-Intel AlexanderViand-Intel added the dialect: openfhe Issues related to the openfhe dialect label Dec 15, 2024
@AlexanderViand-Intel AlexanderViand-Intel changed the title Support Coefficient Packing in OpenFHE Support Coefficient Packing Dec 15, 2024
@j2kun
Copy link
Collaborator

j2kun commented Dec 15, 2024

Is rotate even desirable for such encodings? While I'm happy to have support for coefficient packing, it may be safer to raise an error if someone tries to rotate a coefficient packed ciphertext.

@AlexanderViand-Intel
Copy link
Collaborator Author

AlexanderViand-Intel commented Dec 16, 2024

Yeah, I think raising an error is a good starting point, though I assume we eventually want to support the "multiply with $X$" rotation on coefficient packed ciphertexts for CGGI-stuff/scheme switching anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialect: openfhe Issues related to the openfhe dialect
Projects
None yet
Development

No branches or pull requests

2 participants