HeTraits#

class HeTraits#

A set of flags characterizing the underlying HE scheme (for example, whether the scheme supports bootstrapping). Examples of the use:

1:
if he_context.get_traits().supports_bootstrapping():

print(‘the used context supports bootstrapping)

2:
if he_context.get_traits().supports_complex_numbers():

print(‘the used context supports complex numbers)

3:

# set the context supports complex numbers he_context.get_traits().supports_complex_numbers(true)

4:

# set the context supports bootstrapping he_context.get_traits().supports_bootstrapping(true)

property arithmetic_modulus#
property arithmetic_requires_default_scale#
property automatically_match_chain_indices_increase_PTile#
property automatically_match_chain_indices_reduce#
property defers_rescale#
property has_gpu_measures#
property is_debug_empty#
property is_modular_arithmetic#
property supports_bitwise_operations#
property supports_bootstrap_utils#
property supports_bootstrapping#
property supports_complex_numbers#
property supports_decrypt_added_noise#
property supports_explicit_chain_indices#
property supports_explicit_rescale#
property supports_get_size#
property supports_gpu#
property supports_handle_transparent_ciphertexts#
property supports_scaled_encoding#
property supports_sec_key_seed#