pub fn apply_weighted_simplifier_gadgets(
grid: &mut MappingGrid,
nrepeat: usize,
) -> Vec<KsgTapeEntry>Expand description
Apply weighted simplifier gadgets (KsgDanglingLeg variants with weight checking). For weighted mode, KsgDanglingLeg requires the center node to have weight 1. Julia’s WeightedGadget{DanglingLeg}: source_centers = [(2,2)] means node at (2,2) has weight 1.