Custom bootstrapping profiles
Registered profiles cover common cases. For special depth, precision or performance targets, pass a complete JSON profile.
yuenix_plan_create_custom(ctx, json, json_size, rotations, n_rot, &plan);plan = ctx.plan(profile=json.load(open("my_profile.json")))Starting point
Section titled “Starting point”Copy a file from share/yuenix/profiles and edit it. The main fields:
| Field | Meaning |
|---|---|
word_bits |
32 or 64-bit modulus words |
boot_order |
raise_first (default) or the alternate order |
evalmod_domain |
domain of the modular-reduction polynomial (default standard) |
| bases and scales | the ordered physical prime chain and the scale at each level |
full_slot_fft |
coefficient-to-slot and slot-to-coefficient factorization and baby steps |
evalmod_schedule |
the polynomial evaluation sequence for modular reduction |
output_level |
optional check of the calculated exit level |
Call yuenix_plan_query afterwards to read the input and output levels the profile actually gives.
Checks
Section titled “Checks”When the plan is created, YUENIX checks that the profile is internally consistent: chain length, scales and polynomial supports. Security is not checked automatically. Screen custom parameters with the lattice estimator before using them with real data (see Plans and profiles).