create_hadamard_multiplication_key
GLEngine.create_hadamard_multiplication_key(secret_key, level)
- Creates a Hadamard multiplication key, which is used for Hadamard multiplication. Requires a secret key.
- Input
- GLSecretKey
- level: optional
- Creates the key with a reduced size to contain only the specified multiplication levels.
- Output
- GLHadamardMultiplicationKey
from desilofhe import GLEngine
engine = GLEngine()
secret_key = engine.create_secret_key()
hadamard_multiplication_key = engine.create_hadamard_multiplication_key(
secret_key
)
level_3_hadamard_multiplication_key = engine.create_hadamard_multiplication_key(
secret_key, level=3
)