Improved Quantum Query Complexity on Easier Inputs
Noel T. Anderson, Jay-U Chung, Shelby Kimmel, Da-Yeon Koh, Xiaohan Ye

TL;DR
This paper develops a modified quantum span program algorithm that maintains improved query complexity without input promises and demonstrates exponential quantum advantages in average query complexity for certain search problems.
Contribution
It introduces a new span program algorithm that extends previous promise-based improvements to unpromised inputs and applies it to show significant quantum advantages in search tasks.
Findings
Maintains query complexity improvements without input promises
Achieves exponential quantum advantages in average query complexity
Generalizes Montanaro's Search with Advice to broader problems
Abstract
Quantum span program algorithms for function evaluation sometimes have reduced query complexity when promised that the input has a certain structure. We design a modified span program algorithm to show these improvements persist even without a promise ahead of time, and we extend this approach to the more general problem of state conversion. As an application, we prove exponential and superpolynomial quantum advantages in average query complexity for several search problems, generalizing Montanaro's Search with Advice [Montanaro, TQC 2010].
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture
Improved Quantum Query Complexity on Easier Inputs
Noel T. Anderson
Middlebury College, Middlebury, VT, USA
Jay-U Chung
Middlebury College, Middlebury, VT, USA
Shelby Kimmel111Corrresponding author: [email protected]; ORCiD: 0000-0003-0726-4167
Middlebury College, Middlebury, VT, USA
Da-Yeon Koh
Williams College, Williamstown, MA, USA
Xiaohan Ye
Middlebury College, Middlebury, VT, USA
Brown University, Providence, RI, USA
Abstract
Quantum span program algorithms for function evaluation sometimes have reduced query complexity when promised that the input has a certain structure. We design a modified span program algorithm to show these improvements persist even without a promise ahead of time, and we extend this approach to the more general problem of state conversion. As an application, we prove exponential and superpolynomial quantum advantages in average query complexity for several search problems, generalizing Montanaro’s Quantum Search with Advice [Montanaro, TQC 2010].
1 Introduction
Quantum algorithms often perform better when given a promise on the input. For example, if we know that there are marked items out of , or no marked items at all, then Grover’s search can be run in time and query complexity , rather than , the worst case complexity with a single marked item [Gro97, Aha99].
In the case of Grover’s algorithm, a series of results [BBHT98, BHMT00, BHT98] removed the promise; if there are marked items, there is a quantum search algorithm that runs in complexity, even without knowing the number of marked items ahead of time. Most relevant for our work, several of these algorithms involve iteratively running Grover’s search with exponentially growing runtimes [BBHT98, BHMT00] until a marked item is found.
Grover’s algorithm was one of the first quantum query algorithms discovered [Gro97]. Since that time, span programs and the dual of the general adversary bound were developed, providing frameworks for creating optimal query algorithms for function decision problems [Rei09, Rei11] and nearly optimal algorithms for state conversion problems, in which the goal is to generate a quantum state based on an oracle and an input state [LMR*+*11]. Moreover, these frameworks are also useful in practice [BT20, BR12a, Bel12, BR20, CMB18, DKW19].
For some span program algorithms, analogous to multiple marked items in Grover’s search, there are features which, if promised to exist, allow for improvement over the worst case query complexity. For example, a span program algorithm for deciding -connectivity uses queries on an -vertex graph. However, if promised that the shortest path, if it exists, has length at most , then the problem can be solved with queries [BR12a].
Our contribution is to remove the requirement of the promise; we improve the query complexity of generic span program and state conversion algorithms in the case that some speed-up inducing property (such as multiple marked items or a short path) is present, even without knowing about the structure in advance. One might expect this is trivial: surely if an algorithm produces a correct result with fewer queries when promised a property is present, then it should also produce a correct result with fewer queries without the promise if the property still holds? While this is true and these algorithms always output a result, even if run with fewer queries, the problem is that they don’t produce a flag of completion, and their output cannot always be easily verified. Without a flag of completion or a promise of structure, it is impossible to be confident that the result is correct. Span program and state conversion algorithms differ from Grover’s algorithm in their lack of a flag; in Grover’s algorithm one can use a single query to test whether the output is a marked item, thus flagging that the output of the algorithm is correct, and that the algorithm has run for a sufficiently long time. We note that when span program algorithms previously have claimed an improvement with structure, they always included a promise, or they give the disclaimer that running the algorithm will be incorrect with high probability if the promise is not known ahead of time to be satisfied, e.g. Ref. [CMB18, App. C.3].
We use an approach that is similar to the iterative modifications to Grover’s algorithm; we run subroutines for exponentially increasing times, and we have novel ways to flag when the computation should halt. On the hardest inputs, our algorithms match the asymptotic performance of existing bounded error algorithms. On easier inputs, our approach on average matches the asymptotic performance, up to log factors, of existing algorithms when those existing algorithms additionally have an optimal promise.
Because our algorithms use fewer queries on easier inputs without needing to know they are easier inputs, they provide the possibility of improved average query complexity over input oracles when there is a distribution of easier and harder inputs. In this direction, we generalize a result by Montanaro that showed a super-exponential quantum advantage in average query complexity for the problem of searching for a single marked item under a certain distribution [Mon10]. In particular, we provide a framework for proving similar advantages using quantum algorithms based on classical decision trees, opening up the potential for a broader range of applications than the approach used by Montanaro. We apply this technique to prove an exponential and superpolynomial quantum advantage in average query complexity for searching for multiple items and searching for the first occurring marked items, respectively.
Where prior work showed improvements for span program algorithms with a promise, our results immediately provide an analogous improvement without the promise:
- •
For undirected -connectivity described above, our algorithm determines whether there is a path from to in an -vertex graph with queries if there is a path of length , and if there is no path, the algorithm uses queries, where is the size of the smallest cut between and . In either case, and need not be known ahead of time.
- •
For an -vertex undirected graph, we can determine if it is connected in queries, where is the average effective resistance, or not connected in queries, where is the number of components. These query complexities hold without knowing or ahead of time. See Ref. [JJKP18] for the promise version of this problem.
- •
For cycle detection on an -vertex undirected graph, whose promise version was analyzed in Ref. [DKW19], if the circuit rank is , then our algorithm will detect a cycle in queries, while if there is no cycle and at most edges, the algorithm will decide there is no cycle in queries. This holds without knowing or ahead of time.
To achieve our results for decision problems, we modify the original span program function evaluation algorithm to create two one-sided error subroutines. In the original span program algorithm, the final measurement tells you with high probability whether or In one of our subroutines, the final measurement certifies that with high probability , providing our flag of completion, or it signals that more queries are needed to determine whether . The other behaves similarly for . By interleaving these two subroutines with exponentially increasing queries, we achieve our desired performance.
The problem is more challenging for state conversion, as the standard version of that algorithm does not involve any measurements, and so there is nothing to naturally use as a flag of completion. We thus design a novel probing routine that iteratively tests exponentially increasing query complexities until a sufficient level is reached, before then running an algorithm similar to the original state conversion algorithm.
While we analyze query complexity, the algorithms we create have average time complexity on input that scales like , where is the average query complexity on input , and is the time complexity of implementing an input-independent unitary. Since the existing worst-case span program and state conversion algorithms have time complexities that scale as , our algorithms also improve in average time complexity relative to the original algorithms on easier inputs. For certain problems, like -connectivity [BR12b] and search [CJOP20], it is known that , meaning that the query complexities of our algorithms for these problems match the time complexity up to log factors.
1.1 Directions for Future Work
Ambainis and de Wolf show that while there is no quantum query advantage for the problem of majority in the worst case, on average there is a quadratic quantum advantage [AdW01]. However, their quantum algorithm uses a technique that is specific to the problem of majority, and it is not clear how it might extend to other problems. On the other hand, since our approach is based on span programs, a generic optimal framework, it may provide opportunities of proving similar results for more varied problems.
In the original state conversion algorithm, to achieve an error of in the output state (by some metric), the query complexity scales as [LMR*+*11]. In our result, the query complexity scales as . While this does not matter for applications like discrete function evaluation, as considered in Section 4.2, in cases where accuracy must scale with the input size, this error term could overwhelm any advantage from our approach, and so it would be beneficial to improve this error scaling.
Ito and Jeffery [IJ19] give an algorithm to estimate the positive witness size (a measure of how easy an instance is) with fewer queries on easier inputs. While there are similarities between our approaches, neither result seems to directly imply the other. Better understanding the relationship between these strategies could lead to improved algorithms for determining properties of input structure for both span programs and state conversion problems.
Our work can be contrasted with the work of Belovs and Yolcu [BY23], which also has a notion of reduced query complexity on easier inputs. Their work focuses on the “Las Vegas query complexity,” which is related to the amount of the state that a controlled version of the oracle acts on over the course of the algorithm, and which is an input-dependent quantity. They show the “Monte Carlo query complexity,” what we call the query complexity, is bounded by the Las Vegas query complexity of the worst-case input. We suspect that using techniques similar to those in our work, it would be possible to modify their algorithm to obtain an algorithm with input-dependent average query complexity that scales roughly with the geometric mean of the Las Vegas and Monte Carlo complexities for that input, without knowing anything about the input ahead of time.
2 Preliminaries
Basic Notation: For , let represent , while for , . We use to denote base 2 logarithm. For set builder notation like we will frequently use , where we drop the subscript outside the curly brackets if clear from context. We denote a linear operator from the space to the space as . We use for the identity operator. (It will be clear from context which space acts on.) Given a projection , its complement is For a matrix , by or , we denote the element in the row and column of . By , we denote big-O notation that ignores log factors. The -norm of a vector is denoted by . For any unitary , let be the projection onto the eigenvectors of with phase at most . That is, is the projection onto . For a function , we define
2.1 Quantum Algorithmic Building Blocks
We consider quantum query algorithms, in which one can access a unitary , called the oracle, which encodes a string for , . The oracle acts on the Hilbert space as , where is the element of .
Given for , we would like to perform a computation that depends on . The query complexity is the minimum number of uses of the oracle required such that for all , the computation is successful with some desired probability of success. We denote by the average number of queries used by the algorithm on input where the expectation is over the algorithm’s internal randomness. Given a probability distribution over the elements of , then is the average quantum query complexity of performing the computation with respect to
Several of our key algorithmic subroutines use a parallelized version of phase estimation [MNRS11], in which for a unitary , a precision , and an accuracy , a circuit implements copies of the phase estimation circuit on , each to precision , that all measure the phase of a single state on the same input register. If acts on a Hilbert Space , then acts on the space for , where we have used to label the register that stores the input state, and to label the registers that store the results of the parallel phase estimations.
The circuit can be used for Phase Checking: applying to and then measuring register in the standard basis; the probability of outcome provides information on whether is close to an eigenvector of that has eigenphase close to [math] (in particular, with eigenphase within of [math]). To characterize this probability, we define to be the orthogonal projection onto the subspace of that maps to states with in the register. That is, (Since depends on the choice of and used in , those values must be specified, if not clear from context, when discussing .) We now summarize prior results for Phase Checking in Lemma 1:
Lemma 1** (Phase Checking [Kit95, CEMM98, MNRS11]).**
Let be a unitary on a Hilbert Space , and let . We call the precision and the accuracy. Then there is a circuit that acts on the space for , and that uses calls to control-. Then for any state
- •
* and*
- •
**
We also consider implementing as described above, applying a phase to the register if the register is not in the state , and then implementing . We call this circuit Phase Reflection222In Ref. [LMR*+*11], this procedure is referred to as “Phase Detection,” but since no measurement is made, and rather only a reflection is applied, we thought renaming this protocol as “Phase Reflection” would be more descriptive and easier to distinguish from “Phase Checking.” We apologize for any confusion this may cause when comparing to prior work. and denote it as Note that , where and have the same implicit precision and accuracy . The following lemma summarizes prior results on relevant properties of Phase Reflection.
Lemma 2** (Phase Reflection [MNRS11, LMR*+*11]).**
Let be a unitary on a Hilbert Space , and let . We call the precision and the accuracy. Then there is a circuit that acts on the space for , and that uses calls to control- and control-, such that for any state
- •
, and
- •
.
We will use Iterative Quantum Amplitude Estimation [GGZW21], which is like standard quantum amplitude estimation [BHMT00], but with exponentially better success probability:
Lemma 3** (Iterative Quantum Amplitude Estimation [GGZW21]).**
Let and be a quantum circuit such that on a state , . Then there is an algorithm that estimates to additive error with success probability at least using calls to and .
A key lemma in span program and state conversion algorithms is the effective spectral gap lemma:
Lemma 4** (Effective spectral gap lemma, [LMR*+*11]).**
Let and be projections, and let be the unitary that is the product of their associated reflections. If , then
2.2 Span Programs
Span programs are a tool for designing quantum query algorithms for decision problems.
Definition 5** (Span Program).**
A span program is a tuple on where
* is a direct sum of finite-dimensional inner product spaces: and for and , we have , such that .* 2. 2.
* is a vector space* 3. 3.
* is a target vector, and* 4. 4.
.
Given a string , we use to denote the subspace , and we denote by the orthogonal projection onto the space .
We use Definition 5 for span programs because it applies to both binary and non-binary inputs (). The definitions in Refs. [BR12a, CMB18] only apply to binary inputs ().
Definition 6** (Positive and Negative Witness).**
Given a span program on and , then is a positive witness for in if . If a positive witness exists for , we define the positive witness size of in as
[TABLE]
Then is an optimal positive witness for if and .
We say is a negative witness for in if and . If a negative witness exists for , we define the negative witness size of in as
[TABLE]
Then is an optimal negative witness for if , and .
Each has a positive or negative witness (but not both).
We say that a span program decides the function if each has a positive witness in , and each has a negative witness in . Then we denote the maximum positive and negative witness of on as
[TABLE]
Given a span program that decides a function, one can use it to design an algorithm that evaluates that function with query complexity that depends on and :
Theorem 7** ([Rei09, IJ19]).**
For and , let be a span program that decides . Then there is a quantum algorithm that for any , evaluates with bounded error, and uses queries to the oracle .
Not only can any span program that decides a function be used to create a quantum query algorithm that decides , but there is always a span program that creates an algorithm with asymptotically optimal query complexity [Rei09, Rei11]. Thus when designing quantum query algorithms for function decision problems, it is sufficient to consider only span programs.
Given a function , we denote the negation of the as , where . We use a transformation that takes a span program that decides a function and creates a span program that decides , while preserving witness sizes for each input . While such a transformation is known for Boolean span programs [Rei09], in Lemma 8 we show it exists for the span programs of Definition 5. The proof is in Appendix A.
Lemma 8**.**
Given a span program on that decides a function for , there is a span program that decides such that and .
2.3 State Conversion
In the state conversion problem, for , we are given descriptions of sets of pure states and . Then given access to an oracle for , and the quantum state , the goal is to create a state such that . We call the error of the state conversion procedure.
Let and be the Gram matrices of the sets and , respectively, so and are matrices whose rows and columns are indexed by the elements of such that and
We now define the analogue of a span program for the problem of state conversion, which we call a converting vector set:
Definition 9** (Converting vector set).**
Let , where for some . Then we say converts to if it satisfies
[TABLE]
We call such a a converting vector set from to .
Then the query complexity of state conversion is characterized as follows:
Theorem 10** ([LMR*+*11]).**
Given and a converting vector set from to , then there is quantum algorithm that on every input converts to with error and has query complexity
[TABLE]
Analogous to witness sizes in span programs, we define a notion of witness sizes for converting vector sets:
Definition 11** (Converting vector set witness sizes).**
Given a converting vector set , we define the witness sizes of as
[TABLE]
By scaling the converting vector sets, we obtain the following two results: a rephrasing of Theorem 10 in terms of witness sizes, and a transformation that exchanges positive and negative witness sizes. Both proofs can be found in Appendix A.
Corollary 12**.**
Let be a converting vector set from to with maximum positive and negative witness sizes and . Then there is quantum algorithm that on every input converts to with error and uses queries to .
Lemma 13**.**
If converts to , then there is a complementary converting vector set that also converts to , such that for all and for all , we have , and ; the complement exchanges the values of the positive and negative witness sizes.
3 Function Decision
Our main result for function decision (deciding if or ) is the following:
Theorem 14**.**
For , let be a span program that decides . Then there is a quantum algorithm such that for any and
The algorithm returns with probability . 2. 2.
On input , if the algorithm uses queries on average, and if it uses queries on average. 3. 3.
The worst-case (not average) query complexity is .
Comparing Theorem 14 to Theorem 7 (which assumes constant error ), we see that in the worst case, with an input where or , the average and worst-case performance of our algorithm is the same as the standard span program algorithm. However, when we have an instance with a smaller witness size, then our algorithm has improved average query complexity, without having to know about the witness size ahead of time.
We can also compare the query complexity our algorithm, which does not require a promise, to the original span program algorithm when that algorithm is additionally given a promise. If the original span program algorithm is promised that, if , then , then the bounded error query complexity of the original algorithm on this input would be by Theorem 7. On the other hand, without needing to know ahead of time that , our algorithm would use queries on this input on average, and in fact would do better than this if .
A key routine in our algorithm is to apply Phase Checking to a unitary , which we describe now. We follow notation similar to that in [BR12a]. In particular, for a span program on , let and where is orthogonal to and . Then we define as
[TABLE]
Let be the orthogonal projection onto the kernel of , and let be the projection onto Finally, let
[TABLE]
Note that can be implemented with two applications of [IJ19, Lemma 3.1], and can be implemented without any applications of . Queries are only made in our algorithm when we apply . To analyze the query complexity, we will track the number of applications of
The time complexity will also scale with the number of applications of We denote the time required to implement by , which is an input independent quantity. Since our query complexity analysis counts the number of applications of , and the runtime scales with the number of applications of , to bound the average time complexity of our algorithms, simply determine and multiply this by the query complexity.
The following lemma gives us guarantees about the results of Phase Checking of applied to the state :
Lemma 15**.**
Let the span program decide the function , and let . Then for Phase Checking with unitary on the state with error and precision ,
If , and , then the probability of measuring the register to be in the state is at least . 2. 2.
If and , then the probability of measuring the register in the state is at most
Note that if and , Lemma 15 makes no claims about the output.
To prove Lemma 15, we use techniques from the Boolean function decision algorithm of Belovs and Reichardt [BR12a, Section 5.2] and Cade et al. [CMB18, Section C.2] and the dual adversary algorithm of Reichardt [Rei11, Algorithm 1]. Our approach differs from these previous algorithms in the addition of a parameter that controls the precision of our phase estimation. This approach has not (to the best of our knowledge)333Jeffery and Ito [IJ19] also design a function decision algorithm for non-Boolean span programs, but it has a few differences from our approach and from that of Refs. [BR12a, CMB18]; for example, the initial state of Jeffery and Ito’s algorithm might require significant time to prepare, while our initial state can be prepared in time. been applied to the non-Boolean span program formulation of Definition 5, so while not surprising that it works in this setting, our analysis in Appendix B may be of independent interest for other applications.
We use Alg. 1 to prove Theorem 14.
High Level Idea of Alg. 1 The algorithm makes use of a test that, when successful, tells us that . However, the test is one-sided, in that failing the test does not mean that , but instead is inconclusive. We repeatedly run this test for both functions and while increasing the queries used at each round. If we see an inconclusive result for both and at an intermediate round, we can conclude neither nor , so we repeat the subroutine with larger queries. Once we reach a critical round that depends on (if ) or on (if ), the probability of an inconclusive result becomes unlikely from that critical round onward.
We stop iterating when the test returns a conclusive result, or when we have passed the critical round for all . While it is unlikely that we get an inconclusive result at the final round, we return 1 if this happens.
More specifically, we use Phase Checking to perform our one-sided test; we iteratively run Phase Checking on in Alg. 1 to check if , and on in Alg. 1 to check if , increasing the parameters and by a factor of 2 at each round. At some round, which we label , becomes at least or becomes at least (by Lemma 13), depending on whether or , respectively. Using Lemma 15 Item 1, from round onward we have a high probability of measuring the register to be in the state at Alg. 1 if or at Alg. 1 if , causing the algorithm to terminate and output the correct result. Item 2 of Lemma 15 ensures that at all rounds we have a low probability of outputting the incorrect result. We don’t need to know ahead of time; the behavior of the algorithm will change on its own, giving us a smaller average query complexity for instances with smaller witness size, the easier instances.
The number of queries used by Phase Checking increases by a factor of 2 at each round of the for loop. If , the number of repetitions of Phase Checking at round , were a constant , then using a geometric series, we would find that the query complexity would be asymptotically equal to the queries used by Phase Checking in the round at which the algorithm terminates, times . At round , the round at which termination is most likely, the query complexity of Phase Checking is or (depending on if or ) by Lemma 1. We show the probability of continuing to additional rounds after is exponentially decreasing with each extra round, so we find an average query complexity of or on input . Since there can be rounds in Alg. 1 the worst case, this suggests that each round should have a probability of error bounded by , which we can accomplish through repetition and majority voting, but which requires , adding an extra log factor to our query complexity.
To mitigate this effect, we modify the number of repetitions (given by in Alg. 1) over the course of the algorithm so that we have a lower probability of error (more repetitions) at earlier rounds, and a higher probability (fewer repetitions) at later rounds. This requires additional queries at the earlier rounds, but since these rounds are cheaper to begin with, we can spend some extra queries to reduce our error. As a result, instead of a log factor that depends only on , we end up with a log factor that also decreases with increasing witness size, so when or , our average query complexity is at most without any additional log factors.
Proof of Theorem 14.
We analyze Alg. 1.
We first prove that the total success probability is at least . Consider the case that . Let , which is the round at which we will show our probability of exiting the for loop becomes large. The total number of possible iterations is , which is at least . Let , so . Let denote the probability of continuing to the next round of the for loop at round , conditioned on reaching round , let be the probability of returning the wrong answer at round , conditioned on reaching round , and let be the probability of reaching the end of the for loop without terminating. (Since we return if we reach the end of the for loop without terminating, this event produces an error when .) The total probability of error is then
[TABLE]
We will use the probability tree diagram in Fig. 1(a) to help us analyze events and probabilities.
Since , is the probability of returning 1, which depends on the probability of measuring in Phase Checking of in Alg. 1 of Alg. 1. Since , we can use Item 2 of Lemma 15, to find that there is at most a probability of measuring at each repetition of Phase Checking. Using Hoeffding’s inequality [Hoe63], the probability of measuring outcome at least times and returning in Alg. 1 of Alg. 1 is at most . Therefore,
[TABLE]
which holds for all but in particular, gives us a bound on the first left branching of Fig. 1(a), corresponding to outputting a when .
When , we trivially bound the probability of continuing to the next round:
[TABLE]
When , we continue to the next round when we do not return 1 in Alg. 1 of Alg. 1 and then do not return 0 in Alg. 1, corresponding to the two right branchings of the diagram in Fig. 1(a). We upper bound the probability of the first event (first right branch in Fig. 1(a)) by
- To bound the probability of the second event, consider Phase Checking of in Alg. 1. Since , we have by Lemma 8. Also since by Lemma 8, we have . Thus, as we are performing Phase Checking with precision , we can use Item 1 of Lemma 15 with to conclude that the probability of measuring at a single repetition of Alg. 1 is at least . Using Hoeffding’s inequality [Hoe63], the probability of measuring more than times, and therefore returning 0, is at least . Thus the probability of not returning 0 in Alg. 1 is at most
[TABLE]
Therefore when , using the product rule, the probability of following both right branchings of Fig. 1(a) and continuing to the next iteration of the for loop is
[TABLE]
Finally, if we ever reach the end of the for loop without terminating, our algorithm returns 1, which is the wrong answer. This happens with probability
[TABLE]
using Eq. 11 for and Eq. 13 for .
Now we calculate the total probability of error. Plugging in Eq. 10, Eq. 11, Eq. 13, and Eq. 14 into Eq. 9, and splitting the first term of Eq. 9 into two parts to account for the different behavior of the algorithm before and after round , we get:
[TABLE]
Since , we have , which means the first sum in Eq. 15 is a geometric series, and is bounded by:
[TABLE]
where the final inequality arises from our choice of . Combining the second and third terms of Eq. 15, and upper bounding their ’s and ’s by , we get another geometric series that sums to less than :
[TABLE]
Thus, , and our success probability is at least .
Now we analyze the probability of error for and set . Then nearly identical analyses as in the case (and using Lemma 8 to relate witness sizes of and ) provide the bounds on probabilities of relevant events, corresponding to branchings in Fig. 1(b). By following the first right branching and then the next left branching in Fig. 1(b), we see the probability of error at round for is
[TABLE]
since by our choice of parameters, is always less than . Following the two right branchings in Fig. 1(b), the probability of continuing when is
[TABLE]
Thus the rest of the analysis is the same, and so we find that for or , the probability of success is at least .
Now we calculate the average query complexity on input , , given by
[TABLE]
Here, is the number of queries used by the algorithm up to and including round , and is the probability that we terminate at round .
The only time we make queries is in the Phase Checking subroutine. By Lemma 1, the number of queries required to run a single repetition of Phase Checking in the round is , since . Taking into account the repetitions of Phase Checking in the round, we find
[TABLE]
Now setting to be or depending on whether or [math], respectively, we can use our bounds on event probabilities from our error analysis to bound the relevant probabilities for average query complexity. When , we use the trivial bound . When , we use Eqs. 13 and 19 and our choice of to conclude that . For all , we use that Splitting up the sum in Eq. 20 into terms, for and , and using these bounds on along with Eq. 21, we have
[TABLE]
We use the following inequalities to simplify Eq. 22,
[TABLE]
and finally find that
[TABLE]
By our choice of , , and , on input when , the total query complexity is
[TABLE]
and when , the total average query complexity is
[TABLE]
and the worst case query complexity is
[TABLE]
where we have again used Eq. 23. ∎
3.1 Application to st-connectivity
As an example application of our algorithm, we analyze the query complexity of -connectivity on an -vertex graph. There is a span program such that for inputs where there is a path from to , where is the effective resistance from to on the subgraph induced by , and for inputs where there is not a path from to , , where is the effective capacitance between and [BR12a, JJKP18]. In an -vertex graph, the effective resistance is less than , and the effective capacitance is less than , so by Theorem 14, we can determine with bounded error that there is a path on input with average queries or that there is not a path with average queries. In the worst case, when or , we recover the worst-case query complexity of of the original span program algorithm.
The effective resistance is at most the shortest path between two vertices, and the effective capacitance is at most the smallest cut between two vertices. Thus our algorithm determines whether or not there is a path from to with queries on average if there is a path of length , and if there is no path, the algorithm uses queries on average, where is the size of the smallest cut between and . Importantly, one does not need to know bounds on or ahead of time to achieve this query complexity.
The analysis of the other examples listed in Section 1 is similar.
4 State Conversion Algorithm
Our main result for state conversion is the following:
Theorem 16**.**
Let be a converting vector set from to . Then there is a quantum algorithm such that for any , any failure probability , and any error ,
With probability , on input the algorithm algorithm converts to with error . 2. 2.
On input , if , the average query complexity is
[TABLE]
If , the average query complexity is
[TABLE]
Comparing Theorem 16 with Corollary 12, and considering the case of , we see that in the worst case, when we have an input where or the average query complexity of our algorithm is asymptotically the same as the standard state conversion algorithm. However, when we have an instance with a smaller value of , then our algorithm has improved query complexity, without knowing anything about the input witness size ahead of time.
Our algorithm has worse scaling in than Corollary 12, so our algorithm will be most useful when can be constant. One could also do a hybrid approach: initially run our algorithm and then switch to that of Corollary 12.
The problem of state conversion is a more general problem than function decision, and it can be used to solve the function decision problem. However, because of the worse scaling with in Theorem 16, we considered function decision separately (see Section 3).
We use Alg. 2 to prove Theorem 16. We now describe a key unitary, , that appears in the algorithm. In the following, we use most of the notation conventions of Ref. [LMR*+*11]. Let and be unit vectors in as defined in [LMR*+*11, Fact 2.4], such that
[TABLE]
For let where be a converting vector set from to . For all , the states and are in the Hilbert space . Then for all , define as
[TABLE]
where is analogous to the parameter in Eq. 7. We will choose to achieve a desired accuracy of in our state conversion procedure. Set to equal the projection onto the orthogonal complement of the span of the vectors , and set . Finally, we set . The reflection can be implemented with two applications of [LMR*+*11], and the reflection is independent of and so requires no queries.
As with function decision, the time and query complexity of the algorithm is dominated by the number of applications of . If is the time required to implement , then the time complexity of our algorithm is simply the query complexity times .
High level idea of Alg. 2: when we apply Phase Reflection of (for in Alg. 2 to , we want to pick up a phase and to pick up a phase. (Note that in this case, half of the amplitude of the state is picking up a phase, and half is picking up a phase.) If this were to happen perfectly, we would have the desired state . We show that if is larger than a critical value that depends on the witness size of the input , then in Alg. 2, we will mostly pick up the desired phase. However, we don’t know ahead of time how large should be. To determine this, we implement the Probing Stage (Lines 1-9), which uses Amplitude Estimation of a Phase Checking subroutine to test exponentially increasing values of .
We use the following two Lemmas (Lemma 17 and Lemma 18) to analyze Alg. 2 and prove Theorem 16:
Lemma 17**.**
For a converting vector set that coverts to , and Phase Checking of done with accuracy and precision , then
If , then 2. 2.
If , then and .
Lemma 17 Item 2 ensures that the part of the state mostly picks up a phase when we apply Phase Reflection regardless of the value of , and Lemma 17 Item 1 ensures that when is large enough, the part of the state mostly picks up a phase. Lemma 17 plays a similar role in state conversion to Lemma 15 in function decision. It shows us that the behavior of the algorithm changes at some point when is large enough, without our having to know ahead of time (Item 1) but it also is used to show that we don’t terminate early when we shouldn’t, leading to an incorrect outcome (Item 2).
Proof of Lemma 17.
Throughout this proof, and are shorthand for and , with Phase Checking done to precision and accuracy .
Part 1: We first prove that , which by Lemma 1 gives us a bound on . Following [LMR*+*11, Claim 4.4], we consider the state
[TABLE]
where is from Eq. 31. Note that for for all , because , and also from the constraints of Eq. 4, we have
[TABLE]
Because is orthogonal to all of the , we have . Also, since and for every . Thus .
Note
[TABLE]
because of our assumption that . Also, , so
[TABLE]
Then by Lemma 1, we have , so
[TABLE]
Part 2: Let , so and . Applying Lemma 4, we have
[TABLE]
Now
[TABLE]
Combining Eqs. 38 and 39, and setting , we have that
[TABLE]
where we have used our assumption from the statement of the lemma that .
We next bound Inserting the identity operator for , we have
[TABLE]
where the second line comes from the triangle inequality and the fact that a projector acting on a vector cannot increase its norm. The first term in the final line comes from Eq. 40, and the second term comes Lemma 1. ∎
The following lemma, Lemma 18, tells us that when we break out of the Probing Stage due to a successful Amplitude Estimation in Alg. 2, we will convert to with appropriate error in the State Conversion Stage in Alg. 2, regardless of the value of (Eq. 45 in Lemma 18). However, Lemma 18 also tells us that once , then if Amplitude Estimation does not fail, we will exit the Probing Stage (Item 2 in Lemma 18). Together Eq. 45 and Item 2 ensure that once is large enough, the algorithm will be very likely to terminate and correctly produce the output state, but before is large enough, if there is some additional structure in the converting vector set that causes our Probing Stage to end early (when ), we will still have a successful result.
Lemma 18**.**
For a converting vector set that converts to , and Phase Checking and Phase Reflection of done with accuracy and precision for , and
If
[TABLE]
then
[TABLE] 2. 2.
If then .
Proof.
For the rest of the proof, we will use , , and as shorthand for , , and respectively.
Part 1: We have
[TABLE]
In the first term of Eq. 46, we can replace with (as described above Lemma 2), and we can insert to get
[TABLE]
where we have used the fact that and are orthogonal.
To bound , we start from our assumption that . Writing in terms of and , and using the triangle inequality, we have
[TABLE]
From Lemma 17 Item 2 , we have , so plugging into Eq. 48, we have
[TABLE]
Rearranging, we find:
[TABLE]
Since , we have
[TABLE]
Plugging back into Eq. 47, we find
[TABLE]
In the second term of Eq. 46, we again replace with and replace with to get
[TABLE]
by Lemma 17 Item 2, where we have used our assumption that .
Combining Eqs. 52 and 53, and plugging into into Eq. 46 and using that , we have
[TABLE]
Part 2: We analyze Using the triangle inequality, we have
[TABLE]
The first term we bound using Lemma 17 Item 1 and the second with Lemma 17 Item 2 to give us
[TABLE]
Squaring both sides and using a series expansion, we find
[TABLE]
∎
With Lemma 17 and Lemma 18, we can now proceed to the proof of Theorem 16:
Proof of Theorem 16.
We analyze Alg. 2. Note that the norm between two quantum states is at most , so we may assume and hence
First we show that the probability of returning a state such that is at most . We first analyze the case that . Let and .
Notice that once , we have , so by Lemma 18 Item 2 we have . Thus when we do Amplitude Estimation in Alg. 2 of Alg. 2 to additive error , with probability we will find the probability of outcome will be at least , causing us to continue to the State Conversion Stage. Furthermore, by combining Lemma 18 Eq. 45 and Item 2, our algorithm is guaranteed to output the target state within error regardless of an error in Amplitude Estimation. Therefore, the algorithm can only return a wrong state before round , and only if Amplitude Estimation fails. Thus, we calculate the probability of error as:
[TABLE]
where is the probability of continuing to the next round of the for loop at round , and is the probability of a failure of Amplitude Estimation at round , both conditioned on reaching round . We upper bound by 1 and by , as is the probability of Amplitude Estimation failure in Alg. 2, and we do two rounds (for and ). This then gives us:
[TABLE]
where we have used our choice of and that . Thus the probability of error is bounded by .
Now we analyze the average query complexity. Let be the query complexity of the algorithm when it exits the Probing Stage at round . Then the average query complexity on input is
[TABLE]
where is the probability of terminating at round .
At the th round of the Probing Stage, we implement Phase Checking with precision and accuracy , which uses queries for a single iteration. By Lemma 3, we use applications of Phase Checking inside the Iterative Amplitude Estimation subroutine to reach success probability of at least with error . Therefore,
[TABLE]
where the second term in the first line is the query complexity of the State Conversion Stage, so the complexity is dominated by the Probing Stage.
We divide the analysis into two parts: and . When , we use the trivial bound . Thus, the contribution to the average query complexity from rounds with is at most:
[TABLE]
where we have used the following inequality twice:
[TABLE]
For from to , as discussed below Eq. 57, Amplitude Estimation in Line 8 should produce an estimate that triggers breaking out of the Probing Stage at Line 9. Thus the probability of continuing to the next iteration depends on Amplitude Estimation failing, which happens with probability , since . Using , we thus have
[TABLE]
The contribution to the average query complexity for rounds after is therefore
[TABLE]
where we have used Eq. 63 and Eq. 24.
Combining Eqs. 62 and 4 and replacing with , the average query complexity of the algorithm on input is
[TABLE]
When , using the same analysis but with and applying Lemma 8, we find
[TABLE]
∎
4.1 Function Evaluation with Fast Verification
The state conversion algorithm can be used to evaluate a discrete function for on input by converting from to and then measuring in the standard basis to learn . When the correctness of can be verified with an additional constant number of queries, we can modify our state conversion algorithm to remove the Probing Stage, and instead use the correctness verification of the output state as a test of whether the algorithm is complete. In this case, we can remove a log factor from the complexity:
Theorem 19**.**
For a function , such that can be verified without error using at most constant additional queries to , given a converting vector set from to and , then there is a quantum algorithm that correctly evaluates with probability at least and uses
[TABLE]
average queries on input
While removing a log factor might seem inconsequential, it yields an exponential quantum advantage in the next section for some applications, as opposed to only a superpolynomial advantage.
Proof of Theorem 19.
We analyze Alg. 3, which is similar to Alg. 2, but with the Probing Stage replaced by a post-State Conversion verification procedure.
We first analyze the case that . From Lemma 18, we have that when , then the output state of Line 7 of Alg. 3 satisfies
[TABLE]
This gives us
[TABLE]
Taking the square of both sides and using that , we have
[TABLE]
Since is a standard basis state, if we measure in the standard basis, this implies that probability that we measure the second register to be is at least
Once we measure , we can verify it with certainty using constant additional queries. Thus, our success probability is at least at a single round when (which we only reach if we haven’t already correctly evaluated ), and so our overall probability of success must be at least (from Line 1 of Alg. 3). This is because further rounds (if they happen) will only increase our probability of success.
To calculate the average query complexity, we note that the round uses
[TABLE]
queries, where the is from the verification step, which we henceforward absorb into the big-Oh notation.
We make a worst case assumption that the probability of measuring outcome in a round when , or equivalently, at a round when , is 0, so these rounds contribute
[TABLE]
queries to the average query complexity, where in the last equality, we’ve replaced with .
At each additional round for , we have a probability of successfully returning , conditioned on reaching that round, and probability of continuing to the next round. This gives us an average query complexity on input of
[TABLE]
By our assumption that , the summation is bounded by a constant. Thus the average query complexity on input is
[TABLE]
When , we get the same expression except with replaced by which by Lemma 13 gives us the claimed query complexity. ∎
4.2 Quantum Advantages for Decision Trees with Advice
Montanaro showed that when searching for a single marked item, if there is a power law distribution on the location of the item, then a quantum algorithm can achieve a (super)exponential speed-up in average query complexity over the best classical algorithm [Mon10]. He called this “searching with advice,” as in order to achieve the best separations between quantum and classical performance, the algorithm had to know an ordering of the inputs such that the probability of finding the marked item was non-increasing, the “advice.”
In this section, we generalize Montanaro’s result to decision tree algorithms, and use this generalization to prove a superpolynomial and exponential speed-up for several additional search problems. We use a decision tree construction similar to that of Beigi and Taghavi [BT20].
A classical, deterministic query algorithm that evaluates for is given access to an oracle , for , and uses a single query to learn , the bit of We can describe the sequence of queries this classical algorithm makes as a directed tree , a decision tree, with vertex set and directed edge set . Each non-leaf vertex of is associated with an index , which is the index of that is queried when the algorithm reaches that vertex. The algorithm follows the edge labeled by (the query result) from to another vertex in . Each leaf is labelled by an element of , which is the value that the algorithm outputs if it reaches that leaf. Let be the sequence of edges in that are followed on input when queries are made starting from the root of . We say that decides if the leaf node on is labelled by , for all .
For a non-leaf vertex , each edge is labeled by a subset of , that we denote . Then if a vertex is visited in , the algorithm chooses to follow the edge to vertex , if We require that for all edges leaving vertex form a partition of , so that there is always exactly one edge that the algorithm can choose to follow based on the result of the query at vertex .
To create a quantum algorithm from such a decision tree , we label each edge with a weight and a color , such that all edges coming out of a vertex with the same color have the same weight. There must be exactly one edge leaving each non-leaf vertex that is black, and the rest must be red. We denote by the weight of the black edge leaving , and the weight of any red edge(s) leaving . If there are no red edges leaving , we set (In Ref. [BT20], the red and black weights are the same throughout the entire tree, instead of being allowed to depend on .) Using these weights we design a converting vector set to decide :
Lemma 20**.**
Given a decision tree that decides a function , for , with weights for each edge , then there is a converting vector set that on input converts to such that
[TABLE]
Proof.
In this proof and , with double subscripts, refer to converting vector sets, and , with single or no subscripts refer to vertices. We use essentially the same construction as in Ref. [BT20], but with a slightly different analysis because of our generalization to weights that can change throughout the tree.
We will make use of the unit vectors and , defined in [BT20], which are scaled versions of the vectors in Eq. 31, which have the properties that and .
First note that we can assume that on any input , for any index , there is at most a single vertex on in at which is queried. Otherwise the tree would query the same index twice, which would be a non-optimal tree. The we define a converting vector set on as follows
[TABLE]
and
[TABLE]
From Definition 9, Eq. 4, we want that
[TABLE]
For evaluating a discrete function , we have , and , so
Now if , then because , we have , so
, as desired.
If , then there must be some vertex in the decision tree at which and diverge. Let’s call this vertex , and assume that , the index of the input queried at vertex , is . Let be the edge on and be the edge on . This means that , and and since and are part of a partition, this implies Then if , we must have , while if , we can have . In either case, we see from Eqs. 77 and 78 that
[TABLE]
Now for all other with , we have , which we can prove by looking at the following cases:
- •
There is no vertex in where is queried for or , which results in or , and so .
- •
The index is queried for both and before their paths in diverge, at a vertex where the paths for both and then travel to a vertex , in which case, , since .
- •
The index is queried for both and after their paths in diverge, at a vertex for and a vertex for , in which case , since .
Putting this all together for and , we have
[TABLE]
Now to calculate the positive and negative witness sizes. For the positive witness size, we have
[TABLE]
where in the second line, we have used Eq. 77 and that will query each index at most once, according to the vertices that are encountered in , and in the final line, we have used that
For the negative witness size, note that again for input , will query each index of at most once, according to the vertices that are encountered in . Then if index of is queried at vertex , where , and then
[TABLE]
while if , then
[TABLE]
Thus
[TABLE]
∎
In Theorem 21, we use Lemma 20 to derive average quantum and classical query separations based on classical decision trees.
Theorem 21**.**
If is a decision tree that decides for , with optimal average classical query complexity for the distribution , and has a coloring such that there are at most red edges on any path from the root to a leaf, then the average quantum query complexity of deciding with bounded error is
[TABLE]
If it is possible to verify a potential output as correctly being using constant queries, then the average quantum query complexity of deciding with bounded error is
[TABLE]
The average classical query complexity of deciding with bounded error is
[TABLE]
Proof.
The average classical query complexity comes from the fact that on input , which occurs with probability , the algorithm uses queries, since each edge on the path of the decision tree corresponds to a single additional query. By assumption, is optimal for the distribution , giving the complexity as in Eq. 88.
For the quantum algorithm, we will assign weights to each edge in , and then use Lemma 20 to create and analyze a state conversion algorithm. Then we will then apply Theorem 16 and Theorem 19 to achieve better complexity on easier inputs.
For each black edge in let . For each red edge , let , where is the number of edges on the path in from the root to , including . Let be the converting vector set from Lemma 20 that converts to , based on .
We first analyze . By Lemma 20,
[TABLE]
where in the second-to-last line, we’ve used that the total number of black or red edges in the path is . In the last line, we’ve used that the number of red edges on any path is at most . This implies that
Now to analyze . From Lemma 20,
[TABLE]
Now applying Theorem 16 with and gives us a bounded error algorithm with an average query complexity of on input . On average over , we obtain an average query complexity of
When there is a way to verify using a constant queries, we can apply Theorem 19 with to give us a bounded error algorithm with an average query complexity of on input . On average over , we obtain an average query complexity of ∎
We now use Theorem 21 to show an average quantum advantage for two problems related to searching: searching for marked items in a list and searching for the first marked items in a list:
Theorem 22**.**
For the problem of finding bits with value in an -bit string, there are distributions for which there are exponential (when ) and superpolynomial (when ) advantages in average quantum query complexity over average classical query complexity. For the problem of finding the first -valued bits in an -bit string, there is a distribution for which there is a superpolynomial (when ) advantage in average quantum query complexity over average classical query complexity.
The proof is based on a classical decision tree that checks the bits of the string in order until -valued bits are found. The tree for is shown in Fig. 2. Each time a -valued bit is found, the edge that the algorithm traverses is colored red. Then , so Theorem 21 tells us the average query complexity will be small when the items occur early in the list, resulting in a short path for that input. We combine this idea with a particular a power-law distribution that Montanaro also uses [Mon10]. This power-law distribution is tailored to allow a quantum algorithm, which has at most a quadratic advantage on any particular input, but which only uses constant queries on the easiest inputs, to achieve an exponential/superpolynomial advantage overall on average.
Proof of Theorem 22.
We first analyze the case of finding any -valued bits. Let , for and , such that iff contains exactly bits with value , and where are the indices of the bits of that have value .
We assume the distribution on inputs is such that if the values of the first bits of are known, the probability of finding a -valued bit among the remaining bits is non-increasing with increasing index. The probability of finding the -valued bit at position is , and is non-increasing in .
Because the probability of finding ’s is non-increasing with increasing bit position, even conditioned on knowing some of the the initial bit values, the optimal strategy for a classical algorithm is to query the bits of the string in order until bits with value are found, at which point the algorithm returns the location of the bits with value . This algorithm corresponds to a decision tree where , where is the position of the Then the average classical query complexity is
We label an edge of this tree as red whenever ; that is, edges that are traversed when a -valued bit is found are colored red. Then
For this problem, one can verify whether an output of the algorithm is correct using an additional queries; if the output contains indices, query those indices to ensure there is a at each position, in which case, one knows with certainty that the output is correct. If the tested output does not contain indices, or if there is not a at one of the indices, one knows with certainty that the output is incorrect.
Then by Theorem 21, the average quantum query complexity is
[TABLE]
For the distribution , with , and , Montanaro shows the following [Mon10, Prop. 2.5]:
[TABLE]
Now suppose we have the distribution . Then
[TABLE]
where in the last line, we’ve used Eq. 94 and the fact that Thus the average quantum query complexity is
[TABLE]
We do a similar analysis for the classical query complexity:
[TABLE]
where we have again used Eq. 94 and the fact that
Thus, for , we find a superpolynomial improvement: the average quantum query complexity is while the average classical query complexity is , for . For , we have an exponential improvement, as the average quantum query complexity is compared to the classical , , for .
Now we consider the case of finding the first bits with value . Let where where is the smallest index such that . We assume the distribution on inputs is such that the probability of finding the -valued bit at position is and the optimal classical algorithm is to query the bits in order and return the indices where ’s were found.
This algorithm corresponds to a decision tree where , where is the position of the in the string.
Then the proof proceeds exactly as in the case of finding any elements, except in this case we can not verify using constant queries whether the output is correct. Thus we have that the average classical query complexity is and the average quantum query complexity is
∎
Acknowledgments
We thank Stacey Jeffery for valuable discussions, especially for her preliminary notes on span program negation, and several past referees for insightful suggestions.
Funding
All authors were supported by the U.S. Army Research Office under Grant Number W911NF-20-1-0327. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the Army Research Office or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein.
Appendix A Complements of Span Programs and Converting Vector Sets
We first prove that, given a span program that decides , we can create a span program that decides while preserving witnesses sizes for each .
See 8
Proof.
We first define , starting from :
[TABLE]
where is the orthogonal complement of We define , and and . Then
[TABLE]
Let be a vector that is orthogonal to and , and define and Finally, set
[TABLE]
where is the projection onto the kernel of , is the projection onto , and
[TABLE]
Let be an input with , so has a positive witness in . We will show is a negative witness for in . Note , and also,
[TABLE]
where in the second line, we have used that since projects onto the subspace, and because is orthogonal to . The final line follows from [IJ19, Definition 2.12], which showed that every positive witness can be written as , where is in the kernel of and is orthogonal to the kernel of .
Then , because , and is orthogonal to so is a negative witness for in . Also, , so the witness size of this negative witness in is the same as the corresponding positive witness in This implies
Next, we show that . Let be any negative witness for in . Then since , and we must have , must have the form , where . Then
[TABLE]
where is in the kernel of . By the definition of , this implies that . Next, for to be a valid negative witness for in , we must have that , which implies that , and so . Thus is a positive witness for in , and so , implying .
If , there is a negative witness for in . Consider . Then
[TABLE]
where in the second line, we have used that is orthogonal to the kernel of Also, , so . This means is a positive witness for in Also, , so the witness size of this positive witness in is the same as the corresponding negative witness in This implies
Now to show . Let be a positive witness for in Then since , we have
[TABLE]
Since , we must have , which implies for some . Plugging this into Eq. 113, and using Eq. 102, we have
[TABLE]
Thus we have . Since is a positive witness for , , which implies that or equivalently, . Thus we see that must in fact be a negative witness for in . Therefore, .
Finally, since if has a positive witness in , we have shown it has a negative witness in , and if has a negative witness in , we have shown it has a negative witness in . Thus does indeed decide ∎
The next two proofs deal with manipulating converting vector sets. See 12
Proof.
Let . We scale the vectors in to create the converting vector set with and . The converting vector set still satisfies the constraints of Eq. 4, but now has maximum witness sizes , so applying Theorem 10 gives the result. ∎
Next we prove that given a converting vector set, we can design another converting vectors set that converts between the same states, but with positive and negative witness sizes exchanged.
See 13
Proof.
Let . For all and , define
[TABLE]
Note . Since satisfies the constraints of Eq. 4,
[TABLE]
where we have used the fact that and are Hermitian.
Thus the vectors satisfy the same constraints of Eq. 4, and thus produce the same have value in Eq. 5. However, now , and . ∎
Appendix B Proofs for the Function Decision Algorithm
See 15
Proof.
The proof is similar to Belovs and Reichardt [BR12a, Section 5.2] and Cade et al. [CMB18, Section C.2] and the dual adversary algorithm of Reichardt [Rei11, Algorithm 1]
Part 1: Since , there is an positive optimal witness for . Then set to be Then , but also, is in the kernel of , because . Thus , and so ; is a 1-valued eigenvector of .
We perform Phase Checking on the state , so the probability of measuring the state in the phase register is at least (by Lemma 1), the overlap of and (normalized) . This is
[TABLE]
Using our assumption that , and a Taylor series expansion for , the probability that we measure the state in the phase register is at least .
Part 2: Since , there is an optimal negative witness for , and we set to be . By Definition 6, , so Again, from Definition 6, , so we have
Then when we perform Phase Checking of the unitary to some precision with error on state , by Lemma 1, we will measure in the phase register with probability at most
[TABLE]
Now is orthogonal to the kernel of . (To see this, note that if is in the kernel of , then .) Applying Lemma 4, and setting , we have
[TABLE]
To bound , we observe that
[TABLE]
where we have used our assumption that .
Plugging Eqs. 121 and 122 into Eq. 120, we find that the probability of measuring in the phase register is at most , as claimed. ∎
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[Ad W 01] Andris Ambainis and Ronald de Wolf. Average-case quantum query complexity. Journal of Physics A: Mathematical and General , 34(35):6741, 2001.
- 2[Aha 99] Dorit Aharonov. Quantum Computation. Annual Reviews of Computational Physics VI , pages 259–346, 1999. doi:10.1142/9789812815569_0007 . · doi ↗
- 3[BBHT 98] Michel Boyer, Gilles Brassard, Peter Høyer, and Alain Tapp. Tight Bounds on Quantum Searching. Fortschritte der Physik , 46(4-5):493–505, 1998. doi:10.1002/(SICI)1521-3978(199806)46:4/5<493::AID-PROP 493>3.0.CO;2-P . · doi ↗
- 4[Bel 12] Aleksandrs Belovs. Span programs for functions with constant-sized 1-certificates: Extended abstract. In Proceedings of the Forty-Fourth Annual ACM Symposium on Theory of Computing , STOC ’12, pages 77–84, 2012. doi:10.1145/2213977.2213985 . · doi ↗
- 5[BHMT 00] Gilles Brassard, Peter Høyer, Michele Mosca, and Alain Tapp. Quantum Amplitude Amplification and Estimation. ar Xiv:quant-ph/0005055 , 2000. ar Xiv:quant-ph/0005055 .
- 6[BHT 98] Gilles Brassard, Peter Høyer, and Alain Tapp. Quantum counting. In Automata, Languages and Programming , pages 820–831, 1998. doi:10.1007/B Fb 0055105 . · doi ↗
- 7[BR 12a] Aleksandrs Belovs and Ben W. Reichardt. Span programs and quantum algorithms for st-connectivity and claw detection. Lecture Notes in Computer Science , 7501 LNCS:193–204, 2012. doi:10.1007/978-3-642-33090-2_18 . · doi ↗
- 8[BR 12b] Aleksandrs Belovs and Ben W. Reichardt. Span programs and quantum algorithms for st-Connectivity and claw detection. In Algorithms – ESA 2012 , pages 193–204, 2012.
