Skip to content
YUENIX-FHEContact
Preview documentation. The YUENIX-FHE 1.0 API is in development and names or signatures may change before release. Request an evaluation

CKKS in YUENIX

CKKS encrypts a vector of complex numbers, called slots, into one ciphertext. Operations act on all slots at once.

With ring dimension N, a ciphertext holds up to N/2 complex slots. The bootstrapping profiles in YUENIX use N = 2^16, which gives 32,768 slots. Inputs shorter than the slot count are padded. Real inputs use the real part of each slot.

Every multiplication consumes one level. A fresh ciphertext starts at the plan’s input level. When a ciphertext reaches the lowest usable level, bootstrapping raises it again. yuenix_plan_query reports input_level and output_level, the level a bootstrap returns.

CKKS stores each value multiplied by a scale factor and rounds it to an integer, so every result carries a small error. The error grows with multiplications and bootstrapping. Each profile documents the precision measured for its circuits. For example, the F16 bootstrapping profile delivers about 19 bits.

Treat decrypted results as approximations. Compare them against a tolerance rather than testing for equality.

Operation Effect Levels used
add, sub slot-wise sum or difference 0
add_scalar, mul_scalar slot-wise operation with a public constant 0 or 1
mul slot-wise product, then relinearize and rescale 1
rotate(k) cyclic shift of slots by k (needs a rotation key for k) 0
conjugate complex conjugate of every slot 0
bootstrap refresh to the profile’s output level profile-defined