Architecture

Component Overview

The following diagram shows the architecture of the backend:

Backend Component Overview

The backend is composed of the following main components:

Pipeline Flow

The following diagram illustrates the pipeline stages for processing a CompileRequest:

Compilation Pipeline

Upon receiving a CompileRequest, the backend transforms the input model into an internal graph and processes it through a five-stage pipeline: node enrichment, syntactic and semantic preprocessing, optional ancilla-optimized circuit optimization, output-input merging, and final AST normalization. The result is a complete, semantically valid OpenQASM 3 program.