Processing math: 0%
We use cookies to improve your experience with our site.

Characterization of Exact One-Query Quantum Algorithms for Partial Boolean Functions

Ze-Kun Ye, Lv-Zhou Li

downloadPDF
叶泽坤, 李绿周. 关于部分布尔函数的一次查询精确量子算法的刻画[J]. 计算机科学技术学报, 2023, 38(6): 1423-1430. DOI: 10.1007/s11390-022-1361-0
引用本文: 叶泽坤, 李绿周. 关于部分布尔函数的一次查询精确量子算法的刻画[J]. 计算机科学技术学报, 2023, 38(6): 1423-1430. DOI: 10.1007/s11390-022-1361-0
Ye ZK, Li LZ. Characterization of exact one-query quantum algorithms for partial Boolean functions. JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY 38(6): 1423−1430 Nov. 2023. DOI: 10.1007/s11390-022-1361-0.
Citation: Ye ZK, Li LZ. Characterization of exact one-query quantum algorithms for partial Boolean functions. JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY 38(6): 1423−1430 Nov. 2023. DOI: 10.1007/s11390-022-1361-0.
叶泽坤, 李绿周. 关于部分布尔函数的一次查询精确量子算法的刻画[J]. 计算机科学技术学报, 2023, 38(6): 1423-1430. CSTR: 32374.14.s11390-022-1361-0
引用本文: 叶泽坤, 李绿周. 关于部分布尔函数的一次查询精确量子算法的刻画[J]. 计算机科学技术学报, 2023, 38(6): 1423-1430. CSTR: 32374.14.s11390-022-1361-0
Ye ZK, Li LZ. Characterization of exact one-query quantum algorithms for partial Boolean functions. JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY 38(6): 1423−1430 Nov. 2023. CSTR: 32374.14.s11390-022-1361-0.
Citation: Ye ZK, Li LZ. Characterization of exact one-query quantum algorithms for partial Boolean functions. JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY 38(6): 1423−1430 Nov. 2023. CSTR: 32374.14.s11390-022-1361-0.

关于部分布尔函数的一次查询精确量子算法的刻画

Characterization of Exact One-Query Quantum Algorithms for Partial Boolean Functions

