hetorch.core.ciphertext
Ciphertext metadata and information
Classes
CiphertextInfo(shape: typing.Tuple[int, ...], dtype: <class 'torch.dtype'>, level: <class 'int'>, scale: typing.Optional[float], packing: typing.Optional[hetorch.core.packing.PackingInfo], noise_budget: typing.Optional[float])
Metadata describing an encrypted tensor
Attributes: shape: Tensor shape dtype: Data type level: Remaining multiplication depth (CKKS/BFV) scale: Current scale (CKKS) packing: Packing strategy metadata noise_budget: Estimated noise level (optional)
Methods:
__init__(self, shape: Tuple[int, ...], dtype: torch.dtype, level: int, scale: Optional[float] = None, packing: Optional[hetorch.core.packing.PackingInfo] = None, noise_budget: Optional[float] = None) -\> None
Initialize self. See help(type(self)) for accurate signature.
copy(self) -\> 'CiphertextInfo'
Create a copy of this ciphertext info
with_level(self, level: int) -\> 'CiphertextInfo'
Create a copy with updated level
with_noise_budget(self, noise_budget: float) -\> 'CiphertextInfo'
Create a copy with updated noise budget
with_scale(self, scale: float) -\> 'CiphertextInfo'
Create a copy with updated scale