Compiler Actions¶
Compiler actions are exposed through circuit-facing API endpoints and executed inside the internal optimization engine.
Exposed actions¶
- validate payloads before optimization
- analyze circuit structure and metrics
- optimize using the canonical internal pass sequence
Public entrypoint:
POST /v1/circuits/optimize
Canonical internal flow¶
Current pass sequence:
normalizecanonicalizeflattento_u1qmerge_u1qsign_canoncancel_2q
Canonical internal 1Q IR: u1q.
Trust semantics¶
- candidate rewrites are verified before commit
- only verified candidates are committed
- original circuits are returned unchanged when verification is not established