neuralqx.experimental.operators.symbolic.compiler.defaults module

Default pipeline and registry factories for the symbolic compiler.

default_symbolic_pass_pipeline()

Builds the default two-stage symbolic compiler pass pipeline.

Pre-cache passes (run on every compile() call):
  1. SymbolicValidationPass - validates IR symbol scopes and update-op parameters.

  2. SymbolicNormalizationPass - computes the IR fingerprint and resolves the target backend.

Post-cache passes (run only on cache misses):
  1. SymbolicFanoutAnalysisPass - derives per-term fanout bounds and the total padded output size.

  2. SymbolicFusionPass - groups terms into fusion-compatible clusters for the lowerer.

Return type:

SymbolicPassPipeline

Returns:

Configured SymbolicPassPipeline.

default_symbolic_lowerer_registry()

Builds the default symbolic lowerer registry.

Currently registers only the JAX backend lowerer (JAXSymbolicLowerer).

Return type:

SymbolicLowererRegistry

Returns:

Configured SymbolicLowererRegistry.

default_symbolic_artifact_store()

Returns the module-level shared in-memory artifact store.

The store is lazily created and reused across compiler instances in the same process. Call InMemorySymbolicArtifactStore.clear() to evict all compiled artifacts if needed.

Return type:

InMemorySymbolicArtifactStore

Returns:

Shared InMemorySymbolicArtifactStore.