fhelium.backend.ckks.crypto._tables
Numerical reconstruction tables consumed by CKKS decryption.
DecryptReconstructionTables
class View source
python
DecryptReconstructionTables(source_prime_ids_by_depth: tuple[tuple[int, ...], ...], normalizers_by_depth: tuple[torch.Tensor, ...], propagation_by_depth: tuple[torch.Tensor, ...], device: torch.device, half_digits_by_depth: tuple[torch.Tensor, ...])1
Hold device tables for centered reconstruction of the complete active Q basis.
Attributes
| Name | Type | Default/value |
|---|---|---|
source_prime_ids_by_depth | tuple[tuple[int, ...], ...] | |
normalizers_by_depth | tuple[torch.Tensor, ...] | |
propagation_by_depth | tuple[torch.Tensor, ...] | |
device | torch.device | |
half_digits_by_depth | tuple[torch.Tensor, ...] |
tensor_operands
method
python
def tensor_operands(context: RnsContext, depth: int) -> tuple[torch.Tensor, ...]: ...1
Return the Q parameters and mixed-radix reconstruction tables.
create
method
python
def create(context: RnsContext) -> DecryptReconstructionTables: ...1
Build reconstruction tables for one context-local RNS context.