make_chebyshev_basis
Engine.make_chebyshev_basis(ciphertext, max_power, relinearization_key)- Make a Chebyshev basis, which is \([T_1(x), T_2(x), \dots, T_{max\_power}(x)]\) for the given ciphertext \(x\), where \(T_n(x)\) is the \(n\)th Chebyshev polynomial.
- Input:
Ciphertext- max_power:
int. The maximum degree of the Chebyshev basis. RelinearizationKey
- Output:
- chebyshev_basis:
list[Ciphertext]
- chebyshev_basis:
Warning
- The matrix form does not yet support this operation.
from desilofhe import Engine
engine = Engine()
secret_key = engine.create_secret_key()
public_key = engine.create_public_key(secret_key)
relinearization_key = engine.create_relinearization_key(secret_key)
message = [1, 2, 3]
ciphertext = engine.encrypt(message, public_key)
chebyshev_basis = engine.make_chebyshev_basis(
ciphertext, max_power=3, relinearization_key=relinearization_key
)
Engine.make_chebyshev_basis(ciphertext, max_power, evaluation_key)- Make a Chebyshev basis, which is \([T_1(x), T_2(x), \dots, T_{max\_power}(x)]\) for the given ciphertext \(x\), where \(T_n(x)\) is the \(n\)th Chebyshev polynomial, using the relinearization key bundled in the evaluation key.
- Input:
Ciphertext- max_power:
int. The maximum degree of the Chebyshev basis. EvaluationKey
- Output:
- chebyshev_basis:
list[Ciphertext]
- chebyshev_basis:
Warning
- The matrix form does not yet support this operation.
from desilofhe import Engine
engine = Engine()
secret_key = engine.create_secret_key()
public_key = engine.create_public_key(secret_key)
evaluation_key = engine.create_evaluation_key(secret_key)
message = [1, 2, 3]
ciphertext = engine.encrypt(message, public_key)
chebyshev_basis = engine.make_chebyshev_basis(
ciphertext, max_power=3, evaluation_key=evaluation_key
)