This is the support library (Graph, IR, Scheduler) optimized for performance in Rust.
Prepare Environment
sudo apt install patchelf # or sudo dnf install patchelf
conda create -n pytfhe python=3.9.13 # 3.12 is also supported
conda activate pytfhe
pip install maturinBuild and Install clone this repo
cd pyTFHE-rs
cd ..
# under tnfs directory
cargo build --release
# Install maturin
uv tool install maturin
# Install binding, make sure conda env is activated
maturin developimport tnfs
print(tnfs.py_greedy_scheduler)