pub fn qubit_expectation_value(state: &PyState, target: usize) -> Float