compute_index

Function compute_index 

Source
pub fn compute_index(qubit_indices: &[QubitId], state_bits: &[u8]) -> usize
Expand description

Compute the global index for a multi-qubit system

Given a list of qubit indices, compute the global index into the state vector.