Quantum measurements of sums