pub fn build_register(
adjacency: &[Vec<(usize, f64)>],
constraints: RegisterConstraints,
) -> Result<Vec<(String, [f64; 2])>, QuantumError>Expand description
Build a named 2D register from a graph adjacency list.
Uses LayoutMethod::Spectral by default. See
build_register_with to pick the algorithm explicitly.
adjacency[i] is the list of (neighbor_index, weight) pairs for node i.
Returned positions are in micrometers, scaled to fit within the constraints.
The layout is deterministic for a given adjacency input.