Abstract
We study the quantum summation (QS) algorithm of Brassard, Hoyer, Mosca and Tapp, that approximates the arithmetic mean of a Boolean function defined on N elements. We improve error bounds presented in [1] in the worst-probabilistic setting, and present new error bounds in the average-probabilistic setting. In particular, in the worst-probabilistic setting, we prove that the error of the QS algorithm using queries is with probability , which improves the error bound of Brassard et al. We also present bounds with probabilities and show they are sharp for large and . In the average-probabilistic setting, we prove that the QS algorithm has error of order if is divisible by 4. This bound is optimal, as recently shown in [10]. For M not divisible by 4, the QS algorithm is far from being optimal if since its error is pro