Funds: This work was supported by the National Natural Science Foundation of China under Grant Nos. 61772565 and 62272492, the Guangdong Basic and Applied Basic Research Foundation under Grant No. 2020B1515020050, and the Key Research and Development Program of Guangdong Province of China under Grant No. 2018B030325001.
More Information
    Author Bio:

    Ze-Kun Ye received his B.S. degree in software engineering from Sun Yat-sen University, Guangzhou, in 2018. He is currently a Master student at School of Computer Science and Engineering, Sun Yat-sen University, Guangzhou. His research interests include quantum algorithms and query complexity

    Lv-Zhou Li is a professor at School of Computer Science and Engineering, Sun Yat-sen University, Guangzhou. He obtained his Ph.D. degree in computer science from Sun Yat-sen University, Guangzhou, in 2009. His researches focus on quantum computing models, algorithms, and complexity

    Corresponding author:

    Lv-Zhou Li: lilvzh@mail.sysu.edu.cn

  • 摘要: 1
    研究背景 

    量子计算是一种具有发展前景的新型计算模型,它在许多问题上展现出强大的计算能力。在量子计算领域,探索量子优势是一个核心的研究问题,而查询复杂性是比较量子和经典计算能力的一个有力工具。在量子算法的历史上,Deutsch算法和Deutsch­Jozsa算法是最早展示量子优势的算法,它们启发了研究人员对后续量子算法的构造和设计,在量子算法的发展历史上起了至关重要的作用。不同于其它的量子算法,Deutsch算法和 Deutsch­Jozsa算法有着如下特征:只做一次查询,并且确保百分之百返回正确的结果。我们把具有这种特征的量子算法称为一次查询精确量子算法。著名的 Bernstein­Vazirani 算法也是一个一次查询精确量子算法,它是 Deutsch­Jozsa 算法的一种推广。

    目的 

    一个自然的问题是:什么类型的问题可以被一次查询精确量子算法解决呢?对于完全布尔函数和对称部分布尔函数来说,这个问题已经被解决了。然而,对于一般的部分布尔函数,这仍然是一个公开问题。因此,本文针对一般部分布尔函数的一次查询精确量子算法的能力进行刻画。

    方法 

    首先,对于能够被一次查询量子算法精确计算的部分布尔函数,我们根据一次查询精确量子算法的特征,用一些等价的命题去描述这些部分布尔函数。然后,运用这些命题,我们去寻找一些新的部分函数实例,并对它们进行分析和讨论。

    结果 

    我们对一次查询精确量子算法针对部分布尔函数的计算能力进行了刻画。首先,我们给出了一些充分必要条件去描述那些能够被一次查询量子算法精确计算的部分布尔函数。其次,受这些条件的启发,我们发现了一些新的可以被一次查询量子算法精确计算的布尔函数实例。值得注意的是,在我们的工作之前,所有已知的可以被一次查询精确量子算法计算的函数都是对称函数,并且计算这些函数的算法本质上都是 Deutsch­Jozsa 算法。而本文发现的函数在一般情况下都是非对称的,且计算它们的算法不再是 Deutsch­Jozsa 算法。

    结论 

    我们对一次查询精确量子算法的计算能力进行了刻画,并且发现了一些新的可以被一次查询精确量子算法计算的非对称函数。注意到在本文之前,所有已知的能够被一次查询量子算法精确计算的布尔函数f都是对称的,并且可以被Deutsch­Jozsa 算法计算。与之相反,本文中构造的函数在通常情况下都是非对称的,并且需要新的算法去计算它们。此外,我们对这些新的函数的特征进行了讨论。在今后的研究中,我们希望找到这些函数的一些有趣的应用。本章的讨论将有助于继续讨论k次查询精确量子算法的能力。对于这个问题的探索不仅有利于加深我们对量子算法的理解,也能启发我们找到更多具有量子优势的问题。

    Abstract:

    The query model (or black-box model) has attracted much attention from the communities of both classical and quantum computing. Usually, quantum advantages are revealed by presenting a quantum algorithm that has a better query complexity than its classical counterpart. In the history of quantum algorithms, the Deutsch algorithm and the Deutsch-Jozsa algorithm play a fundamental role and both are exact one-query quantum algorithms. This leads us to consider the problem: what functions can be computed by exact one-query quantum algorithms? This problem has been addressed in the literature for total Boolean functions and symmetric partial Boolean functions, but is still open for general partial Boolean functions. Thus, in this paper, we continue to characterize the computational power of exact one-query quantum algorithms for general partial Boolean functions. First, we present several necessary and sufficient conditions for a partial Boolean function to be computed by exact one-query quantum algorithms. Second, inspired by these conditions, we discover some new representative functions that can be computed by exact one-query quantum algorithms but have an essential difference from the already known ones. Specially, it is worth pointing out that before our work, the known functions that can be computed by exact one-query quantum algorithms are all symmetric functions and the quantum algorithm used is essentially the Deutsch-Jozsa algorithm, whereas the functions discovered in this paper are generally asymmetric and new algorithms to compute these functions are required. Thus, this expands the class of functions that can be computed by exact one-query quantum algorithms.

  • The decision tree model has been well studied in classical computing, and focuses on problems such as: given a Boolean function f:{0,1}n{0,1}, how can we make as few queries as possible to the bits of x to output the value of f(x)? Quantum analog, called the Quantum Query model, has also attracted much attention in recent years[1]. The implementation procedure of a quantum query model is a quantum query algorithm, which can be roughly described as follows: it starts with a fixed state |ψ0 and then performs the sequence of operations {\boldsymbol{U}}_0, {\boldsymbol{O}}_x, {\boldsymbol{U}}_1, \ldots, {\boldsymbol{O}}_x, {\boldsymbol{U}}_t , where {\boldsymbol{U}}_i is a unitary operator for any i \in \{0, 1, \ldots, t\} that does not depend on the input x but the query oracle {\boldsymbol{O}}_x does. This leads to the final state |\psi_x\rangle= {\boldsymbol{U}}_t{\boldsymbol{O}}_x{\boldsymbol{U}}_{t-1}\ldots {\boldsymbol{U}}_1{\boldsymbol{O}}_x{\boldsymbol{U}}_0|\psi_0\rangle . The result is obtained by measuring the final state |\psi_x\rangle .

    The quantum query model can be discussed in two main settings: the exact setting and the bounded-error setting. A quantum query algorithm is said to compute a function f exactly, if its output equals f(x) with the probability of 1, for all inputs x. In this case, the algorithm is called an exact quantum algorithm. It is said to compute f with bounded errors, if its output equals f(x) with a probability not less than 2/3, for all inputs x. Roughly speaking, the query complexity of a function f is the number of queries that an optimal (classical or quantum) algorithm should make on the worst input to compute f. The classical deterministic query complexity of f is denoted by D(f) , and the quantum query complexity in the exact setting is denoted by Q_{\rm E}(f) . In this paper, we focus on quantum query algorithms in the exact setting[2-18], where quantum advantages are shown by comparing Q_{\rm E}(f) and D(f) .

    The Deutsch algorithm and the Deutsch-Jozsa algorithm are well known to be the first quantum algorithms and play a fundamental role in the history of quantum algorithms, as they exhibit the power of quantum computing for the first time and inspire the subsequent quantum algorithms. Different from many other quantum algorithms, the Deutsch algorithm and the Deutsch-Jozsa algorithm have the following characteristics: making only one query and returning the correct result with certainty. We call such a kind of quantum algorithms as exact one-query quantum algorithms. Now, a natural question is: what kind of problems can be solved by exact one-query quantum algorithms?

    Recently, the characterization of one-query quantum algorithms (that can make only one query) has received some attention[2, 1820]. Aaronson et al.[19] and Arunachalam et al.[20] presented a complete characterization of the Boolean functions that can be computed by a one-query quantum algorithm in the bounded-error setting, but their results do not apply to the exact setting. Chen et al.[2] considered the problem of what Boolean functions can be computed by exact one-query quantum algorithms, proving that a total Boolean function f:\{0, 1\}^n \rightarrow \{0, 1\} can be computed by an exact one-query quantum algorithm if and only if f(x)=x_{i_1} or f(x)=x_{i_1} \oplus x_{i_2} (up to isomorphism). However, this does not hold for partial Boolean functions. Note that it has been known that any symmetric partial Boolean function f has Q_{\rm E}(f) = 1 if and only if f can be computed by the Deutsch-Jozsa algorithm[18] (a Boolean function f is said to be symmetric, if f(x) is determined by the number of 1 in x for each input x). But, it is unclear for the asymmetric partial functions. Actually, to the best of our knowledge, before this paper, no asymmetric partial function has been discovered to be computed by exact one-query quantum algorithms.

    All the above motivates us to consider the following questions. 1) What partial Boolean functions can be computed by exact one-query quantum algorithms? 2) Does there exist any asymmetric partial Boolean function that can be computed by an exact one-query quantum algorithm? For simplicity, throughout the paper “a function with Q_{\rm E}(f) = 1 ” always means that the function can be computed by an exact one-query quantum algorithm.

    In this paper, we answer the first question by giving some necessary and sufficient conditions. Inspired by these conditions, we further answer the second question affirmatively, discovering some new representative functions with Q_{\rm E}(f) = 1 . These functions generalize the already known functions and fill a gap in the discussion of asymmetric functions with Q_{\rm E}(f) = 1 . Especially, while all the existing partial functions with Q_{\rm E}(f) = 1 are known to be symmetric and can be computed by the Deutsch-Jozsa algorithm, the functions discovered in this paper are generally asymmetric and new algorithms are required to compute these functions. Thus, this expands the class of functions that can be computed by exact one-query quantum algorithms.

    The remainder of this paper is organized as follows. Related work is given in Section 2. The query model and the problem we consider are given in Section 3. Some necessary and sufficient conditions are presented in Section 4 for a Boolean function to be exactly computed by a one-query quantum algorithm. The construction and the discussion of new functions are shown in Section 5. Finally, a conclusion is made in Section 6.

    For total Boolean functions, Beals et al.[21] showed that exact quantum query algorithms can only achieve polynomial speed-up over classical counterparts. At the same time, Ambainis et al.[4] proved that exact quantum algorithms have advantages for almost all Boolean functions. However, the biggest known gap between Q_{\rm E}(f) and D(f) had been only a factor of 2 for a long time, until a breakthrough result was obtained by Ambainis[3], showing the first total Boolean function for which exact quantum algorithms have a superlinear advantage over classical deterministic algorithms. Furthermore, Ambainis et al.[13] improved this result and presented a nearly quadratic separation.

    For partial functions (promise problems), exponential separations between exact quantum and classical deterministic query complexity were obtained in several papers[5, 6, 11, 16]. A typical example is the Deutsch-Jozsa algorithm[5]. Additionally, some work showed an exponential separation between quantum and randomized query complexity in the bound-error setting, such as Simon's algorithm[22] and Shor's algorithm[23]. Recently, Childs and Wang[24] proved that there is at most polynomial quantum speedup for (partial) graph property problems in the adjacency matrix model. On the contrary, in the adjacency list model for bounded-degree graphs, they exhibited a promise problem that shows an exponential separation between the randomized and quantum query complexities. Moreover, a series of work showed that for partial Boolean functions on N variables, the quantum query complexity could be exponentially smaller (or even less) than the randomized query complexity. Aaronson and Ambainis[25] proposed a promise problem called Forrelation and showed that this problem can be solved by using one quantum query with bounded errors, yet any randomized algorithm needs \widetilde{\Omega}(\sqrt{N}) queries. They also showed that this separation is essentially optimal: any t-query quantum algorithm can be simulated by an O(N^{1-1/2t}) -query randomized algorithm. Tal[26] gave an O(1) vs N^{2/3-\epsilon} separation between the quantum and randomized query complexities of partial Boolean functions by a variant of the k-fold Forrelation problem. Furthermore, for any positive integer k, Bansal et al.[27] and Sherstov et al.[28] obtained a partial function on N bits that has bounded-error quantum query complexity at most \lceil k/2 \rceil and randomized query complexity \tilde{\Omega}(N^{1-1/k}) . This separation of bounded-error quantum versus randomized query complexity is the largest possible, by the results of Aaronson and Ambainis[25].

    Note that recently Xu and Qiu[29] have independently carried out work on the similar topic as in this paper. Although we have not verified the proof of their main results, it is easy to see that our method and results are both different from their work. Compared with their work, we give different necessary and sufficient conditions to characterize the functions that can be computed by exact one-query quantum algorithms. Additionally, while another main object of [29] was to try to count the total number of partial Boolean functions with Q_{\rm E}(f) = 1 , here we aim at explicitly constructing some representative asymmetric functions with Q_{\rm E}(f) = 1 , with the hope to find some applications of these functions in future work. By the way, our proof is based on the general query oracle in Fig.1 defined by {\boldsymbol{O}}_x|i, b\rangle = |i, b \oplus x_i\rangle for i \in \{1,\ldots, n\} , b \in \{0, 1\} .

    Figure  1.  Quantum oracle

    By restricting b to some special values, for i \in \{1,\ldots, n\} , we have

    \left\{ \begin{split} & {\boldsymbol{O}}_x|i, -\rangle = (-1)^{x_i}|i, - \rangle,\\& {\boldsymbol{O}}_x|i, +\rangle = |i, + \rangle, \end{split} \right.

    where \left| - \right\rangle =(\left| 0 \right\rangle -\left| 1 \right\rangle )/{\sqrt{2}} and \left| + \right\rangle = (\left| 0 \right\rangle +\left| 1 \right\rangle )/{\sqrt{2}} . On the other hand, a simplified query oracle was considered in many papers, including [29], defined by

    {\boldsymbol{O}}_x^{\prime}|i\rangle= \left\{ {\begin{split}& {{{( - 1)}^{{x_i}}}|i\rangle ,}\quad {{\rm if}\ \ i \in \{ 1, \ldots ,n\}, }\\& {|0\rangle ,} \quad\qquad\quad{{\rm if} \ \ i = 0}. \end{split}} \right.

    In this paper, we consider a Boolean function f:\{0, 1\}^n \rightarrow \{0, 1\} . It is called a total function, if it is defined for all x\in\{0, 1\}^n . It is called a partial function, if it is defined on a subset D\subset \{0, 1\}^n . A Boolean function f is said to be symmetric, if f(x) is determined by the Hamming weight of x (i.e., the number of 1 in x), for each input x. In the following, we first give an introduction about the query models, including both classical and quantum cases, and then describe the problem to be discussed.

    Given a Boolean function f:\{0, 1\}^n \rightarrow \{0, 1\} , we suppose x=x_1x_2\ldots x_n \in \{0, 1\}^n is an input of f and we use x_i to denote its i-th bit. The goal of a query algorithm is to compute f(x) , given queries to the bits of x.

    In the classical case, the process of querying x is implemented by using the black box (called query oracle) shown in Fig.2. We want to compute f(x) by using the query oracles as few as possible. A classical deterministic algorithm for computing f can be described by a decision tree. For example, we want to use a classical deterministic algorithm to compute f(x)=x_1 \land (x_2 \vee x_3) . Then a decision tree T for that is depicted in Fig.3. Given an input x, the tree is evaluated as follows. It starts at the root. At each node, if it is a leaf, then its label is outputted as the result for f(x) ; otherwise, it queries its label variable x_i . If x_i = 0, then we recursively evaluate the left subtree. Otherwise, we recursively evaluate the right subtree. The query complexity of tree T denoted by D(T) is its depth, and we have D(T)=3 in this example. Given f, there exist different decision trees to compute it, and the query complexity of f, denoted by D(f) , is defined as D(f)=\min_TD(T).

    Figure  2.  Classical oracle.
    Figure  3.  A decision tree T for computing f(x)=x_1 \land (x_2 \vee x_3) .

    In the quantum case, the query oracle shown in Fig.1 is defined by {\boldsymbol{O}}_x|i, b\rangle = |i, b \oplus x_i\rangle for i \in\{1,\ldots, n\} , b \in \{0, 1\} . Thus, we are able to query more than one bit each time due to quantum superposition.

    A T-query quantum algorithm can be seen as a sequence of unitaries {\boldsymbol{U}}_T{\boldsymbol{O}}_x{\boldsymbol{U}}_{T-1}{\boldsymbol{O}}_x\ldots{\boldsymbol{O}}_x{\boldsymbol{U}}_0 , where {\boldsymbol{U}}_i is fixed unitary for any i \in \{0, 1, \ldots, t\} and {\boldsymbol{O}}_x depends on x. The process of computation is as follows:

    1) start with an initial state |\psi_{0}\rangle ;

    2) perform the operators {\boldsymbol{U}}_0, \;{\boldsymbol{O}}_x, \;{\boldsymbol{U}}_1, \;{\boldsymbol{O}}_x, \ldots, {\boldsymbol{U}}_T in sequence, and then obtain the state |\psi_x\rangle= {\boldsymbol{U}}_T{\boldsymbol{O}}_x{\boldsymbol{U}}_{T-1}{\boldsymbol{O}}_x\ldots{\boldsymbol{U}}_0|\psi_{0}\rangle ;

    3) measure |\psi_x\rangle with a 0-1 positive operator-valued measurement[30], and the result is regarded as the output of the algorithm.

    In the above, we use r(x) to denote the measurement result of |{\boldsymbol{\psi}}_x\rangle . Let P[{\cal{A}}] denote the probability that event {\cal{A}} occurs. If it satisfies:

    \forall x , P[ r(x)=f(x) ] \geqslant 1-\epsilon ,

    where \epsilon < {1}/{2} , then the quantum query algorithm is said to compute f(x) with bounded error \epsilon . If it satisfies:

    \forall x, P[ r(x)=f(x) ] =1,

    then it is said to compute f(x) exactly, and the algorithm is called an exact quantum algorithm. The exact quantum query complexity of f, denoted by Q_{\rm E}(f) , is the minimum number of queries that a quantum query algorithm needs to compute f. The gap between D(f) and Q_{\rm E}(f) is usually used to exhibit quantum advantages.

    In this paper, we want to characterize the partial Boolean functions f with Q_{\rm E}(f)=1 . In other words, we consider this problem: what partial Boolean function f can be computed by an exact one-query quantum algorithm?

    First, we give some notations. For any n-bit string x\in\{0, 1\}^n , we always associate it with one bit x_0 = 0 , and let \left| x \right\rangle = \sum_{i=0}^n x_i|i\rangle be an (n+1) -dimension vector. Let us define x' by x'_i = (-1)^{x_i} for any i. For a non-negative diagonal matrix {\boldsymbol{D}} of order n+1 , let |x_{{\boldsymbol{D}}}\rangle = \sqrt{{\boldsymbol{D}}}|x'\rangle . If the trace of D tr({\boldsymbol{D}}) = 1 , then |x_{{\boldsymbol{D}}}\rangle is a unit vector. Let {\boldsymbol{I}}_n be an n\times n identity matrix and {\boldsymbol{H}} = \dfrac{1}{\sqrt{2}}\begin{pmatrix} 1& 1 \\ 1 & -1 \end{pmatrix} .

    Below, we give some necessary and sufficient conditions. Note that in the following proof the function f is not required to be total, and thus it holds for any Boolean function.

    Theorem 1. The following statements are equivalent to each other.

    1) f:\{0, 1\}^n \rightarrow \{0, 1\} can be computed by an exact one-query quantum algorithm.

    2) There exists a set of non-negative coefficients \{c_i\} with \sum_{i=0}^n c_i = 1 , such that f(x) \neq f(y) implies \sum_{i \in S}c_i = {1}/{2} , where S = \{i|x_i \neq y_i\} .

    3) There exists a non-negative diagonal matrix {\boldsymbol{D}} with tr({\boldsymbol{D}}) = 1 , such that f(x) \neq f(y) implies \langle x_{{\boldsymbol{D}}}|y_{{\boldsymbol{D}}} \rangle = 0 .

    4) There exists a project operation {\boldsymbol{P}} and a non-negative diagonal matrix {\boldsymbol{D}} with tr({\boldsymbol{D}}) = 1 , such that f(x) = \langle x_{{\boldsymbol{D}}} |{\boldsymbol{P}}| x_{{\boldsymbol{D}}} \rangle .

    Proof. Statement 1 \Rightarrow Statement 2. Suppose we have an exact one-query quantum algorithm. Let {\boldsymbol{U}}_0 \left| \psi_0 \right\rangle = \sum_{i, j, k}\alpha_{ijk}\left| i \right\rangle \left| j \right\rangle \left| k \right\rangle , where i \in \{1,\ldots, n\} and j\in \{0, 1\} . By Lemma 1 of [2], for any x, y satisfying f(x) \neq f(y) , we have

    \sum\limits_{i \in S} \sum\limits_k |\alpha_{i0k}-\alpha_{i1k}|^2=1.

    Next we try to find a set of appropriate coefficients \{c_i\} . For i \in \{1,\ldots, n\} , let c_i = \sum_k |\alpha_{i0k}-\alpha_{i1k}|^2/2 . Then \sum_{i \in S} c_i = {1}/{2} . Thus, we have

    \sum\limits_{i=1}^n c_i = \sum\limits_{i=1}^n \sum\limits_k \frac{1}{2} |\alpha_{i0k}-\alpha_{i1k}|^2 \leqslant \sum\limits_{i, j, k}|\alpha_{i, j, k}|^2=1.

    Let c_0 = 1- \sum_{i=1}^n c_i . Then \sum_{i=0}^n c_i =1 . Thus, we find a set of feasible coefficients \{c_i\} .

    Statement 2 \Rightarrow Statement 3. We define diagonal matrix {\boldsymbol{D}} by D_{ii} = c_{i} for any i. If f(x) \neq f(y) , then

    \begin{aligned} \langle x_{{\boldsymbol{D}}} |y_{{\boldsymbol{D}}}\rangle & = \langle x'|{\boldsymbol{D}}|y'\rangle \\ & =\sum_{i=0}^n c_{i} (-1)^{x_i\oplus y_i} \\ &= \sum_{i:x_i = y_i}c_{i}- \sum_{i:x_i \neq y_i}c_{i} \\ &= \sum_{i \notin S}c_i-\sum_{i \in S}c_i =0. \end{aligned}

    Statement 3 \Rightarrow Statement 4. By statement 3, if f(x) \neq f(y) , then \langle x_{{\boldsymbol{D}}}|y_{{\boldsymbol{D}}} \rangle = 0 . Let X = \{|x_{{\boldsymbol{D}}}\rangle|f(x) = 1\} , Y = \{|y_{{\boldsymbol{D}}}\rangle| f(y) = 0 \}. Then X, Y \subset \mathbb{R}^{n+1} and X \bot Y . Let us select an orthonormal basis \{|v_j\rangle\} of Span \{X\} . Let g(x)=\sum_{j} \langle v_j|x_{{\boldsymbol{D}}}\rangle^2 . If f(x)=1 , then |x_{{\boldsymbol{D}}}\rangle \in Span \{X\} , and thus we have g(x) = \| |x_{{\boldsymbol{D}}} \rangle \|^2= 1 . If f(x)=0 , then for any j, \langle v_j|x_{{\boldsymbol{D}}} \rangle = 0 , and thus g(x)=0 . As a result, we have f(x)=g(x) . Let {\boldsymbol{P}} = \sum_{j} |v_j \rangle \langle v_j| . Then

    \begin{aligned} f(x) &= g(x) = \sum_{j} \langle v_j| x_{{\boldsymbol{D}}} \rangle^2 \\ &= \sum_j \langle x_{{\boldsymbol{D}}} |v_j\rangle \langle v_j| x_{{\boldsymbol{D}}}\rangle \\ &= \langle x_{{\boldsymbol{D}}}|(\sum_j|v_j\rangle \langle v_j|)| x_{{\boldsymbol{D}}}\rangle \\ &=\langle x_{{\boldsymbol{D}}}|{\boldsymbol{P}}|x_{{\boldsymbol{D}}}\rangle. \end{aligned}

    Statement 4 \Rightarrow Statement 1. By statement 4, we have f(x) = \langle x_{{\boldsymbol{D}}}|{\boldsymbol{P}}|x_{{\boldsymbol{D}}} \rangle . Suppose {\boldsymbol{P}} = \sum_j \left| v_j \right\rangle \left\langle {v_j} \right| where \left| v_j \right\rangle = \sum_{i=0}^n \alpha_{ij}\left| i \right\rangle . Let \left| {v'_j} \right\rangle = \sum_{i=1}^n \alpha_{ij} \left| i \right\rangle \left| 1 \right\rangle + \alpha_{0j} \left| 1 \right\rangle \left| 0 \right\rangle and {\boldsymbol{P}}' = \sum_j \left| {v'_j} \right\rangle \left\langle {v'_j} \right| . Then we give Algorithm 1 to compute f. Strictly speaking, Algorithm 1 is not a concrete algorithm, since quantum circuits should be given explicitly for steps 1 and 3. However, it is sure that the algorithm uses only one quantum query and there exist quantum circuits to implement steps 1 and 3.

    Algorithm 1. One-Query Algorithm
    Input: n-bit string x
    Output: f(x)
    Procedure:
    1. Prepare an initial state \left| \psi_0 \right\rangle = \sum_{i=1}^n \sqrt{D_{ii}}\left| i \right\rangle \left| 1 \right\rangle + \sqrt{D_{00}}\left| 1 \right\rangle \left| 0 \right\rangle .
    2. Perform an operation ({\boldsymbol{I}}_n \otimes {\boldsymbol{H}}) {\boldsymbol{O}}_x ({\boldsymbol{I}}_n \otimes {\boldsymbol{H}}) to the initial state and then obtain the state \left| \psi_x \right\rangle = \sum_{i=1}^n (-1)^{x_i}\sqrt{D_{ii}}\left| i \right\rangle \left| 1 \right\rangle + \sqrt{D_{00}}\left| 1 \right\rangle \left| 0 \right\rangle .
    3. Measure the register by a measurement set \{{\boldsymbol{I}}_{2n}-{\boldsymbol{P}}', {\boldsymbol{P}}'\} . If the result associated with {\boldsymbol{P}}' is measured, then return 1; otherwise, return 0.

    One can check that for any j, \left\langle\psi_x \mid v_j^{\prime}\right\rangle = \langle x_{{\boldsymbol{D}}} \left| v_j \right\rangle . Thus, the probability of output 1 is

    \begin{aligned} \langle \psi_x |{\boldsymbol{P}}'| \psi_x \rangle &= \sum_j \langle \psi_x | v'_j \rangle \langle v'_j | \psi_x \rangle \\ &= \sum_j \langle x_{{\boldsymbol{D}}} | v_j \rangle \langle v_j | x_{{\boldsymbol{D}}} \rangle \\ &= \left\langle { x_{{\boldsymbol{D}}}} \right| (\sum_j |v_j \rangle \langle v_j|) \left| x_{{\boldsymbol{D}}} \right\rangle \\ &= \langle x_{{\boldsymbol{D}}}|{\boldsymbol{P}}|x_{{\boldsymbol{D}}}\rangle \\ &= f(x), \end{aligned}

    and the probability of output 0 is 1-f(x) . Thus, the algorithm always outputs correct results.

    In summary, statements 1–4 are equivalent, which may offer a deeper insight into what Boolean functions can be computed by an exact one-query quantum algorithm. Moreover, any one-query function f has the expression form f(x) = \sum_j \langle v_j|x_{{\boldsymbol{D}}} \rangle^2 = \sum_j \langle v_j|\times \sqrt{{\boldsymbol{D}}}|x' \rangle^2 by Theorem 1. Since \left| x' \right\rangle = \sum_i x'_i\left| i \right\rangle and x_i' = (-1)^{x_i} = 2x_i-1 , the degree of \langle v_j|\sqrt{{\boldsymbol{D}}}|x' \rangle is 1. Thus, the expression of f in statement 4 satisfies that the degree of f deg(f) \leqslant 2 , which meets the conclusion from the polynomial method[1].

    Here we find some new functions f with Q_{\rm E}(f) = 1 by Theorem 1. These examples help us understand the power of exact one-query algorithms better. To begin with, we list all the already known functions with Q_{\rm E}(f) = 1 (up to isomorphism)[5, 7, 18].

    1) Deutsch-Jozsa function f_1:\{0, 1\}^n \rightarrow \{0, 1\} :

    f_1(x)= \begin{cases} 0, &{\rm if}\ \ |x|=n/2,\\ 1, & {\rm if}\ \ |x| = 0\ {\rm or }\ n. \end{cases}

    2) Symmetric function f_2:\{0, 1\}^n \rightarrow \{0, 1\} :

    f_2(x)= \begin{cases} 0, &{\rm if}\ \ |x|=c \ (c \geqslant \lceil n/2 \rceil),\\ 1, &{\rm if}\ \ |x| = 0. \end{cases}

    As stated in [18], the above functions can be computed by the Deutsch-Jozsa algorithm. Next, inspired by Theorem 1 we construct some new one-query functions f with Q_{\rm E}(f) = 1 that can be computed by Algorithm 1. We will show these functions satisfy statement 2 by giving the corresponding \{c_i\} later.

    3) For any set of non-negative coefficients \{c_i\} satisfying \sum_{i=0}^n c_i = 1 , there exists a quasi-symmetric function f_3:\{0, 1\}^n \rightarrow \{0, 1\} :

    f_3(x)= \begin{cases} 0, &{\rm if}\ \ \hat{x}=1/2,\\ 1, &{\rm if}\ \ \hat{x}=0 \ {\rm or }\ 1, \end{cases}

    where \hat{x} = \sum_{i=0}^n c_i x_i .

    4) Function f_4: \{0, 1\}^4 \rightarrow \{0, 1\} :

    f_4(x)= \left\{\begin{split} & {0, }\qquad{\rm if}\ \ {x=0000, 0011, 1100, 1111},\\& {1, }\qquad{\rm if}\ \ {x=0101, 0110, 1001, 1010}. \end{split}\right.

    5) Function f_5:\{0, 1\}^{4n} \rightarrow \{0, 1\} : if x satisfies:

    \left\{\begin{array}{*{20}{l}}|x| =2n,\\ \displaystyle\sum\limits_{i=1}^{2n}x_i = n,\\ \displaystyle\sum\limits_{i=1}^n x_i + \displaystyle\sum\limits_{i=2n+1}^{3n}x_i = n,\end{array} \right.

    then f(x) = 0 ; if x appears in Fig.4, then f(x) = 1 .

    Figure  4.  Inputs whose function value is 1.

    As mentioned earlier, a one-query function f has the expression: f(x) = \sum_j \langle v_j|\sqrt{{\boldsymbol{D}}}|x' \rangle^2 . If a Boolean string set \{w_j\} satisfies |v_j\rangle = \sqrt{{\boldsymbol{D}}}|w_j\rangle , then f(x) = \sum_j \langle w_j|{\boldsymbol{D}}|x' \rangle^2 . Since {D_{ii}} = c_i for any i, f depends on \{c_i\} and \{w_j\} .

    We give the corresponding \{c_i\} and \{w_j\} for the above functions as Table 1, which also means that {{\boldsymbol{D}}} is given. Then we compute {\boldsymbol{P}}' as follows. First, we compute \left| v_j \right\rangle for any j. If \left| v_j \right\rangle = \sum_{i=0}^n \alpha_{ij} \left| i \right\rangle , let \left| {v'_j} \right\rangle = \sum_{i=1}^n \alpha_{ij}\left| i \right\rangle \left| 1 \right\rangle +\alpha_{0j}\left| 1 \right\rangle \left| 0 \right\rangle . Lastly, we have {\boldsymbol{P}}' = \sum_j \left| {v'_j} \right\rangle \left\langle {v'_j} \right| . After {\boldsymbol{D}} and {\boldsymbol{P}}' are given, we could use Algorithm 1 to compute these functions.

    Table  1.  One-Query Functions with Their Corresponding \{c_i\} and \{w_j\}
    f \{c_i\} \{w_j\}
    f_1 c_{0} = 0,
    c_{i} ={1}/{n}\ (\forall i>0)
    w_1 = \underbrace{1\ldots1}_{n}
    f_2 c_{0} = ({2c - n})/{2c},
    c_{i} = {1}/({2c}) \ (\forall i > 0)
    w_1 = \underbrace{1\ldots1}_{n}
    f_3 \displaystyle\sum\limits_i c_i =1 w_1 = \underbrace{1\ldots1}_{n}
    f_4 c_{i} = 0 \ (i \leqslant 2),
    c_{i}=1/2\ (i> 2)
    w_1 = 0011
    f_5 c_{0} = 0,
    c_{i} = {1}/({4n})\ (\forall i>0)
    {\left\{ \begin{array}{*{20}{l}} w_1 = \underbrace{1\ldots1}_{4n} \\ w_2 = \underbrace{1\ldots1}_{2n}\underbrace{0\ldots0}_{2n} \\ w_3 =\underbrace{1\ldots1}_{n}\underbrace{0\ldots0}_{n}\underbrace{1\ldots1}_{n}\underbrace{0\ldots0}_{n} \end{array} \right.}
    下载: 导出CSV 
    | 显示表格

    Different from the already known one-query functions f with Q_{\rm E}(f) = 1 , the new cases are generally asymmetric functions. In this way, our results fill a gap in the discussion of asymmetric functions that can be computed by exact one-query quantum algorithms. Next, we describe the characteristics of these functions.

    1) Actually, f_1 and f_2 are both instances of f_3 . If c_0 = 0 and c_1 = \ldots =c_n , then f_3 degenerates into f_1 ; if c_0 \neq 0 and c_1 = \ldots =c_n , then f_3 degenerates into f_2 . Otherwise, f_3 is asymmetric. In this way, f_3 is a generalization of f_1 and f_2 . It can not only include all the existing symmetric functions with Q_{\rm E}(f) = 1 , but also represent a broad class of asymmetric functions with Q_{\rm E}(f) = 1 .

    2) Before f_4 being found, for any known n-bit one-query function f, there exists a function f' isomorphic to f such that f'^{-1}(1) \subseteq \{\underbrace{0\ldots0}_n, \underbrace{1\ldots1}_n\} . However, f_4 is the first one-query function not satisfying this property. Moreover, it is also worth mentioning that f_4 and f_1 have the same domain when n=4 .

    3) f_5 is the first proper example represented as the sum of square form: \sum_j \langle w_j|{\boldsymbol{D}}|x' \rangle^2 , whereas all previous examples can be represented as single square expressions: \langle w_1|{\boldsymbol{D}}|x' \rangle^2 (see Table 1). As a result, f_5 is more general and representative than previous cases in all functions with Q_{\rm E}(f) = 1 .

    In this paper, we considered what partial Boolean functions can be computed by exact one-query quantum algorithms, obtaining several necessary and sufficient conditions for this problem. Furthermore, inspired by these conditions we discovered some new functions that can be computed by exact one-query quantum algorithms. Note that before this paper, all the existing functions with Q_{\rm E}(f)=1 are known to be symmetric and can be computed by the Deutsch-Jozsa algorithm. Contrarily, the functions constructed in this paper are generally asymmetric and we propose new algorithms to compute them. Thus, this expands the class of functions that can be computed by exact one-query quantum algorithms.

    In the future, we hope to find some interesting applications of these functions. All these discussions are helpful for further consideration of the power of exact k-query quantum algorithms. Figuring out this problem is useful for understanding quantum query algorithms and inspiring us to find more problems with quantum advantages.

  • Figure  1.   Quantum oracle

    Figure  2.   Classical oracle.

    Figure  3.   A decision tree T for computing f(x)=x_1 \land (x_2 \vee x_3) .

    Figure  4.   Inputs whose function value is 1.

    Algorithm 1. One-Query Algorithm
    Input: n-bit string x
    Output: f(x)
    Procedure:
    1. Prepare an initial state \left| \psi_0 \right\rangle = \sum_{i=1}^n \sqrt{D_{ii}}\left| i \right\rangle \left| 1 \right\rangle + \sqrt{D_{00}}\left| 1 \right\rangle \left| 0 \right\rangle .
    2. Perform an operation ({\boldsymbol{I}}_n \otimes {\boldsymbol{H}}) {\boldsymbol{O}}_x ({\boldsymbol{I}}_n \otimes {\boldsymbol{H}}) to the initial state and then obtain the state \left| \psi_x \right\rangle = \sum_{i=1}^n (-1)^{x_i}\sqrt{D_{ii}}\left| i \right\rangle \left| 1 \right\rangle + \sqrt{D_{00}}\left| 1 \right\rangle \left| 0 \right\rangle .
    3. Measure the register by a measurement set \{{\boldsymbol{I}}_{2n}-{\boldsymbol{P}}', {\boldsymbol{P}}'\} . If the result associated with {\boldsymbol{P}}' is measured, then return 1; otherwise, return 0.
    下载: 导出CSV

    Table  1   One-Query Functions with Their Corresponding \{c_i\} and \{w_j\}

    f \{c_i\} \{w_j\}
    f_1 c_{0} = 0,
    c_{i} ={1}/{n}\ (\forall i>0)
    w_1 = \underbrace{1\ldots1}_{n}
    f_2 c_{0} = ({2c - n})/{2c},
    c_{i} = {1}/({2c}) \ (\forall i > 0)
    w_1 = \underbrace{1\ldots1}_{n}
    f_3 \displaystyle\sum\limits_i c_i =1 w_1 = \underbrace{1\ldots1}_{n}
    f_4 c_{i} = 0 \ (i \leqslant 2),
    c_{i}=1/2\ (i> 2)
    w_1 = 0011
    f_5 c_{0} = 0,
    c_{i} = {1}/({4n})\ (\forall i>0)
    {\left\{ \begin{array}{*{20}{l}} w_1 = \underbrace{1\ldots1}_{4n} \\ w_2 = \underbrace{1\ldots1}_{2n}\underbrace{0\ldots0}_{2n} \\ w_3 =\underbrace{1\ldots1}_{n}\underbrace{0\ldots0}_{n}\underbrace{1\ldots1}_{n}\underbrace{0\ldots0}_{n} \end{array} \right.}
    下载: 导出CSV
  • [1]

    Buhrman H, De Wolf R. Complexity measures and decision tree complexity: A survey. Theoretical Computer Science , 2002, 288(1): 21–43. DOI: 10.1016/S0304-3975(01)00144-X.

    [2]

    Chen W, Ye Z, Li L. Characterization of exact one-query quantum algorithms. Physical Review A , 2020, 101(2): 02232. DOI: 10.1103/PhysRevA.101.022325.

    [3]

    Ambainis A. Superlinear advantage for exact quantum algorithms. SIAM Journal on Computing , 2016, 45(2): 617–631. DOI: 10.1137/130939043.

    [4]

    Ambainis A, Gruska J, Zheng S. Exact quantum algorithms have advantage for almost all Boolean functions. Quantum Information and Computation , 2015, 15(5/6): 435–452. DOI: 0.26421/QIC15.5-6-5.

    [5]

    Deutsch D, Jozsa R. Rapid solution of problems by quantum computation. Proceedings of the Royal Society A: Mathematical and Physical Sciences , 1992, 439(1907): 553–558. DOI: 10.1098/rspa.1992.0167.

    [6]

    Mihara T, Sung S. Deterministic polynomial-time quantum algorithms for Simon’s problem. Computational Complexity , 2003, 12(3/4): 162–175. DOI: 10.1007/s00037-003-0181-z.

    [7]

    He X, Sun X, Yang G, Yuan P. Exact quantum query complexity of weight decision problems via Chebyshev polynomials. arXiv: 1801.05717, 2018. https://arxiv.org/abs/1801.05717, Feb. 2021.

    [8]

    Montanaro A, Jozsa R, Mitchison G. On exact quantum query complexity. Algorithmica , 2013, 71(4): 775–796. DOI: 10.1007/s00453-013-9826-8.

    [9]

    Ambainis A, Iraids J, Smotrovs J. Exact quantum query complexity of EXACT and THRESHOLD. In Proc. the 8th Conference on the Theory of Quantum Computation, Communication and Cryptography, May 2013, pp.263–269. DOI: 10.4230/LIPIcs.TQC.2013.263.

    [10]

    Ambainis A, Iraids J, Nagaj D. Exact quantum query complexity of {\mathrm{EXACT}}^{\mathrm{n}}_{\mathrm{k,l}} . In Proc. the 43rd International Conference on Current Trends in Theory and Practice of Computer Science, Jan. 2017, pp.243–255. DOI: 10.1007/978-3-319-51963-0_19.

    [11]

    Cai G, Qiu D. Optimal separation in exact query complexities for Simon’s problem. Journal of Computer and System Sciences , 2018, 97: 83–93. DOI: 10.1016/j.jcss.2018.05.001.

    [12]

    Aaronson S, Ben-David S, Kothari R. Separations in query complexity using cheat sheets. In Proc. the 48th Annual ACM Symposium on Theory of Computing, Jun. 2016, pp.863–876. DOI: 10.1145/2897518.2897644.

    [13]

    Ambainis A, Balodis K, Belovs A, Lee T, Santha M, Smotrovs J. Separations in query complexity based on pointer functions. Journal of the ACM , 2017, 64(5): Article No. 32. DOI: 10.1145/3106234.

    [14]

    Farhi E, Goldstone J, Gutmann S, Sipser M. Limit on the speed of quantum computation in determining parity. Physical Review Letters , 1998, 81(24): 5442–5444. DOI: 10.1103/PhysRevLett.81.5442.

    [15]

    Hayes T, Kutin S, Van Melkebeek D. The Quantum black-box complexity of majority. Algorithmica , 2002, 34(4): 480–501. DOI: 10.1007/s00453-002-0981-6.

    [16]

    Brassard G, Høyer P. An exact quantum polynomial-time algorithm for Simon’s problem. In Proc. the 5th Israel Symposium on Theory of Computing and Systems, Jun. 1997, pp.12–23. DOI: 10.1109/ISTCS.1997.595153.

    [17]

    Qiu D, Zheng S. Generalized Deutsch-Jozsa problem and the optimal quantum algorithm. Physical Review A , 2018, 97(6): 062331. DOI: 10.1103/PhysRevA.97.062331.

    [18]

    Qiu D, Zheng S. Revisiting Deutsch-Jozsa algorithm. Information and Computation , 2020, 275: 104605. DOI: 10.1016/j.ic.2020.104605.

    [19]

    Aaronson S, Ambainis A, Iraids J, Kokainis M, Smotrovs J. Polynomials, quantum query complexity, and Grothendieck’s Inequality. In Proc. the 31st Conference on Computational Complexity, May 29–June 1, 2016, Article No. 25. DOI: 10.4230/LIPIcs.CCC.2016.25.

    [20]

    Arunachalam S, Briët J, Palazuelos C. Quantum query algorithms are completely bounded forms. SIAM Journal on Computing , 2019, 48(3): 903–925. DOI: 10.1137/18M11 7563X.

    [21]

    Beals R, Buhrman H, Cleve R, Mosca M, De Wolf R. Quantum lower bounds by polynomials. Journal of the ACM , 2001, 48(4): 778–797. DOI: 10.1145/502090.502097.

    [22]

    Simon D R. On the power of quantum computation. SIAM Journal on Computing , 1997, 26(5): 1474–1483. DOI: 10.1137/S0097539796298637.

    [23]

    Shor P W. Algorithms for quantum computation: Discrete logarithms and factoring. In Proc. the 35th Annual Symposium on Foundations of Computer Science, Nov. 1994, pp.124–134. DOI: 10.1109/SFCS.1994.365700.

    [24]

    Ben-David S, Childs A M, Gilyén A, Kretschmer W, Podder S, Wang D. Symmetries, graph properties, and quantum speedups. In Proc. the 61st IEEE Annual Symposium on Foundations of Computer Science, Nov. 2020, pp.649–660. DOI: 10.1109/FOCS46700.2020.00066.

    [25]

    Aaronson S, Ambainis A. Forrelation: A problem that optimally separates quantum from classical computing. SIAM Journal on Computing , 2018, 47(3): 982–1038. DOI: 10.1137/15M1050902.

    [26]

    Tal A. Towards optimal separations between quantum and randomized query complexities. In Proc. the 61st IEEE Annual Symposium on Foundations of Computer Science, Nov. 2020, pp.228–239. DOI: 10.1109/FOCS46700.2020.00030.

    [27]

    Bansal N, Sinha M. k-Forrelation optimally separates quantum and classical query complexity. In Proc. the 53rd Annual ACM SIGACT Symposium on Theory of Computing, Jun. 2021, pp.1303–1316. DOI: 10.1145/3406325.3451040.

    [28]

    Sherstov A A, Storozhenko A A, Wu P. An optimal separation of randomized and quantum query complexity. In Proc. the 53rd Annual ACM SIGACT Symposium on Theory of Computing, Jun. 2021, pp.1289–1302. DOI: 10.1145/3406325.3451019.

    [29]

    Xu G, Qiu D. Partial Boolean functions with exact quantum 1-query complexity. Entropy , 2021, 23(2): 189. DOI: 10.3390/e23020189.

    [30]

    Nielsen M A, Chuang I. Quantum Computation and Quantum Information. Cambridge University Press, 2002.

图(4)  /  表(2)
计量
  • 文章访问数:  219
  • HTML全文浏览量:  7
  • PDF下载量:  32
  • 被引次数: 0
出版历程
  • 收稿日期:  2021-02-06
  • 录用日期:  2022-03-22
  • 网络出版日期:  2023-06-19
  • 刊出日期:  2023-11-30

目录

/

返回文章
返回