[][src]Function qip::state_ops::full_to_sub

pub fn full_to_sub(n: u64, mat_indices: &[u64], full_index: u64) -> u64

Get the index for a submatrix indexed by indices given the full_index for the larger 2^n by 2^n matrix.