Abstract In this work, we present our experiment’s results where we simulate the quantum amplitude amplification algorithm for a prediction problem. The problem is to calculate the total probability of a good class by an ensemble model. Theoretically, the quantum prediction will be quadratically faster than a classical prediction. We need to get outputs (probabilities of the good class) of all classifiers. After that, by summation the probabilities the ensemble model returns the total probability of the good class for an input object. Let us demonstrate how the quantum amplitude amplification algorithm allows us to estimate the total probability. In this experiment, we count an iterations number of quantum search running to estimate the total probability.
Abstract In this work, we present our experiment’s results where we simulate the quantum amplitude amplification algorithm for a prediction problem. The problem is to calculate the total probability of a good class by an ensemble model. Theoretically, the quantum prediction will be quadratically faster than a classical prediction. We need to get outputs (probabilities of the good class) of all classifiers. After that, by summation the probabilities the ensemble model returns the total probability of the good class for an input object. Let us demonstrate how the quantum amplitude amplification algorithm allows us to estimate the total probability. In this experiment, we count an iterations number of quantum search running to estimate the total probability.
In this work, we consider the performance of using a quantum algorithm to predict the result of a binary classification problem when a machine learning model is an ensemble of any simple classifiers. This approach is faster than classical prediction and uses quantum and classical computing, but it is based on a probabilistic algorithm. Let N be the number of classifiers from an ensemble model and O(T) be the running time of prediction of one classifier. In classical case, the final result is obtained by ”averaging” outcomes of all ensemble model’s classifiers. The running time in classical case is O (N · T). We propose an algorithm that works in O (√N · T ).
In this work, we conducted an experiment on a quantum simulator for tasks of binary classification by the random forest method, estimated the time the complexity of the classical and quantum versions of the algorithms, as well as memory complexity of the algorithm for the quantum version. Previously we received temporal acceleration of the algorithm for prediction by using quantum amplitude amplification algorithm, and now tested the algorithm proposed by us on our quantum simulator and analyzed the predictive results.
In Chs. 2 and 3 we described several quantum algorithms that are exponentially faster than classical algorithms for the same problem, under some measure of complexity. Unfortunately, the algorithms of Ch. 2 apply to rather contrived problems that do not have known direct applications. We now describe a quantum algorithm that gives only a polynomial—more specifically, quadratic—speedup with respect to classical algorithms, but it applies to a large class of problems and finds many useful applications, both directly and as an algorithmic design tool. The algorithm is known as Grover’s search [89], and its generalization is known as amplitude amplification [43]. Amplitude amplification is widely used as part of many quantum algorithms. It also serves as the basis for amplitude estimation, a way of estimating probabilities quadratically faster than with classical Monte Carlo, and for quantum minimum finding. All these topics are discussed in this chapter.
Consider a Boolean function χ:X→{0,1} that partitions set X between its good and bad elements, where x is good if χ(x)=1 and bad otherwise. Consider also a quantum algorithm A such that A∣0⟩=∑x∈Xαx∣x⟩ is a quantum superposition of the elements of X, and let a denote the probability that a good element is produced if A∣0⟩ is measured. If we repeat the process of running A, measuring the output, and using χ to check the validity of the result, we shall expect to repeat 1/a times on the average before a solution is found. *Amplitude amplification* is a process that allows to find a good x after an expected number of applications of A and its inverse which is proportional to 1/a, assuming algorithm A makes no measurements. This is a generalization of Grover's searching algorithm in which A was restricted to producing an equal superposition of all members of X and we had a promise that a single x existed such that χ(x)=1. Our algorithm works whether or not the value of a is known ahead of time. In case the value of a is known, we can find a good x after a number of applications of A and its inverse which is proportional to 1/a even in the worst case. We show that this quadratic speedup can also be obtained for a large family of search problems for which good classical heuristics exist. Finally, as our main result, we combine ideas from Grover's and Shor's quantum algorithms to perform amplitude estimation, a process that allows to estimate the value of a. We apply amplitude estimation to the problem of *approximate counting*, in which we wish to estimate the number of x∈X such that χ(x)=1. We obtain optimal quantum algorithms in a variety of settings.
Amplitude Amplification -- a key component of Grover's Search algorithm -- uses an iterative approach to systematically increase the probability of one or multiple target states. We present novel strategies to enhance the amplification procedure by partitioning the states into classes, whose probabilities are increased at different levels before or during amplification. The partitioning process is based on the binomial distribution. If the classes to which the search target states belong are known in advance, the number of iterations in the Amplitude Amplification algorithm can be drastically reduced compared to the standard version. In the more likely case in which the relevant classes are not known in advance, their selection can be configured at run time, or a random approach can be employed, similar to classical algorithms such as binary search. In particular, we apply this method in the context of our previously introduced Quantum Dictionary pattern, where keys and values are encoded in two separate registers, and the value-encoding method is independent of the type of superposition used in the key register. We consider this type of structure to be the natural setup for search. We confirm the validity of our new approach through experimental results obtained on real quantum hardware, the Honeywell System Model H0 trapped-ion quantum computer.
This chapter covers the quantum algorithmic primitives of amplitude amplification and amplitude estimation. Amplitude amplification is a generalization of Grover’s quantum algorithm for the unstructured search problem. Amplitude estimation can be understood in a similar framework, where it utilizes quantum phase estimation to estimate the value of the amplitude or probability associated with a quantum state. Both amplitude amplification and amplitude estimation provide a quadratic speedup over their classical counterparts, and feature prominently as an ingredient in many end-to-end algorithms.