Commit Graph

65 Commits

Author SHA1 Message Date
Umut
8ef84bed42 feat(frontend-python): add relu extension 2024-01-11 16:09:42 +01:00
rudy-6-4
cc14e7a4f9 docs(frontend-python): bit extract performance 2024-01-09 14:57:08 +01:00
rudy
8183d98605 feat(frontend-python): multi-parameters, Configuration, by-precision-and-norm2 strategy 2024-01-08 20:32:27 +01:00
Alexandre Péré
60da713312 feat(optimizer): adds support for function composition 2024-01-04 15:00:25 +01:00
Umut
b8db12ae53 feat(frontend-python): bit extraction 2023-12-26 14:31:23 +03:00
Umut
54d792c7bf feat(frontend-python): add truncate bit pattern extension 2023-12-05 14:20:54 +01:00
rudy
34ffd6f97a feat(compiler): new ops, reinterpret_precision and lsb 2023-12-04 10:20:06 +01:00
Vasily Sidorov
e3a5428d21 chore(frontend-python): typo in fhe_basics.md 2023-12-01 18:04:26 +01:00
Umut
743ecfb4de feat(frontend-python): support fully encrypted np.minimum and np.maximum 2023-11-16 14:04:54 +03:00
Alexandre Péré
e8ef48ffd8 feat(compiler): introduce concrete-protocol
This commit:
 + Adds support for a protocol which enables inter-op between concrete,
   tfhe-rs and potentially other contributors to the fhe ecosystem.
 + Gets rid of hand-made serialization in the compiler, and
   client/server libs.
 + Refactors client/server libs to allow more pre/post processing of
   circuit inputs/outputs.

The protocol is supported by a definition in the shape of a capnp file,
which defines different types of objects among which:
 + ProgramInfo object, which is a precise description of a set of fhe
   circuit coming from the same compilation (understand function type
   information), and the associated key set.
 + *Key objects, which represent secret/public keys used to
   encrypt/execute fhe circuits.
 + Value object, which represent values that can be transferred between
   client and server to support calls to fhe circuits.

The hand-rolled serialization that was previously used is completely
dropped in favor of capnp in the whole codebase.

The client/server libs, are refactored to introduce a modular design for
pre-post processing. Reading the ProgramInfo file associated with a
compilation, the client and server libs assemble a pipeline of
transformers (functions) for pre and post processing of values coming in
and out of a circuit. This design properly decouples various aspects of
the processing, and allows these capabilities to be safely extended.

In practice this commit includes the following:
 + Defines the specification in a concreteprotocol package
 + Integrate the compilation of this package as a compiler dependency
   via cmake
 + Modify the compiler to use the Encodings objects defined in the
   protocol
 + Modify the compiler to emit ProgramInfo files as compilation
   artifact, and gets rid of the bloated ClientParameters.
 + Introduces a new Common library containing the functionalities shared
   between the compiler and the client/server libs.
 + Introduces a functional pre-post processing pipeline to this common
   library
 + Modify the client/server libs to support loading ProgramInfo objects,
   and calling circuits using Value messages.
 + Drops support of JIT.
 + Drops support of C-api.
 + Drops support of Rust bindings.

