trace_centers

Function trace_centers 

Source
pub fn trace_centers(result: &MappingResult) -> Vec<(usize, usize)>
Expand description

Trace center locations through gadget transformations.

Returns the final center location for each original vertex after all gadget transformations have been applied.

This matches Julia’s trace_centers function which:

  1. Gets initial center locations with (0, 1) offset
  2. Applies move_center for each gadget in the tape

§Arguments

  • result - The mapping result from map_weighted

§Returns

A vector of (row, col) positions for each original vertex.