Skip to main content

greedy_partition

Function greedy_partition 

Source
pub fn greedy_partition(
    n_qubits: usize,
    j: &[((usize, usize), f64)],
    max_partition_size: usize,
) -> Vec<Vec<usize>>
Expand description

Greedy graph partitioning for problem decomposition.

Returns list of partitions, each a Vec of qubit indices.