I wonder if it is possible to calculate (or estimates) variance among the quantum states under superposition, with respect to their values in the computational basis.
For example, a simple 2-qubit system with the Hadamard operators applied to both of them will create $|00\rangle, |01\rangle, |10\rangle,$ and $|11\rangle$ with an equal probability amplitude. The integer representation of these states are, respectively, $0$, $1$, $2$, and $3$. Using the equation $s^2=\sum_{i=1}^{n}(x_i-\mu)^2/(n-1)$, their sample variance is $1.666667$.
Can we find this by using a quantum algorithm, perhaps more efficiently than classically calculating it?