Commit Graph

154 Commits

Author SHA1 Message Date
Yuxi Zhao
4b29b386d8 docs(frontend): fix broken links 2024-04-03 10:27:45 +02:00
yuxizama
6a8a5f73b9 docs(frontend): delete unused images 2024-04-03 10:27:45 +02:00
yuxizama
a3a35cf670 docs(frontend): delete unused images 2024-04-03 10:27:45 +02:00
yuxizama
d2e3107964 docs(frontend): delete unused images 2024-04-03 10:27:45 +02:00
yuxizama
feb24b7447 docs(frontend): delete unused images 2024-04-03 10:27:45 +02:00
yuxizama
54650d36c4 docs(frontend): delete unused images 2024-04-03 10:27:45 +02:00
yuxizama
b6a576a21c docs(frontend): delete unused images 2024-04-03 10:27:45 +02:00
yuxizama
01e08c8ba7 docs(frontend): adjust font size 2024-04-03 10:27:45 +02:00
yuxizama
55abc61dbd docs(frontend): adjust font size 2024-04-03 10:27:45 +02:00
Yuxi Zhao
0a886c6382 docs(frontend): fix broken links 2024-04-03 10:27:45 +02:00
yuxizama
91e78a32de docs(frontend): fix a typo 2024-04-03 10:27:45 +02:00
Yuxi Zhao
92981dc1b5 docs(frontend): change page options 2024-04-03 10:27:45 +02:00
yuxizama
700581dd0b docs(frontend): adjust wording 2024-04-03 10:27:45 +02:00
yuxizama
0862cb29b1 docs(frontend): adjust designs 2024-04-03 10:27:45 +02:00
yuxizama
ce241a3d2a docs(frontend): adjust line spacing 2024-04-03 10:27:45 +02:00
yuxizama
24258eb5ba docs(frontend): add the developer survey 2024-04-03 10:27:45 +02:00
yuxizama
e85d65fa25 docs(frontend): upload new designs 2024-04-03 10:27:45 +02:00
Umut
d13b283f98 feat(frontend-python): disable and print tlu fusing 2024-03-19 09:39:06 +01:00
Yuxi Zhao
7f506c0c45 docs(frontend): fix designs 2024-03-18 10:50:58 +00:00
Umut
7eefc6c053 feat(frontend-python): tlu on original bit width 2024-03-15 12:39:57 +03:00
Benoit Chevallier-Mames
0ffbc13746 docs(compiler): fixing a bar char in the doc 2024-03-13 18:35:29 +01:00
Benoit Chevallier-Mames
c2f47cb103 docs(compiler): update the doc 2024-03-13 17:10:30 +01:00
Benoit Chevallier-Mames
e37a840e7e docs(compiler): adding API doc 2024-03-13 17:10:00 +01:00
Bourgerie Quentin
11f1935119 fix(ci): Update path of auto-generated dialect documentation 2024-03-12 16:43:13 +01:00
Benoit Chevallier-Mames
c7fe6c83d2 docs(frontend): be clearer on docker use and its current limit for Apple silicon 2024-03-12 16:33:09 +01:00
Yuxi Zhao
a0195cf315 docs(frontend): update new structure and landing page 2024-03-11 18:55:50 +01:00
Umut
aad659f160 feat(frontend-python): random inputset generator 2024-03-11 09:05:27 +01:00
Andi Drebes
8e660e2f75 feat(compiler): Add dialect with operations related to the optimizer
This adds a new dialect called `Optimizer` with operations related to
the Concrete Optimizer. Currently, there is only one operation
`optimizer.partition_frontier` that can be inserted between a producer
and a consumer which belong to different partitions computed by the
optimizer. The purpose of this operation is to preserve explicit key
changes from the invocation of the optimizer on high-level dialects
(i.e., FHELinalg / FHE) until the IR is provided with actual
references to keys in low-level dialects (i.e., TFHE).
2024-03-06 14:50:27 +01:00
Benoit Chevallier-Mames
089b5e8d6c docs(compiler): reorganize the doc 2024-03-04 17:48:16 +01:00
Benoit Chevallier-Mames
68cada3963 docs(frontend): add a tutorial about XOR distance 2024-03-04 16:14:14 +01:00
rudy
05bd8cc5f2 feat(frontend-python): approximate mode for round_bit_pattern 2024-03-01 16:04:11 +01:00
Umut
565e6f2796 feat(frontend-python): identity extension 2024-02-20 12:37:48 +01:00
Andi Drebes
e78883cc24 feat(compiler): Add a dialect for type inference debugging
The `TypeInference` dialect provides three operations.

The operation `TypeInference.propagate_downwards` respresents a type
barrier, which is supposed to forward the type of its operand as its
result type during type inference.

The operation `TypeInference.propagate_upwards` also respresents a
type barrier, but is supposed to forward the type of its result as the
type for its operand during type inference.

The operation `TypeInference.unresolved_conflict` can be used as a
marker when two different types have beed inferred for a value (e.g.,
one type during forward dataflow analysis and the other during
backward dataflow analysis)
2024-02-01 16:18:45 +01:00
Andi Drebes
8b1c6ab034 fix(compiler): Fix typos in the summaries of batched TFHE ops 2024-02-01 16:18:45 +01:00
Umut
000ca60062 feat(frontend-python): if then else extension 2024-02-01 12:18:52 +02:00
Alexandre Péré
166a3217ad docs(frontend): add doc for weak composition 2024-01-25 17:21:54 +01:00
Umut
037600112d feat(frontend-python): drawing 2024-01-23 11:42:26 +03:00
Ben
75132edf37 docs(frontend): include docs changes from #593 2024-01-19 12:06:32 +03:00
Ben
749096dda9 docs(frontend): v2.5 diff language 2024-01-19 12:06:32 +03:00
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