hetorch.compiler.context
Compilation context for HETorch
Classes
CompilationContext(scheme: <enum 'HEScheme'>, params: <class 'hetorch.core.parameters.EncryptionParameters'>, backend: HEBackend, metadata: typing.Dict[str, typing.Any])
Global compilation state shared across all passes
Attributes: scheme: HE scheme (CKKS, BFV, BGV, etc.) params: Encryption parameters (poly_modulus_degree, coeff_modulus, scale, etc.) backend: Backend implementation providing HE operations metadata: Additional context-specific metadata
Methods:
__init__(self, scheme: hetorch.core.scheme.HEScheme, params: hetorch.core.parameters.EncryptionParameters, backend: 'HEBackend', metadata: Dict[str, Any] = \<factory\>) -\> None
Initialize self. See help(type(self)) for accurate signature.
copy(self) -\> 'CompilationContext'
Create a copy of this context
with_metadata(self, **kwargs) -\> 'CompilationContext'
Create a copy with updated metadata