Quantum Approximate -Minimum Finding
Abstract
Quantum -minimum finding is a fundamental subroutine with numerous applications in combinatorial problems and machine learning. Previous approaches typically assume oracle access to exact function values, making it challenging to integrate this subroutine with other quantum algorithms. In this paper, we propose an (almost) optimal quantum -minimum finding algorithm that works with approximate values for all , extending a result of van Apeldoorn, Gilyén, Gribling, and de Wolf (FOCS 2017) for . As practical applications, we present efficient quantum algorithms for identifying the smallest expectation values among multiple observables and for determining the lowest ground state energies of a Hamiltonian with a known eigenbasis.
Keywords and phrases:
Quantum Computing, Quantum Algorithms, Quantum Minimum FindingFunding:
Zhengfeng Ji: ZJ was supported by National Natural Science Foundation of China (Grant No. 12347104 and No. 61832015), Beijing Natural Science Foundation (Grant No. Z220002), and a startup funding from Tsinghua University.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Quantum query complexity ; Theory of computation Design and analysis of algorithmsAcknowledgements:
The authors thank Mingsheng Ying and François Le Gall for helpful suggestions and discussions. Minbo Gao would like to thank François Le Gall for supporting his visit to Nagoya University where part of the work was completed.Funding:
MG and ZJ were supported by National Key Research and Development Program of China (Grant No. 2023YFA1009403).Editors:
Anne Benoit, Haim Kaplan, Sebastian Wild, and Grzegorz HermanSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Quantum minimum finding was initially proposed in [14], with a direct but clever use of Grover search [19]. They showed that given quantum query access to unordered elements (with exact values), one can find the smallest one with an optimal quantum query complexity , which quadratically outperforms any classical algorithms. As a generalization, quantum -minimum finding was later developed in [13], which finds the smallest elements from elements with an optimal quantum query complexity . Quantum -minimum finding for exact values turns out to have various applications in different fields, e.g., minimum spanning tree and strong connectivity in graph theory [13], clustering [3, 27] and -nearest neighbor [43] in machine learning (see also [37, 7]), and pattern matching [34] and other string problems [42, 4, 24] in stringology.
The traditional quantum (-)minimum finding works when the elements are comparable by their exact values. However, it does not apply to the numerical case, where the values of the elements can be computed by (stochastic) numerical methods. Notably, this case often appears in practice, especially when the values of the elements are estimated by quantum subroutines such as quantum phase estimation [25, 31] and amplitude estimation [9]. A typical example is the quantum SDP (semi-definite program) solver proposed in [40, 8, 39], where the ground energy of a Hamiltonian is found by a quantum minimum finding over approximate quantum phases. To facilitate the discussion of the numerical scenarios and the composability of quantum -minimum finding, we introduce an abstract type of quantum oracle for numerical inputs, called approximate oracle. In an approximate oracle, each query returns a superposition of approximate values of the queried element to high precision and with high success probability (see Definition 5 for the formal definition). This is a very general definition which meets the requirement for all known situations where quantum -minimum finding is used as a subroutine. A key question is then
How to solve quantum -minimum finding problem with an approximate oracle?
This question is not only of theoretical interest, but also holds significant practical value. The solution turns out to be more subtle as one may initially expect. To address this problem clearly, we propose two (weak and strong) definitions of approximate minimum index sets as characterizations of the required output in -minimum finding algorithms, naturally generalizing the requirement of the approximate minimum finding problem. We give almost optimal quantum algorithms for computing these sets with queries to the approximate oracle. Finally, we showcase two applications of our algorithms: identifying the smallest expectation values and determining the lowest ground state energies of a Hamiltonian.
1.1 Approximate Oracles and Approximate Minimum Index Sets
Before presenting our main results, we define the concept of approximate oracle, explain why the standard algorithm for quantum -minimum finding fail in this case, and define the concept of approximate minimum index set as an appropriate output.
1.1.1 Approximate Oracles
In the standard setting of quantum (-)minimum finding (see [14, 13]), an exact oracle for the input data is assumed, which always returns the exact function value for each query. The assumption of an exact oracle is reasonable in the case where the input data is previously known or is produced by deterministic algorithms. However, it fails to describe the situation where the input data is generated by randomized or quantum numerical algorithms.
Generally speaking, for a randomized numerical algorithm that estimates a real number , its output is a random variable , such that the distance between and is no more than with probability at least . We will call the precision parameter and the error parameter from now on. If the values are estimated using quantum algorithms, a general situation is that the estimated values are stored in a quantum state in superposition. Hence, it is natural to consider the following definition of approximate oracles. An -approximate oracle for the input ’s is a quantum unitary operator that with probability at least , outputs a quantum state which is a superposition of estimated values for within distance upon querying . The formal definition of approximate oracle can be found in Definition 5. This input model works well with two widely-used quantum procedures for quantum numerical computations, namely phase estimation and amplitude estimation.
There are other input unitary oracle models, such as the bounded-error oracle [21, 42], and untrustworthy oracle [32]. We summarize their properties in the following table, with a detailed discussion in Section 3.1.
1.1.2 Approximate Minimum Index Set
When discussing the -minimum finding problem, it is important to define what conditions of the output, which we call the approximate minimum index set, need to satisfy. For reason to be clear later, we will consider both the weak and strong approximate minimum index sets.
As a warm-up, let us consider what we can learn from the randomized numerical algorithms. Suppose that there are elements , and for each , a random result is generated by a randomized numerical algorithm, that is -close to the actual value with probability at least . With this as the input oracle, it may be impossible for us to find out the smallest elements in extreme cases, for example, when all elements are -close to each other. As a compromise, we seek an approximate solution instead.
For the minimum finding problem, the authors of [40] implicitly gave a characterization of the approximate minimum index, namely an index whose value is -close to the true minimum value. This characterization, however, could be interpreted and generalized in various different ways when -minimum finding is considered.
Weak Approximate Minimum Index Set.
One way to understand the approximate minimum index is that the solution we find are entry-wise -close to the ideal solution. Generalizing this idea to the -minimum case, we propose the definition of the weak approximate minimum index set, which requires the approximate solution to be entry-wise -close to the minima (see Definition 11 for a formal definition).
Strong Approximate Minimum Index Set.
The other way to interpret the approximate minimum is to regard it as an -approximate version of a global condition. To be more precise, the minimum has the property that it is no more than all other elements; and the approximate minimum index requires this condition to hold within at most -error. Generalizing this idea to the -minimum case, we propose the definition of the strong approximate minimum index set, which requires the approximate solution to be bounded by the other values whose indices are not in the set within at most -error (see Definition 13 for a formal definition).
Relationships between the two definitions.
To the best of our knowledge, neither of the above definitions has been proposed for , and their relationships are not well understood before. Although the above definitions are equivalent for , this equivalence does not hold for larger anymore. In the paper, we show that a strong approximate minimum index set must be a weak one, but not vice versa (see Section 4 for more details). We also note that, in certain scenarios, a strong -approximate minimum index set is needed and a weak one does not suffice (see Remark 2 for more details).
1.2 Main Results
Given an approximate oracle as an input, we design almost optimal quantum algorithms for -minimum finding, based on the concepts of weak and strong approximate minimum index sets.
Theorem 1 (Quantum Approximate -minimum Finding, informal version of Theorem 17 and Theorem 18).
Suppose is an -approximate oracle for a vector , where is sufficiently small, and suppose is the desired number of minimal indices.
-
Weak Approximate Minimum Index Set Finding: There is a quantum algorithm that, with high probability, outputs a weak -approximate minimum index set for , using queries to .
-
Strong Approximate Minimum Index Set Finding: There is a quantum algorithm that, with high probability, outputs a strong -approximate minimum index set for , using queries to .
Actually, a weak approximate minimum index set is not necessarily a strong one (see Example 15). This is because the weak approximate minimum index set focuses on entry-wise approximation while the strong one considers the global property that small values should not be ignored. The need of strong approximate minimum index sets exists in quantum machine learning. For example, in [15], a strong approximate minimum index set is required; in case the approximate minimum index set is weak, their key intermediate conclusion [15, Proposition D.12] no longer holds. Due to the well-known bound of quantum -minimum finding [13], and the exact oracle being a special case of the approximate oracle, our algorithms for approximate -minimum finding achieves almost optimal query complexity for this problem.
The assumption that needs to be sufficiently small is not critical in applications. In fact, by applying the median trick to the approximate oracle, similar to techniques used in phase estimation and amplitude estimation [30], the failure probability could be reduced with an extra logarithmic overhead if it is smaller than .
1.3 Techniques
The algorithm for finding a weak minimum index set serves as the basis of the algorithm for finding a strong index set, although the techniques used in designing these algorithms are quite different. We now present the techniques for both algorithms separately.
To design a quantum algorithm for finding the weak approximate minimum index set, we first observe an important property of the weak approximate minimum index set which we call error-tolerant incrementability (Proposition 12). This property allows us to add an “approximately” smallest entry to a weak -approximate minimum index set and form a weak -approximate minimum index set. It serves as the key property in demonstrating weak approximate minimum index set finding (see the full version, specially [16, Theorem A.1]), and enables us to solve the weak -minimum finding problem by repeatedly applying the quantum approximate minimum finding with an approximate oracle [40, 11]. We can therefore mimic the way how the quantum -minimum finding [13] can be solved using original quantum minimum finding [14]. To be more concrete, our algorithm (Algorithm 1) works as follows: in the -th iteration of the runs, the algorithm finds an element not selected yet with value (approximately) no greater than the -th element. While this approach may seem adaptable to more general cases, it turns out that it can only return a weak approximate minimum index set, since strong approximate minimum index sets do not exhibit the error-tolerant incrementability property.
Nevertheless, we still manage to design a quantum algorithm for finding a strong approximate minimum index set with several additional new ideas. The key insight is that the algorithm for finding a weak approximate minimum index set could be used to estimate the value of the -th smallest element approximately. Thus, we could set a threshold which is slightly smaller than the value of the -th smallest element. The threshold can be understood as a filter, capturing small elements that must not be ignored. Having obtained the threshold , we focus on all estimates with value lower than (including those estimates whose corresponding elements are larger than ), and then sample (at most) indices. From these, we can find indices that form a strong approximate minimum index set.
More specifically, we begin with a quantum state , where is a superposition of all possible estimates of the -th element. If we focus on the register containing the estimate values , then we can write , where is a superposition of indices. If we now condition on whether is lower than the threshold , the quantum state can be written as , where . By quantum amplitude amplification [9], we can sample one index from by using queries to the unitary oracle that prepares . Using an argument similar to the coupon collector’s problem, we prove that sampling sufficiently many (precisely, ) times will collect all the “small” elements with high probability. Finally, we use simple post-processing to find a strong approximate minimum index set (see Section 6 for more details).
1.4 Applications
Our algorithms for finding approximate minimum index sets can be applied to several practical scenarios, some of which are formally discussed in Section 7.
Approximate minima in multiple expectations.
Given purified access to quantum states , and block-encoding access (see Definition 4) to observables , the task is to approximately find the minimal values among expectations . The expectation of an observable with respect to a quantum state can be estimated, for example, by the Hadamard test [2] or quantum measurements. The problem has been considered in the literature in various situations where, in most of the cases, the same quantum state are used for different observables. These include quantum SDP solvers [8, 40, 39], shadow tomography [22, 1, 10] and multiple expectation estimation [23]. By our quantum approximate -minimum finding with amplitude estimation, we can find an -approximate of the minimal expectations in time.
Approximate ground state energies.
Given block-encoding access to a Hamiltonian with the known eigenbasis, our algorithm can be used to find an -approximate of the ground state energies in time, which could be seen as a generalization of the approximate ground state energy finding [40].
In the special case when the Hamiltonian is diagonal (i.e., with the computational basis as its eigenbasis), our quantum algorithm for approximate -minimum finding can be used in quantum multi-Gibbs sampling [15]. See Remark 2 for a more detailed discussion.
Remark 2.
For the special case where the approximate oracle is implemented by quantum amplitude estimation, a quantum -minimum finding was claimed in [15]. However, an error in their Theorem C.3 was found due to their incorrect error-reduction of consistent quantum amplitude estimation. Nevertheless, using our quantum strong approximate -minimum finding with an approximate oracle, we can fill the gaps in their proof, and their result still holds.
2 Preliminaries
2.1 Notations
For , we use to denote the set , and we set for convenience. stands for the set of -dimensional vectors with non-negative entries. For sets and , we use to denote the set consisting of the elements in but not in . We assume the readers are familiar with the basic knowledge of quantum computing (see [31] for a reference). In this paper, when discussing the query complexity of , we assume having query access to , and their controlled versions.
2.2 Concepts in Quantum Computing
We use a quantum data structure called to store the found indices in our algorithm. The functionality of this data structure is characterized by the following proposition.222If we allow the use of quantum(-read classical-write) random access memory (QRAM) (see [6] for a more detailed discussion), all these operations could be implemented efficiently (i.e., in one- and two-qubit gates and QRAM read and write operations).
Proposition 3.
There is a quantum data structure that supports the following operations.
-
Initialization : return an instance of , with a set initialized to empty set which can store at most elements.
-
Add for an : insert the element into the set .
-
Hide : output a unitary satisfying for any computational basis , where is the indicator function of the set , i.e, if , and if .
Block-encoding is a very useful concept in quantum algorithms proposed in [17], and we recall its definition as follows.
Definition 4 (Block-encoding [17, Definition 24]).
Let be a linear operator acting on an -qubit Hilbert space. For and integer , we say an -qubit unitary operator is an -block-encoding of , if .
When and could be omitted (for instance, and , or the values of and have shown up in previous context), we simply call an -block-encoding of .
3 Approximate Oracle
Definition 5 (Approximate Oracle).
Suppose is an -dimensional vector with for . For and , a unitary is called an -approximate oracle for , if it satisfies for all , where
is a normalized state in a -dimensional space, , is the state orthogonal to , and for all .333We also allow the case where produces ancillary states, namely , which will not influence our proofs.
Remark 6.
In simple words, the definition states that is an -approximate oracle for , if for each , by querying , with probability at least , will return (a superposition) of estimated values in . As an example, such a scenario shows up when the phase estimation procedure is used to estimate the values of .
By using the median trick [30], we have the following proposition stating that the success probability of the approximate oracle can be efficiently amplified.
Proposition 7 (Failure probability reduction of the approximate oracle).
Suppose is an -dimensional vector and is an -approximate oracle for , for some and . Then, for any , one can construct an -approximate oracle for , using queries to .
3.1 Comparisons of Different Oracles
In this part, we briefly investigate different input oracles considered in previous literature for the quantum minimum finding problem, namely the bounded-error oracle and the untrustworthy oracle.
Bounded-error Oracle.
As the name suggests, bounded-error considers the case when only bounded-error access to the input is provided for computation tasks, such as quantum search [21] and quantum minimum finding [42]. This kind of oracle model could return the correct exact answer with bounded error (i.e., high probability), while the exact oracle returns the correct exact answer with certainty. Therefore, bounded-error oracle could be seen as a slight generalization of the exact oracle. Their computational powers are close, as the bounded-error oracle can simulate the exact oracle by majority voting with logarithmic repetitions.
Untrustworthy Oracle.
The precision issue for the oracle model motivates researchers to consider another oracle model [32], which we call the untrustworthy oracle.444The untrustworthy oracle is originally called “noisy oracle” in [32]. However, we renamed it according to its behavior, to avoid the conflict with the noisy oracle related to physical noises. The untrustworthy oracle will return the correct comparison result between two elements if they are far away enough; and an unknown, possibly adversary (but deterministic) comparison result, if the distance between them is less than a fixed threshold . In this model, quantum minimum finding over elements could be done in time , where is the upper bound on the number of elements within any interval of length . The result shows that, achieving quadratic speedup for the minimum finding in this model may pose strict requirements on the inputs.
We note that our definition of approximate oracle includes exact oracle and bounded-error oracle as special cases. In fact, a bounded-error oracle with bounded-error is a -approximate oracle by definition. The approximate oracle model is generally incomparable to the untrustworthy oracle, see Remark 8 for a detailed discussion.
Remark 8.
The untrustworthy oracle is incomparable with the approximate oracle. This can be seen from two perspectives. First, the latter cannot simulate the former, because the comparison between close elements by the approximate oracle is always in superposition. Second, the former reveals more information than the latter when comparing two elements with distance slightly above the threshold, say . In this case, the former returns the correct comparison with certainty, while the latter may not be able to even distinguish the two elements (in extreme cases, the approximate values of the two elements can be the same, i.e. , with certainty).
There are other types of input oracles that are quantum channels due to imperfect implementations and noise; they were considered in the unstructured search problem in the literature, e.g., [38, 5, 26, 35, 20, 36]. In particular, in [35, 36], it was shown that no quadratic speedup exists in the presence of (constant-rate) depolarizing or dephasing noise after each application of the exact oracle. By contrast, the bounded-error, untrustworthy and approximate oracles are all unitary.
4 Approximate -Minimum Index Set: Weak and Strong Definitions
The problem of finding the smallest element from a set of numbers using an oracle that provides an approximate value has been a topic of interest in quantum computation studies, specifically quantum algorithms for optimization tasks [40, 11]. As discussed in Section 3, a natural setup where the values of vector are prepared involves employing the amplitude estimation procedure with a limited precision parameter using . Given the limitation of the estimation precision, it is reasonable to expect that we could only find an approximate minimum value that is -close to the true minimum. We also observe that, instead of finding the approximate minimum value, it suffices to find the index of the approximate minimum value. Thus, motivated by prior results (Theorem 50 in [40] and Theorem 2.4 in [11]), we present the following notion of -approximate minimum index, which were implicit in those prior works.
Definition 9 (Approximate Minimum Index).
Let be an -dimensional vector. Suppose the coordinates of are sorted from small to large as
then, an -approximate minimum index for is an index satisfying .
Remark 10.
For some and , there may exist multiple indices that are -approximate minimum indices of . For instance, if , then, for any and any , is an -approximate minimum index of by definition.
In simple terms, is an -approximate minimum index for if . Therefore, after identifying an -approximate minimum index , one can use amplitude estimation to obtain an -approximate estimate of , which is -close to the actual minimum .
Interestingly, generalizing this concept for finding smallest elements approximately is challenging. In this section, we introduce two definitions of the approximate -minimum index set, extending the notion of approximate minimum index in two distinct ways. Furthermore, we explore the relationships between these definitions.
We first propose the definition of weak -approximate minimum index set, which requires that after sorting the elements in the set from small to large, they are entry-wise -close to the real minima.
Definition 11 (Weak Approximate Minimum Index Set).
Let be an -dimensional vector. Suppose the coordinates of are sorted from small to large as . A set of size is called a weak -approximate minimum index set for if there is an enumeration of elements of such that for all .
The following incrementability property plays a crucial role in finding weak approximate minimum index sets. Essentially, it states that from a weak -approximate minimum index set, we can add an index whose value is no more than the -smallest value plus , yielding a weak -approximate minimum index set. This is also stated and proved in [16, Proposition A.2] in the full version.
Proposition 12 (Error-tolerant Incrementability).
Let be an -dimensional vector, and its coordinates can be sorted as . Suppose is a weak -approximate minimum index set for a positive integer and a positive real . Let be an index satisfying . Then, is a weak -approximate minimum index set for .
Next, we introduce a strong notion of approximate minimum index set, as the weaker version might not be adequate for certain applications. The definition builds upon the following characterization of a -minimum index set: For a set of size that constitutes a -minimum index set, it holds that for every and . In other words, the inequality must be satisfied for every . If we relax these constraints to allow for an epsilon margin of error, we obtain the following definition.
Definition 13 (Strong Approximate Minimum Index Set).
Let be an -dimensional vector. Then, a set of size is called a strong -approximate minimum index set for , if for all , we have .
As the name suggests, a strong -approximate minimum index set is also a weak -approximate minimum index set, and we formally state this proposition as follows, which is also stated and proved in [16, Proposition A.7] in the full version.
Proposition 14.
For an -dimensional vector , let with size be a strong -approximate minimum index set for . Then, is also a weak -approximate minimum index set for .
However, a weak -approximate minimum index set is not necessarily a strong one. In particular, the strong approximate minimum index set is not error-tolerant incrementable, which is shown in the following example.
Example 15 (No Error-Tolerant Incrementability for Strong Approximate Minimum Index Set).
Consider a -dimensional vector . Let . By definition, is a strong -approximate minimum index set for . Also, for the index , we know . Therefore, by definition, is a weak -approximate minimum index set for . However, since , is not a strong -approximate minimum index set for .
This illustration could be extended to encompass arbitrary values of and , demonstrating that for any fixed constant , there exists a weak -approximate minimum index set that is not a strong -approximate minimum index set.
5 Quantum Algorithms for Finding Weak Approximate Minimum Index Sets
In this section, we will develop an approximate version of -minimum finding that enables us to find a weak -approximate minimum index set, given access to an approximate oracle. The technique of generalized minimum finding from [40] is an important subroutine in our algorithm, which could be stated as follows.
Theorem 16 (Generalized Minimum Finding, [40, Theorem 49]).
Let be a positive integer, and . Suppose is an unitary operator satisfying , where , , are normalized states, and are distinct real numbers satisfying . Let denote a discrete random variable with , and be a lower bound on the probability for some . Then, there exists a quantum algorithm that, with probability at least , outputs a state where , using queries to .
Using this theorem, we can establish the following result for finding a weak -approximate minimum index set, extending and generalizing the approximate minimum finding procedure proposed in [40]. To express the algorithm more compactly, let be a unitary such that , which can be implemented by one- and two-qubit gates.
Theorem 17 (Approximate Weak Minimum Index Set Finding).
Suppose is an -dimensional vector with for . For and , let be a -dimensional -approximate oracle for , Then, there is a quantum algorithm that, with probability at least , outputs a weak -approximate minimum index set for , using queries to .
The proof of this theorem is given in the full version (see [16, Theorem B.4]).
We further note that, the failure probability could be made to by introducing an extra logarithmic multiplicative term in query complexity as Proposition 7 suggests.
6 Quantum Algorithms for Finding Strong Approximate Minimum Index Set
In this section, we present a quantum algorithm, , which returns a strong approximate minimum index set. This algorithm builds on the method used for finding a weak approximate minimum index set.
The core idea of our algorithm is to first employ the algorithm for an estimate of the -th smallest entry of , and then repeatedly sample from an “amplified” approximate oracle which facilitates querying entries that are approximately less than . The algorithm, explicitly given in Algorithm 2 uses two key subroutines and where is an approximate oracle for the vector , is a positive number, and . The goal of is to approximately estimate the amplitude of all indices whose estimated value is no more than , while the goal of is to perform amplitude amplification on this state to achieve constant success probability. The formal statements of these procedures can be found in the full version, particularly in [16, Proposition C.3, Proposition C.6].
To describe the algorithm concisely, we use to denote a single computational measurement result of the state . For an index set , represents the collection of computational measurement outcomes of for all .
The following theorem states the correctness and the time efficiency of this algorithm.
Theorem 18 (Approximate Strong Minimum Index Set Finding).
Suppose is an -dimensional vector with for . For , , and , let be a -dimensional -approximate oracle for , Then, there is a quantum algorithm that, with probability at least , outputs a strong -approximate minimum index set for , using queries to .
Due to the length limit, we leave a complete proof to Appendix C in [16] in the full version.
7 Applications
7.1 Approximate -minimum Expectations
As an application of our quantum approximate -minimum finding algorithms, we address the problem of finding approximate minima in multiple expectations. This can be directly solved by combining our algorithms with quantum amplitude estimation. The formal statement of the problem is as follows.
Definition 19 (Approximate -minimum Expectations).
For a positive integer , let be a set of -qubit density matrices, and be a set of -qubit positive semi-definite observables with for . Given the unitary being the purified access to , i.e., , and a unitary , where is a -block-encoding of the observable for each . The approximate -minimum expectations problem requires to find a strong -approximate minimum index set for the vector with coordinates .
By leveraging our algorithms for finding strong approximate minimum index sets alongside quantum expectation estimation algorithms, we present the following theorem, which effectively addresses the problem of finding approximate -minimum expectations.
Theorem 20.
For a positive integer , let be a set of -qubit density matrices with purified access , and let be a set of -qubit positive semi-definite observables with block-encoding access where for . Then, there is a quantum algorithm that, with probability at least , finds a strong -approximate minimum index set for the vector with coordinates , using queries to and .
Proof.
See [16, Theorem D.5] in the full version.
7.2 Approximate -ground Energy Problem
We now turn to the approximate -ground state energy problem, a generalization of the task of approximating the ground state energy of a Hamiltonian. The formal definition of the problem is as follows.
Definition 21 (Approximate -ground State Energy).
Let be a Hamiltonian acting on -dimensional Hilbert space satisfying , with a spectral decomposition . Assume that the eigenvalues of can be sorted as . Let a unitary be an -block encoding of , and be a unitary satisfying . For a positive integer and a positive real number , the approximate -ground state energy problem is to find a strong -approximate minimum index set for the vector with coordinates .
By integrating our quantum algorithms for finding strong approximate minimum index sets with quantum phase estimation, we present the following theorem that effectively solves the problem of finding approximate -ground state energy, as also stated and proved in [16, Theorem D.9] in the full version.
Theorem 22.
For and , there is a quantum algorithm that, with probability at least , solves the problem defined in Definition 21 using queries to and .
Remark 23.
The algorithm described in Theorem 22 can be employed in the case when the Hamiltonian is diagonal (with respect to the computational basis, i.e., ). This scenario aligns precisely with the particular case discussed in Line 2 of Algorithm 2 in [15]. We therefore address the issue noted in Remark 2.
8 Discussion
In this paper, we carefully examined quantum algorithms for -minimum finding with access to approximate oracles for function values. We introduced two distinct notions of approximate minimum index sets. The weak notion is defined entry-wise and possesses an error-tolerant incrementability property, which facilitates the design of efficient algorithms. However, this notion may be insufficient for certain applications. To address this, we introduced a stronger notion of approximate minimum index sets and developed algorithms by combining the weak -minimum finding algorithm with a coupon collector argument. We also discussed two potential applications related to the expectations of observables and the ground energy of Hamiltonians. Several intriguing open problems remain as a result of our work.
-
The query complexity of the approximate minimum index set finding problem is not optimal yet. Is it possible to remove the extra logarithmic factors from the query complexity in Theorem 1?
-
Can we approximate the ground state energies of a Hamiltonian without knowing its eigenbasis?
-
Can we find more types of input oracles for the minimum finding problem which are reasonable abstractions of practical scenarios? Is it possible to design algorithms for minimum finding using these oracles with optimal query complexity?
-
Can we find more applications of quantum approximate -minimum finding? We believe that our quantum algorithms in Theorem 1 could be applicable in other scenarios.
References
- [1] Scott Aaronson. Shadow tomography of quantum states. SIAM Journal on Computing, 49(5):STOC18–368–STOC18–394, 2020. doi:10.1137/18M120275X.
- [2] Dorit Aharonov, Vaughan Jones, and Zeph Landau. A polynomial quantum algorithm for approximating the Jones polynomial. Algorithmica, 55(3):395–421, 2009. doi:10.1007/s00453-008-9168-0.
- [3] Esma Aïmeur, Gilles Brassard, and Sébastien Gambs. Quantum speed-up for unsupervised learning. Machine Learning, 90(2):261–287, 2013. doi:10.1007/s10994-012-5316-5.
- [4] Shyan Akmal and Ce Jin. Near-optimal quantum algorithms for string problems. Algorithmica, 85(8):2260–2317, 2023. doi:10.1007/s00453-022-01092-x.
- [5] Andris Ambainis, Arturs Bačkurs, Nikolajs Nahimovs, and Alexander Rivosh. Grover’s algorithm with errors. In Proceedings of the 8th International Doctoral Workshop on Mathematical and Engineering Methods in Computer Science, pages 180–189, 2012. doi:10.1007/978-3-642-36046-6_17.
- [6] Simon Apers and Ronald de Wolf. Quantum speedup for graph sparsification, cut approximation, and Laplacian solving. SIAM Journal on Computing, 51(6):1703–1742, 2022. doi:10.1137/21M1391018.
- [7] Jacob Biamonte, Peter Wittek, Nicola Pancotti, Patrick Rebentrost, Nathan Wiebe, and Seth Lloyd. Quantum machine learning. Nature, 549(7671):195–202, 2017. doi:10.1038/nature23474.
- [8] Fernando G. S. L. Brandão, Amir Kalev, Tongyang Li, Cedric Yen-Yu Lin, Krysta M. Svore, and Xiaodi Wu. Quantum SDP solvers: Large speed-ups, optimality, and applications to quantum learning. In Proceedings of the 46th International Colloquium on Automata, Languages, and Programming, volume 132, pages 27:1–27:14, 2019. doi:10.4230/LIPIcs.ICALP.2019.27.
- [9] Gilles Brassard, Peter Høyer, Michele Mosca, and Alain Tapp. Quantum amplitude amplification and estimation. In Quantum Computation and Information, volume 305, pages 53–74. American Mathematical Society, 2002. doi:10.1090/conm/305/05215.
- [10] Costin Bădescu and Ryan O’Donnell. Improved quantum data analysis. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 1398–1411. Association for Computing Machinery, 2021. doi:10.1145/3406325.3451109.
- [11] Yanlin Chen and Ronald de Wolf. Quantum Algorithms and Lower Bounds for Linear Regression with Norm Constraints. In Proceedings of the 50th International Colloquium on Automata, Languages, and Programming, volume 261, pages 38:1–38:21, 2023. doi:10.4230/LIPIcs.ICALP.2023.38.
- [12] Ronald de Wolf. Quantum computing: Lecture notes, 2023. arXiv:1907.09415.
- [13] Christoph Dürr, Mark Heiligman, Peter Høyer, and Mehdi Mhalla. Quantum query complexity of some graph problems. SIAM Journal on Computing, 35(6):1310–1328, 2006. doi:10.1137/050644719.
- [14] Christoph Dürr and Peter Høyer. A quantum algorithm for finding the minimum. ArXiv e-prints, 1996. arXiv:quant-ph/9607014.
- [15] Minbo Gao, Zhengfeng Ji, Tongyang Li, and Qisheng Wang. Logarithmic-regret quantum learning algorithms for zero-sum games. In Advances in Neural Information Processing Systems, volume 36, pages 31177–31203, 2023. URL: https://proceedings.neurips.cc/paper_files/paper/2023/hash/637df18481a6aa74238bd2cafff94cb9-Abstract-Conference.html.
- [16] Minbo Gao, Zhengfeng Ji, and Qisheng Wang. Quantum approximate -minimum finding, 2024. The full version of this paper also includes references [12, 18, 28, 29, 33, 41]. arXiv:2412.16586.
- [17] András Gilyén, Yuan Su, Guang Hao Low, and Nathan Wiebe. Quantum singular value transformation and beyond: exponential improvements for quantum matrix arithmetics. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, pages 193–204, 2019. doi:10.1145/3313276.3316366.
- [18] András Gilyén and Alexander Poremba. Improved quantum algorithms for fidelity estimation, 2022. arXiv:2203.15993.
- [19] Lov K. Grover. A fast quantum mechanical algorithm for database search. In Proceedings of the 28th Annual ACM Symposium on Theory of Computing, pages 212–219, 1996. doi:10.1145/237814.237866.
- [20] Yassine Hamoudi, Qipeng Liu, and Makrand Sinha. The NISQ complexity of collision finding. In Proceedings of the 43rd Annual International Conference on the Theory and Applications of Cryptographic Techniques, pages 3–32, 2024. doi:10.1007/978-3-031-58737-5_1.
- [21] Peter Høyer, Michele Mosca, and Ronald de Wolf. Quantum search on bounded-error inputs. In Proceedings of the 30th International Colloquium on Automata, Languages, and Programming, pages 291–299, 2003. doi:10.1007/3-540-45061-0_25.
- [22] Hsin-Yuan Huang, Richard Kueng, and John Preskill. Predicting many properties of a quantum system from very few measurements. Nature Physics, 16(10):1050–1057, 2020. doi:10.1038/s41567-020-0932-7.
- [23] William J. Huggins, Kianna Wan, Jarrod McClean, Thomas E. O’Brien, Nathan Wiebe, and Ryan Babbush. Nearly optimal quantum algorithm for estimating multiple expectation values. Physical Review Letters, 129:240501, December 2022. doi:10.1103/PhysRevLett.129.240501.
- [24] Ce Jin and Jakob Nogler. Quantum speed-ups for string synchronizing sets, longest common substring, and -mismatch matching. ACM Transactions on Algorithms, 20(4):32:1–32:36, 2024. doi:10.1145/3672395.
- [25] A. Yu. Kitaev. Quantum measurements and the Abelian stabilizer problem. ArXiv e-prints, 1995. arXiv:quant-ph/9511026.
- [26] Dmitry Kravchenko, Nikolajs Nahimovs, and Alexander Rivosh. Grover’s search with faults on some marked elements. International Journal of Foundations of Computer Science, 29(4):647–662, 2018. doi:10.1142/S0129054118410095.
- [27] Seth Lloyd, Masoud Mohseni, and Patrick Rebentrost. Quantum algorithms for supervised and unsupervised machine learning. ArXiv e-prints, 2013. arXiv:1307.0411.
- [28] Guang Hao Low and Isaac L. Chuang. Optimal hamiltonian simulation by quantum signal processing. Physical Review Letters, 118:010501, January 2017. doi:10.1103/PhysRevLett.118.010501.
- [29] Guang Hao Low and Isaac L. Chuang. Hamiltonian Simulation by Qubitization. Quantum, 3:163, July 2019. doi:10.22331/q-2019-07-12-163.
- [30] Daniel Nagaj, Pawel Wocjan, and Yong Zhang. Fast amplification of QMA. Quantum Information and Computation, 9(11–12):1053–1068, November 2009. doi:10.26421/QIC9.11-12-8.
- [31] Michael A. Nielsen and Isaac L. Chuang. Quantum Computation and Quantum Information: 10th Anniversary Edition. Cambridge University Press, 2010. doi:10.1017/CBO9780511976667.
- [32] Yihui Quek, Clement Canonne, and Patrick Rebentrost. Robust quantum minimum finding with an application to hypothesis selection. ArXiv e-prints, 2020. arXiv:2003.11777.
- [33] Patrick Rall. Quantum algorithms for estimating physical quantities using block encodings. Phys. Rev. A, 102:022408, August 2020. doi:10.1103/PhysRevA.102.022408.
- [34] H. Ramesh and V. Vinay. String matching in quantum time. Journal of Discrete Algorithms, 1(1):103–110, 2003. doi:10.1016/S1570-8667(03)00010-8.
- [35] Ansis Rosmanis. Quantum search with noisy oracle. ArXiv e-prints, 2023. arXiv:2309.14944.
- [36] Ansis Rosmanis. Addendum to “quantum search with noisy oracle”. ArXiv e-prints, 2024. arXiv:2405.11973.
- [37] Maria Schuld, Ilya Sinayskiy, and Francesco Petruccione. An introduction to quantum machine learning. Contemporary Physics, 56(2):172–185, 2015. doi:10.1080/00107514.2014.964942.
- [38] Neil Shenvi, Kenneth R. Brown, and K. Birgitta Whaley. Effects of a random noisy oracle on search algorithm complexity. Physical Review A, 68(5):052313, 2003. doi:10.1103/PhysRevA.68.052313.
- [39] Joran van Apeldoorn and András Gilyén. Improvements in quantum SDP-solving with applications. In Proceedings of the 46th International Colloquium on Automata, Languages, and Programming, volume 132, pages 99:1–99:15, 2019. doi:10.4230/LIPIcs.ICALP.2019.99.
- [40] Joran van Apeldoorn, András Gilyén, Sander Gribling, and Ronald de Wolf. Quantum SDP-Solvers: Better upper and lower bounds. Quantum, 4:230, 2020. doi:10.22331/q-2020-02-14-230.
- [41] Qisheng Wang. Optimal trace distance and fidelity estimations for pure quantum states. IEEE Transactions on Information Theory, 70(12):8791–8805, 2024. doi:10.1109/tit.2024.3447915.
- [42] Qisheng Wang and Mingsheng Ying. Quantum algorithm for lexicographically minimal string rotation. Theory of Computing Systems, 68(1):29–74, 2024. doi:10.1007/s00224-023-10146-8.
- [43] Nathan Wiebe, Ashish Kapoor, and Krysta M. Svore. Quantum algorithms for nearest-neighbor methods for supervised and unsupervised learning. Quantum Information and Computation, 15(3–4):316–356, 2015. doi:10.26421/QIC15.3-4-7.
