pub fn compute_index(qubit_indices: &[QubitId], state_bits: &[u8]) -> usize
Compute the global index for a multi-qubit system
Given a list of qubit indices, compute the global index into the state vector.