pub fn qubit_expectation_value(state: &State, target: usize) -> Float
Compute the expectation value of a qubit measurement.