pub fn apply_triangular_simplifier_gadgets(
grid: &mut MappingGrid,
nrepeat: usize,
) -> Vec<TriangularTapeEntry>Expand description
Apply simplifier gadgets to the triangular grid.
This matches Julia’s apply_simplifier_gadgets! for TriangularWeighted mode.
The weighted DanglingLeg pattern matches 3 nodes in a line where:
- The end node (closest to center) has weight 1
- The other two nodes have weight 2 After simplification, only 1 node remains with weight 1.