pub fn grover_search( oracle: &dyn Fn(usize) -> bool, n_qubits: usize, iterations: usize, ) -> usize
Grover’s search algorithm. oracle: marks the target state (returns true for target). Returns the found state index.