Skip to content

Add an end-to-end runner test for ckks.mul + ckks.relinearize (#3598) - #3634

Open
Heath4 wants to merge 1 commit into
google:mainfrom
Heath4:mul-relin-e2e-test
Open

Heath4 wants to merge 1 commit into
google:mainfrom
Heath4:mul-relin-e2e-test

Conversation

@Heath4

@Heath4 Heath4 commented Nov 12, 2026

Copy link
Copy Markdown

Follow-up to #3598, covering the "mul + relinearize on ciphertexts" part of #3022.

How It works:
@test_mul_relin runs ckks.mul then ckks.relinearize, lowered with --ckks-to-polynomial --heir-polynomial-to-llvm. The test checks that d0 + d1*s of the result is within the noise bound of (a0 + a1*s)(b0 + b1*s), using the same Python-generated secret key and relinearization key as the relinearize test.

Separately, I'm interested in a larger end-to-end suite that checks measured noise against HEIR's noise models. I'll open an issue or bring it to office hours.

Code co-authored with Claude.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants