fhelium.experimental.bootstrap.presets.cosine
Preconfigured full-slot callables using cosine double-angle reduction.
Each function returns an engine-bound fhelium.experimental.bootstrap.FullSlotBootstrap. The functions are conveniences rather than registered runtime objects; callers may inspect, replace, or directly construct every component.
The versioned logn16 names identify the measured component profile. Its documented end-to-end configuration is derived from Preset.slots32768_scale50_levels27_int64 with base_prime_bits=50 and uses galois_generator=5. Construction itself validates transform slot counts, structural-base/default-scale proximity, and depth, but does not certify the encrypted input range or an application error budget.
cosine_depth_refresh_logn16_8_28_v1
function View source
def cosine_depth_refresh_logn16_8_28_v1(engine: CkksEngine) -> FullSlotBootstrap: ...Construct the versioned 8/28 cosine full-slot callable.
The transform design matches cosine_depth_refresh_logn16_v1. Its modular-reduction component uses a degree-28 Chebyshev seed followed by eight double-angle iterations, fused normalization, and raw input bound
Parameters
engine: Engine supplying slot count and Galois convention.
Returns
An engine-bound full-slot callable ready for evaluation.
cosine_depth_refresh_logn16_v1
function View source
def cosine_depth_refresh_logn16_v1(engine: CkksEngine) -> FullSlotBootstrap: ...Construct the versioned 7/44 cosine full-slot callable.
The composition uses two collapsed radix-2 stages in each transform, BSGS baby step 16, a degree-44 Chebyshev cosine seed, seven double-angle iterations, and raw periodic-reduction input bound
The validated deployment configuration is derived from Preset.slots32768_scale50_levels27_int64 with base_prime_bits=50 and is bound to an engine using galois_generator=5. It accepts a final-public-level full-slot input near the default scale whose raw real and imaginary branch coordinates are within FullSlotBootstrap's structural and depth validation. Applications must test their own error distribution and range. Online execution requires the rotation, relinearization, and conjugation keys reported by the returned callable.
Parameters
engine: Engine supplying slot count and Galois convention.
Returns
An engine-bound full-slot callable ready for evaluation.