Co-authored-by: Nikita Frolov <nf@mkmks.org>
2023-11-09 17:09:04 +01:00
Umut
088cca4b83 feat(frontend-python): create multivariate extension 2023-10-30 15:53:03 +01:00
aquint-zama
8595aad47f docs(frontend): fix broken links
and ignore those that cant be automatically checked (sadly)
2023-10-27 15:40:21 +02:00
Umut
82546cdf30 feat(frontend-python): add can store hint 2023-10-25 13:39:43 +02:00
aquint-zama
e5ed6f0db7 docs(frontend): add FHE workarounds 2023-10-23 09:39:33 +02:00
Umut
101a6da6ba docs(frontend-python): add statistics tutorial 2023-09-28 17:35:35 +02:00
Umut
f066678a41 docs(frontend-python): add compiler verbose and debug modes to how to debug 2023-09-28 17:35:35 +02:00
Benoit Chevallier-Mames
af63e900cf docs(frontend): adding a Game of Life example
closes #457
2023-09-26 12:48:38 +02:00
Umut
8b689a5894 feat(frontend-python): make bitwise operations multi precision 2023-09-19 15:28:08 +02:00
Umut
9af73a5fbe docs(frontend-python): update outdated warning in simulation docs 2023-09-18 10:45:07 +02:00
youben11
d16ce818e1 docs(compiler): build latest docs 2023-09-12 14:51:53 +01:00
Umut
f358a79018 docs(frontend-python): fix issues in comparisons tutorial 2023-09-07 10:17:59 +02:00
Umut
c9611c0289 feat(frontend-python): make comparisons multi precision 2023-09-06 11:51:03 +02:00
Umut
73f10e3b8e feat(frontend-python): create hint extension 2023-08-11 11:22:54 +02:00
Umut
1c24d8f6aa docs(frontend-python): update for multi precision and multi parameters by default 2023-08-08 11:01:29 +02:00
Umut
976ce6e481 docs(frontend-python): update simulation related configuration docs 2023-08-01 10:13:06 +02:00
youben11
bea973e895 feat(frontend): add options to enable verbose/debug mode of the compiler 2023-07-26 18:22:20 +01:00
Umut
79b38a72ec feat(compiler): provide circuit statistics 2023-07-26 11:08:15 +02:00
aquint-zama
900d25c952 docs(compiler): fix dialect links 2023-07-13 14:53:25 +02:00
aquint-zama
b0b74ee81f chore(compiler): doc edit 2023-07-13 14:33:54 +02:00
aquint-zama
654f0de81f chore(common): rearrange docs structure 2023-07-13 14:33:54 +02:00
aquint-zama
502fcfdbe6 chore(compiler): fix typos 2023-07-13 14:33:54 +02:00
Ben
96ae2df13e docs(common): documentation edits 2023-07-13 14:33:54 +02:00
rudy
9b24e8d974 docs(optimizer): add high level doc 2023-07-13 14:33:54 +02:00
Ben
f6dc891792 chore(tools): add documentation for security curves 2023-07-13 14:33:54 +02:00
aquint-zama
649c9ddce7 chore(common): update docs structure 2023-07-13 14:33:54 +02:00
Mayeul@Zama
18b9e0d246 docs(backend): add introduction 2023-07-13 14:33:54 +02:00
Mayeul@Zama
348403d25a docs(backend): add adding_new_backend.md 2023-07-13 14:33:54 +02:00
Bourgerie Quentin
8782a28694 docs(common): add project layout for developers 2023-07-13 14:33:54 +02:00
aquint-zama
25754a656a docs(common): add FHE dialects autogenerated docs 2023-07-13 14:33:54 +02:00
aquint-zama
88bee38643 chore(common): let Gitbook handle newlines 2023-07-13 14:33:54 +02:00
Umut
4e03632a11 docs(frontend-python): add bit width assignment and parameter selection sections 2023-07-13 14:33:54 +02:00
Umut
de8efe0a4c docs(frontend-python): add missing escape characters in how to configure section 2023-07-13 14:33:54 +02:00
youben11
2f8d877de8 docs(compiler): calling from other lang (rust) 2023-07-13 14:33:54 +02:00
youben11
d2e6cf28bc docs(compiler): update compilation docs 2023-07-13 14:33:54 +02:00
aquint-zama
69e6776f20 docs(common): add fhe introduction 2023-07-13 14:33:54 +02:00
Umut
8968f29052 docs(frontend-python): add progressbar section 2023-07-13 14:33:54 +02:00
Umut
c3f2b71833 docs(frontend-python): re-write rounding section 2023-07-13 14:33:54 +02:00
Umut
f1ae7a1233 docs(frontend-python): move sha256 tutorial to application tutorials 2023-07-13 14:33:54 +02:00
Umut
5e4cf34598 docs(frontend-python): move kvdb tutorial to application tutorials 2023-07-13 14:33:54 +02:00
Andi Drebes
efec081673 docs(compiler): Add documentation for FHE-related dialects 2023-07-13 14:33:54 +02:00