apply_weighted_gadget

Function apply_weighted_gadget 

Source
pub fn apply_weighted_gadget<P: Pattern>(
    pattern: &P,
    grid: &mut MappingGrid,
    i: usize,
    j: usize,
)
Expand description

Apply a weighted gadget pattern at position (i, j) with proper weights. Uses mapped_graph locations and mapped_weights for each node.