Commit Graph

34 Commits

Author SHA1 Message Date
Umut
037600112d feat(frontend-python): drawing 2024-01-23 11:42:26 +03:00
Umut
b4ed398549 fix(frontend-python): reduce the failure rate of setting keys test 2024-01-12 16:25:51 +03:00
rudy
8183d98605 feat(frontend-python): multi-parameters, Configuration, by-precision-and-norm2 strategy 2024-01-08 20:32:27 +01:00
Umut
ee5be3af43 feat(frontend-python): keys are generated property 2023-12-29 10:19:06 +03:00
Umut
1edd341fb0 feat(frontend-python): printing assignment 2023-12-29 10:19:06 +03:00
Bourgerie Quentin
c67fac4082 feat(compiler): Introduce input compression and use tfhe-rs as backend
- added --compress-input compiler option which forces the use of seeded
  bootstrap keys and keyswitch keys
- replaced the concrete-cpu FHE implementation with tfhe-rs

Co-authored-by: Nikita Frolov <nf@mkmks.org>
2023-12-22 15:51:02 +01:00
Umut
743ecfb4de feat(frontend-python): support fully encrypted np.minimum and np.maximum 2023-11-16 14:04:54 +03:00
Bourgerie Quentin
d224f3e3bf feat(frontend-python): Enable multi output programs 2023-11-13 09:22:54 +01:00
Umut
d4cc79f10d test(frontend-python): add tests of assigning circuit.keys 2023-11-10 14:35:17 +01: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
Umut
8b689a5894 feat(frontend-python): make bitwise operations multi precision 2023-09-19 15:28:08 +02:00
Umut
c9611c0289 feat(frontend-python): make comparisons multi precision 2023-09-06 11:51:03 +02:00
Umut
1841836a39 fix(frontend-python): parse parameter selection strategy if it's string in the constructor 2023-09-06 11:51:03 +02:00
Umut
cce0cd882f feat(frontend-python): implement len for tracers
This makes fhe.array extension work with tensors as well!
2023-08-03 10:10:29 +02:00
Bourgerie Quentin
894ed9ec9f test(frontend-python): Remove the high p_error in graph evaluation tests 2023-08-02 15:07:21 +02:00
Umut
ade83d5335 feat(compiler): add more detailed statistics 2023-08-01 18:40:08 +02:00
Umut
79b38a72ec feat(compiler): provide circuit statistics 2023-07-26 11:08:15 +02:00
Umut
e49c16873c refactor(frontend-python): use @fhe.compiler instead of importing it and doing @compiler 2023-07-26 11:08:15 +02:00
Umut
8031f8b59e feat(frontend-python): allow single element tuple inputsets for single argument functions 2023-07-07 14:34:57 +02:00
Umut
ee5fc138ab feat(frontend-python): lazily enable simulation and execution when needed 2023-06-30 16:08:28 +02:00
youben11
9f54184375 feat(frontend): simulate execution using the compiler 2023-06-27 14:21:42 +01:00
Umut
b0f83ebe97 refactor(frontend-python): rename Data to Value 2023-06-09 17:41:41 +02:00
Umut
c8cc8a811d feat(frontend-python): separate arguments 2023-06-09 13:01:27 +02:00
rudy
07d97f266d feat(frontend-python): display progress during fhe execution 2023-05-26 15:56:23 +02:00
rudy
417e729c00 fix(frontend-python): explicit multi outputs circuit error 2023-05-10 16:00:54 +02:00
Umut
da4fedaabf test(frontend-python): increase tolerance of p_error simulation tests 2023-05-09 17:22:11 +02:00
Umut
41bf801ce1 feat(frontend-python): introduce parameter selection strategy configuration 2023-04-21 17:38:05 +02:00
Umut
307d6997e9 chore(frontend-python): use rounding in some flanky tests around floats 2023-04-12 07:55:33 +02:00
Umut
02e655748f test(frontend-python): add crt deployment test 2023-04-12 07:55:33 +02:00
Umut
673b02473f feat(frontend/python): explicit key management 2023-04-11 14:55:57 +02:00
Umut
d9313f350a test(frontend/python): use dataflow marker in appropriate tests 2023-03-27 16:21:33 +02:00
Umut
4e7cbac264 refactor: concrete-numpy to concrete-python 2023-03-17 13:29:21 +01:00
Quentin Bourgerie
ce7eddc22d chore: Move to the mono repo layout 2023-03-08 11:23:21 +01:00