Concrete
WebsiteLibrariesProducts & ServicesDevelopersSupport
2.2
2.2
  • What is Concrete?
  • Getting Started
    • Basics of FHE programs
    • Installation
    • Quick Start
    • Compatibility
    • Exactness
    • Performance
    • Terminology and Structure
  • Tutorials
    • Decorator
    • Progressbar
    • Formatting
    • Tagging
    • Extensions
    • Table Lookups
    • Rounding
    • Floating Points
    • Multi Precision
    • Multi Parameters
    • Simulation
    • Direct Circuits
  • Application Tutorials
    • Key Value Database
    • SHA-256
  • How To
    • Configure
    • Manage Keys
    • Deploy
    • Reuse Arguments
    • Debug
    • Call FHE circuits from other languages
  • Explanations
    • Frontend fusing
    • Compilation
      • Automatic Crypto Parameters choice
      • MLIR FHE Dialects
        • FHELinalg Dialect
        • FHE Dialect
        • TFHE Dialect
        • Concrete Dialect
        • Tracing Dialect
        • Runtime Dialect
        • SDFG Dialect
    • Security curves
  • Developer
    • Contribute
    • Project layout
    • Compiler backend
      • Adding a new backend
Powered by GitBook

Libraries

  • TFHE-rs
  • Concrete
  • Concrete ML
  • fhEVM

Developers

  • Blog
  • Documentation
  • Github
  • FHE resources

Company

  • About
  • Introduction to FHE
  • Media
  • Careers
On this page
  • Terminology
  • Module structure

Was this helpful?

Export as PDF
  1. Getting Started

Terminology and Structure

PreviousPerformanceNextDecorator

Last updated 1 year ago

Was this helpful?

Terminology

Some terms used throughout the project include:

  • computation graph: A data structure to represent a computation. This is basically a directed acyclic graph in which nodes are either inputs, constants, or operations on other nodes.

  • tracing: A technique that takes a Python function from the user and generates a corresponding computation graph.

  • bounds: Before computation graphs are converted to MLIR, we need to know which value should have which type (e.g., uint3 vs int5). We use inputsets for this purpose. We simulate the graph with the inputs in the inputset to remember the minimum and the maximum value for each node, which is what we call bounds, and use bounds to determine the appropriate type for each node.

  • circuit: The result of compilation. A circuit is made of the client and server components. It has methods for everything from printing to evaluation.

Module structure

In this section, we briefly discuss the module structure of Concrete Python. You are encouraged to check individual .py files to learn more.

  • concrete

    • fhe

      • dtypes: data type specifications (e.g., int4, uint5, float32)

      • values: value specifications (i.e., data type + shape + encryption status)

      • representation: representation of computation (e.g., computation graphs, nodes)

      • tracing: tracing of python functions

      • extensions: custom functionality (see )

      • mlir: computation graph to mlir conversion

      • compilation: configuration, compiler, artifacts, circuit, client/server, and anything else related to compilation

Extensions