Skip to content

bloqade.lanes.visualize.entropy_tree.tracer.build_entropy_trace

← Module overview

functionbuild_entropy_tracesource

bloqade.lanes.visualize.entropy_tree.tracer.build_entropy_trace

Signature
def build_entropy_trace(*, kernel: Any, kernel_name: str, layer_index: int = 0, max_expansions: int | None = 1000, max_goal_candidates: int | None = None) -> EntropyTraceBundle

Run the compilation pipeline and capture an entropy trace for layer_index.

Drives the full squin->move pipeline with a RustPlacementTraversal configured to collect an entropy trace. Returns all the state the visualizer needs to render the trace.

Parameters

NameTypeDefaultDescription
kernelAnyrequired
kernel_namestrrequired
layer_indexint0
max_expansionsint | None1000
max_goal_candidatesint | NoneNone

Returns

EntropyTraceBundle

source