Abstract 1 Introduction 2 Preliminaries 3 Fundamentals of pseudo-deterministic quantum query complexity 4 Query complexity separations References

Pseudo-Deterministic Quantum Algorithms

Hugo Aaronson ORCID Computing Laboratory, University of Cambridge, UK    Tom Gur ORCID Computing Laboratory, University of Cambridge, UK    Jiawei Li ORCID University of Texas at Austin, TX, USA
Abstract

We initiate a systematic study of pseudo-deterministic quantum algorithms. These are quantum algorithms that, for any input, output a canonical solution with high probability. Focusing on the query complexity model, our main contributions include the following complexity separations, which require new lower bound techniques specifically tailored to pseudo-determinism:

  • We exhibit a problem, Avoid One Encrypted String (AOES), whose classical randomized query complexity is O(1) but is maximally hard for pseudo-deterministic quantum algorithms (Ω(N) query complexity).

  • We exhibit a problem, Quantum-Locked Estimation (QL-Estimation), for which pseudo-deterministic quantum algorithms admit an exponential speed-up over classical pseudo-deterministic algorithms (O(log(N)) vs. Θ(N)), while the randomized query complexity is O(1).

Complementing these separations, we show that for any total problem R, pseudo-deterministic quantum algorithms admit at most a quintic advantage over deterministic algorithms, i.e., 𝖣(R)=O~(𝗉𝗌𝖰(R)5). On the algorithmic side, we identify a class of quantum search problems that can be made pseudo-deterministic with small overhead, including Grover search, element distinctness, triangle finding, k-sum, and graph collision.

Keywords and phrases:
Pseudo-determinism, Quantum Computing, Algorithms
Category:
Track A: Algorithms, Complexity and Games
Copyright and License:
[Uncaptioned image] © Hugo Aaronson, Tom Gur, and Jiawei Li; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Quantum complexity theory
Related Version:
Full Version: https://arxiv.org/abs/2602.17647
Acknowledgements:
We thank Rahul Santhanam, Igor Oliveira, and Scott Aaronson for useful discussions on pseudo-determinism.
Funding:
This research was supported by ERC Starting Grant 101163189 and UKRI Future Leaders Fellowship MR/X023583/1.
Editors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele Puppis

1 Introduction

The study of pseudo-deterministic algorithms, initiated by Gat and Goldwasser [13], is concerned with randomized algorithms that output a canonical solution for each input. That is, a randomized algorithm 𝒜 that solves a search problem R𝒳×𝒴 is said to be pseudo-deterministic if there exists a function f:𝒳𝒴 such that for any input X𝒳, the output 𝒜(X) is f(X) with high probability.

Pseudo-deterministic algorithms capitalize on the computational power of randomization while still maintaining the predictable output behaviour of deterministic algorithms. This stands in contrast to fully randomized algorithms, whose repeated runs may return vastly different outputs. Over the last decade, pseudo-deterministic algorithms have received much attention and have appeared across diverse areas of theoretical computer science [15, 16, 14, 17, 10, 11, 7, 8, 6, 19].

In the quantum setting, pseudo-deterministic algorithms were first considered by Goldwasser, Impagliazzo, Pitassi and Santhanam [18] when studying the Find1 problem111The input to the Find1 problem is a string X{0,1}N with the promise that X has Hamming weight at least N/2, and the goal is to output an index i with Xi=1. for pseudo-deterministic algorithms in the query complexity model. While Find1 is solvable in O(1) queries by random sampling, they showed that any pseudo-deterministic algorithm, classical or quantum, for Find1 requires Ω(N) queries.

What makes quantum pseudo-determinism truly distinct is the randomness that arises from measurement. Many quantum algorithms that achieve exponential quantum speed-up (e.g., Fourier sampling) measure superpositions over exponentially many candidate solutions, a step that appears inherent. This offers a new perspective to revisit existing quantum advantages:

When can quantum speed-ups be achieved pseudo-deterministically,
and when does quantum advantage inherently require output entropy?

This question also links quantum pseudo-determinism to certified randomness: if one can show that the quantum advantages of a certain problem R cannot be preserved given the pseudo-deterministic requirement, then any (potentially untrusted) quantum device 𝒜 that solves R efficiently must generate some entropy. A series of works [4, 3, 23] show, under standard complexity assumptions, that Fourier sampling [1], random-circuit sampling, and the Yamakawa–Zhandry algorithm [23] cannot be made pseudo-deterministic222For quantum certified randomness, these works in fact prove quantitatively stronger statements: any efficient quantum algorithm for these tasks must generate a large amount of min-entropy..

Motivated by the above, we initiate a systematic study of quantum pseudo-determinism. We investigate the fundamental properties of pseudo-deterministic quantum algorithms, show complexity separations that shed light on the strength and limitations of quantum pseudo-determinism, and identify a wide class of problems (which includes Grover search, element distinctness, triangle finding, k-sum, and graph collision) that admit efficient pseudo-deterministic quantum algorithms.

1.1 Our results

We start with the query complexity model. Unless otherwise stated, we denote the length of the input to the search problem by N. For a search problem R, we denote the deterministic query complexity by 𝖣(R), the pseudo-deterministic quantum query complexity 𝗉𝗌𝖰(R), and the quantum query complexity by 𝖰(R). We denote the output of algorithm 𝒜 given query access to input X as 𝒜X.

1.1.1 Query complexity separations

We first study the relationship between pseudo-deterministic quantum query algorithms, randomized algorithms, and classical pseudo-deterministic algorithms.

Hardness of quantum pseudo-determinism

Our first result shows that not all problems admit efficient pseudo-deterministic quantum algorithms. We give a maximal separation between classical randomized query complexity and quantum pseudo-deterministic query complexity.

Theorem 1.

There exists a search problem R whose classical randomized complexity is O(1) and whose pseudo-deterministic quantum query complexity is Ω(N).

Theorem 1 improves the separation given by the Find1 problem, where the pseudo-deterministic quantum lower bound is Ω(N). We obtain this stronger separation via the Avoid One Encrypted String (AOES) problem. Informally, the input encodes m instances of XOR gadgets; together they encrypt a hidden string b{0,1}m, where bi is the solution to the i-th XOR instance. The goal is to output any m-bit string not equal to b. A classical randomized algorithm succeeds with constant probability by blind sampling, whereas any pseudo-deterministic algorithm must consistently avoid b across runs, effectively forcing it to learn at least one bit of b.

Power of quantum pseudo-determinism

Our second result shows that pseudo-deterministic quantum algorithms can be much stronger than their classical counterparts. We prove an exponential separation between pseudo-deterministic quantum algorithms and pseudo-deterministic classical algorithms on a task that remains easy for classical randomized algorithms. To ensure this separation is meaningful, we need to be certain that the quantum algorithm is not simply introducing solutions inaccessible to classical computation. We do this by defining the notion of “canonization”. Intuitively, this is where a quantum algorithm stabilizes a solution that occurs with considerable probability in a randomized algorithm into a canonical solution, thus canonizing it from a randomized solution to a pseudo-deterministic one.

Definition 2.

Let R𝒳×𝒴 be a search problem with randomized algorithm 𝒜 and let f:𝒳𝒴 be a function. f canonizes 𝒜 if, for any X𝒳, the probability 𝒜X outputs f(X) is greater than the probability it outputs an incorrect solution. Equivalently,

X𝒳:𝒜[𝒜X=f(X)]>𝒜[(X,𝒜X)R].

A pseudo-deterministic algorithm canonizes 𝒜 if the function f calculated by canonizes 𝒜.

We now state the theorem that demonstrates the quantum advantage on pseudo-deterministic algorithms.

Theorem 3.

There exists a search problem R such that

  1. 1.

    there exists a randomized classical algorithm 𝒜 for R that uses O(logN) queries;

  2. 2.

    there exists a quantum pseudo-deterministic algorithm with O(logN) query complexity that canonizes 𝒜;

  3. 3.

    any classical pseudo-deterministic algorithm for R requires Ω(N) queries.

We make two remarks about the conditions required for showing a conceptually meaningful quantum advantage in the setting of pseudo-deterministic algorithms. First, note that without requiring the problem to be easy for randomized algorithms (Item 1), such a separation would be trivial, in the sense that it need not refer to pseudo-determinism at all (e.g., by Simon’s problem, which has a unique solution). In contrast, Theorem 3 exhibits a different form of quantum advantage: beyond faster search, quantum algorithms can break symmetry (by eliminating output randomness) more efficiently than classical pseudo-deterministic algorithms. Furthermore, we also require that such a quantum pseudo-deterministic algorithm canonizes a classical one. This is because we do not want the quantum algorithm to cheat by outputting a new solution that is inaccessible to classical algorithms.

1.1.2 Fundamental properties of quantum pseudo-determinism

Next, we provide theorems that demonstrate two basic properties of pseudo-deterministic quantum algorithms: a limitation on maximal speed-ups for total problems, and a general pseudo-deterministic quantum query upper bound via the completeness of the Find1 problem.

Deterministic emulation of total problem

We show that for total problems, pseudo-deterministic quantum algorithms cannot exhibit exponential speed-up over classical algorithms. In particular, pseudo-deterministic quantum algorithms for total problems can be emulated by deterministic algorithms with a quintic blow-up.

Theorem 4.

Let R{0,1}N×𝒴 be a total search problem, then the following holds.

𝖣(R)=O(𝗉𝗌𝖰(R)5log(N)).

In contrast, in the classical setting, it was shown in [15] that pseudo-deterministic classical algorithms for total problems can be emulated by deterministic algorithms with a quartic blow-up 𝖣(R)=O(𝗉𝗌𝖱(R)4log(N)). Our proof of Theorem 4 follows the strategy of [15], but poses a new challenge; namely, our main technical contribution in the proof of Theorem 4 is a lemma (Lemma 19) that upper bounds the number of possible outputs of a pseudo-deterministic quantum algorithm; this step is trivial in the classical case.

General pseudo-deterministic quantum query upper bound

We also observe that the completeness result in [18], which states that the Find1 problem is complete for pseudo-deterministic classical query complexity, extends to the quantum setting. By combining it with the fact that 𝗉𝗌𝖰(Find1)=Θ(N) [18],333An O~(N) upper bound for Find1 is informally given in [18]. We make a more careful analysis and show that this logarithmic term can be avoided. See the full version of this paper for details. we derive a general upper bound on the pseudo-deterministic quantum query complexity of any problem via its randomized query complexity and verification complexity (i.e., the deterministic query complexity of verifying whether an input-solution pair is in a relation).

Theorem 5.

For any search problem R with randomized query complexity 𝖱(R) and verification complexity 𝖵(R), we have 𝗉𝗌𝖰(R)=O((𝖱(R)+𝖵(R))N).

This implies that any lower bound for a pseudo-deterministic quantum query complexity problem greater than Ω(N) requires either a high randomized query complexity or it is difficult to verify. For instance, in our maximally pseudo-deterministically hard problem AOES (Definition 22), the randomized query complexity is O(1), but it is very hard to verify.

1.1.3 Making quantum algorithms pseudo-deterministic

In [20], it was observed that by integrating Grover’s algorithm in a binary search, one can obtain a pseudo-deterministic quantum algorithm for Find1 that returns the first non-zero index in Θ(N) queries.

We extend this idea further and generalize it to obtain pseudo-deterministic quantum algorithms for a broad family of k-subset finding problems [9]. Here the input XΣN consists of N elements, and the goal is to find a subset of k elements satisfying a predicate. To make the binary-search approach applicable, we introduce a mild condition, Prunable, which informally requires that restricting the search domain does not increase the query cost. We show that for Prunable problems, any subset-finding quantum algorithm can be turned pseudo-deterministic with only a near-linear dependence on k.

Theorem 6.

Let R be a k-subset finding problem. If R is Prunable, then 𝗉𝗌𝖰(R)=O~(k𝖰(R)).

We note that many natural k-subset finding tasks are Prunable, e.g., k-distinctness, triangle finding, and k-sum. However, we observe that the condition can fail for k-subset finding problems with global structure, such as Find1, when interpreted as a 1-subset finding problem.

1.1.4 Beyond the query complexity model

Finally, we study pseudo-deterministic quantum algorithms outside the setting of the standard query complexity model; namely, by considering search problems with quantum inputs, as well as the white-box setting.

Search problems with quantum inputs

We consider a different sort of search problems for which the input is a quantum state. Here, the query complexity is defined as the number of copies of the input state required to solve the problem. Pseudo-determinism could be useful in problems such as finding a computational basis element in the support of the input state, finding a state orthogonal to the input state, etc. We show, however, there can be no pseudo-deterministic algorithms if the input domain is a connected continuous space.

Nevertheless, we consider a quantum version of Find1 we call Uniform-Support-Finding: finding a computational basis element in the support of an input state |ψ, where |ψ is promised to be a uniform superposition over a subset of basis. We prove that the query complexity of Uniform-Support-Finding is Θ(d), where d is the dimension of |ψ (See the full version for details).

The white-box setting

Finally, we give the characterization of problems that admit efficient pseudo-deterministic quantum algorithms in the white-box (Turing machine) setting.

Theorem 7.

A search problem R has a pseudo-deterministic quantum polynomial-time algorithm if and only if R is P-reducible444A P-reduction refers to a deterministic polynomial time Turing reduction. to some decision problem in BQP.

We prove Theorem 7 in the full version of this paper, which is generalized from its classical analog in [15]. Intuitively, Theorem 7 says that any search problem R that has an efficient pseudo-deterministic quantum algorithm if and only if it has a search-to-decision reduction to BQP. In other words, any (super-polynomial) pseudo-deterministic quantum advantage for a search problem essentially comes from the quantum advantages for a certain decision problem.

1.2 Techniques

In this section, we provide a taste of our techniques for establishing the query complexity separations in Theorem 1 and Theorem 3. In both cases, the key part is proving query complexity lower bounds for pseudo-deterministic quantum or classical algorithms, where new techniques are needed. This can be attributed to a lack of tools for proving pseudo-deterministic lower bounds, and that well-established techniques such as the polynomial method cannot be directly applied.

A maximal separation between randomized and pseudo-deterministic quantum algorithms

A quintessential advantage of randomized algorithms compared to pseudo-deterministic ones is their ability to output random strings. We consider the following problem, called Avoid One Encrypted String (AOES), which capitalizes on this advantage. The input of AOES consists of m instances of the XOR problem in parallel, where m is a big constant. Let N be the total input length and N/m be the input length of each XOR instance. These XOR instances encode a secret string b{0,1}m, where bi is the value of the i-th XOR instance. The goal is to output any m-bit string that is not equal to b.

AOES can be solved trivially by randomly sampling an m-bit string with accuracy 11/2m. However, it is not difficult to show that no deterministic algorithm can do better than using N/m queries to solve the first XOR instance, and then output any string with the first bit unmatched. Intuitively, any pseudo-deterministic algorithm that can avoid outputting b consistently must have learned some information about those XOR instances. On the other hand, XOR is maximally hard for quantum query algorithm, i.e., any quantum query algorithm for XOR of length n cannot do any better than a random guess with less than n/2 queries [12, 5].

To turn the intuitions to a proof, we provide a new randomized reduction from XOR to AOES. Namely, we show that if there exists a zero-error quantum algorithm for AOESN,m with query complexity q, then there exists a quantum algorithm 𝒜 for XORN/m which calls once such that for every input X{0,1}N/m,

[𝒜X=𝖷𝖮𝖱(X)]12+12m+1.

To prove that, let be a solver for the AOES problem, and let X{0,1}N/m be the XOR instance we want to solve. We build a random AOES instance Z=(Z1,,Zm) in two steps. First, we generate m uniformly random string Y1,,Ym{0,1}N/m. Then, for each position i[m], we take Zi=Yi with probability 1/2, and Zi=YiX with probability 1/2.

At a high-level, Y1,,Ym can be viewed as a one-time pad, and X is embedded into a random subset of positions in the AOES instance Z. The crucial observation is that from the AOES solver ’s perspective, Z is uniformly random, and it has no information about X, and where X is embedded in Z. We can show that when we embed X into a certain subset of positions in Z that depends on , we can then recover the solution of the XOR instance X with certainty. When is a zero-error algorithm for AOES, the overall success rate of our randomized reduction is 1/2+1/2m+1, and any value strictly greater than 1/2 suffices given the hardness of XOR.

Finally, for any pseudo-deterministic algorithm for AOES, we can decrease its error rate to 1/22m via O(m) repetitions and picking the most common outputs. We can then plug this extremely low error AOES algorithm into the randomized reduction and still get non-zero advantages on XOR. Note that while the random sampling algorithm has an error rate of 1/2m, it cannot further reduce it via repetition.

Exponential pseudo-deterministic quantum advantage

We construct a problem called Quantum-Locked Estimation (QL-Estimation), which is easy for randomized algorithms as well as quantum pseudo-deterministic algorithms, but is hard for classical pseudo-deterministic algorithms.

Let N=2n. For simplicity, we sometimes interpret a value x[N] as an n-bit string in the natural way, and vice versa. Recall that in Simon’s problem [22], the input is a function f:[N][N] which is promised to encode a secret string s such that f(x)=f(y)(x=y)(x=ys). In the Hamming problem, an input string X{0,1}N is given, and the goal is to output an estimate of the Hamming weight of X up to additive error N/10.

In the QL-Estimation problem, the input is simply a pair (f,X), where f is an instance of the Simon’s problem and X is an instance of the Hamming problem. It is promised that f encodes some string s that is promised to be a valid estimate of the Hamming weight of X (|sX𝗁𝗐|0.09N). The goal is to output an estimate for the Hamming weight of X with an additive error up to N/10.

The classical randomized algorithm can estimate the Hamming weight with O(1) queries, and a quantum algorithm can calculate the secret string s, which is a valid solution by the promise of the problem. Indeed, this quantum algorithm canonizes the particular estimate s, which is one of the many different estimates of the Hamming weight that a classical randomized algorithm could reasonably produce.555To ensure the condition of the canonization (Definition 2) is satisfied, we need a slightly adjusted classical random sampling algorithm with O(logN) queries. See Section 4.2 for more details. We view this as a “lock-and-key” construction, where the Hamming problem locks a canonical solution that is hidden from pseudo-deterministic classical algorithms, while the key is Simon’s problem, to which only quantum algorithms have access.

For the lower bound of pseudo-deterministic classical algorithms, it is helpful to first revisit the pseudo-deterministic hardness of Hamming via a sensitivity argument. Suppose for some string X (where X𝗁𝗐=N/2), the pseudo-deterministic output of some algorithm is t. Let X be the string with the smallest Hamming weight whose pseudo-deterministic output is t. This algorithm is sensitive at X as flipping any 1-bit of X will result in a string whose pseudo-deterministic output is not t (as it will have a smaller Hamming weight), which implies a large query complexity of differentiating X from any such string.

However, a high sensitivity also implies a large quantum query complexity, therefore, we have to modify our argument for the QL-Estimation problem, which is easy for a quantum algorithm. Suppose 𝒜 is a classical pseudo-deterministic algorithm for QL-Estimation. The crux of the proof is arguing that if 𝒜 has sub-linear sensitivity everywhere, then it must approximately solve the secret string s from the Simon’s problem (Lemma 38). To this end, we apply a similar trick from Hamming’s proof: finding a string X with the smallest Hamming weight among those strings that yield the same output by 𝒜; then flipping its 1-bits. The analysis here is more delicate because the Hamming and Simon components of the problem are not independent; the Simon witness is coupled with the Hamming input, and therefore standard product-distribution or decoupling arguments do not apply.

Finally, we show that solving Simon’s problem approximately is as hard as solving it exactly, and hence we conclude that 𝒜 must use Ω(N) queries.

1.3 Paper Organization

In Section 2 we set up the query model, define pseudo-deterministic classical/quantum algorithms, and review key preliminaries (including Find1 and information-theoretic tools). Section 3 proves foundational results, including the quintic relationship for total search problems and the completeness of Find1 for quantum pseudo-determinism. Section 4 gives our main separations: Section 4.1 introduces AOES to obtain a maximal gap between randomized and pseudo-deterministic quantum query complexity, and Section 4.2 defines QL-Estimation to separate pseudo-deterministic quantum from pseudo-deterministic classical algorithms while remaining randomized-easy. We refer the readers to the full version for the pseudo-deterministic quantum subset-finding algorithm and the discussion on search problems with quantum inputs.

2 Preliminaries

In the query complexity model, an algorithm 𝒜 solves a search problem R𝒳×𝒴 if, given query access to the input X𝒳, the algorithm outputs Y𝒴 such that (X,Y)R with probability at least 2/3. We denote the output of algorithm 𝒜 given query access to input X as 𝒜X. Unless otherwise stated the set of inputs is a subset of the binary strings, 𝒳N{0,1}N. In this case, the algorithm has explicit access to the input length N for which X{0,1}N. The complexity measure here is the number of queries made to the black box oracle. Unless there are other parameters to the search problem we will define 𝒳N𝒳{0,1}N to be the subset of the search problem for inputs of length N. When the length of the input is clear from context we will suppress the subscript and write only 𝒳.

Definition 8 (Pseudo-deterministic algorithm).

An algorithm 𝒜 for a search problem R𝒳×𝒴 is said to be pseudo-deterministic if there exists a function f:𝒳𝒴 such that for all X𝒳, the output of 𝒜(X) is f(X) with probability at least 2/3 and the output of f is always a solution to the search problem. Here, the output f(X) is said to be the canonical or pseudo-deterministic solution. Equivalently,

f:𝒳𝒴,X𝒳((X,f(X))R[𝒜(X)=f(X)]23).

In the classical setting a query to the black box is specified by the algorithm as an index i[N] and then the algorithm receives the value Xi. For a quantum algorithm with a classical input, the algorithm is a circuit composed of unitaries and a single query is a single use of the oracle unitary UX whose action is expressed as

i[N],j{0,1}:UX|i|j=|i|jXi.
Definition 9 (Query complexity measures).

For a search problem R𝒳×𝒴, we denote the following measures of complexity in the query setting.

  • 𝖣(R) is the deterministic query complexity of solving R.

  • 𝖱(R) is the randomized classical query complexity of solving R.

  • 𝖰(R) is the randomized bounded-error quantum query complexity of solving R.

  • 𝗉𝗌𝖱(R) is the pseudo-deterministic bounded error classical query complexity of solving R.

  • 𝗉𝗌𝖰(R) is the pseudo-deterministic bounded-error quantum query complexity of solving R.

Here, bounded-error means that any algorithm must succeed with probability at least 2/3. We define 𝖣,𝖱,𝖰 similarly for a Boolean function f:𝒳{0,1}.

2.1 Find1 problem

We define the Find1 problem and review the existing completeness and quantum lower bound results from [18].

Definition 10 (Find1).

On input X{0,1}N such that jXjN/2, a solution to the Find1 problem is an index i such that Xi=1.

The next theorem establishes the completeness of the Find1 problem for pseudo-deterministic query algorithms.

Theorem 11 ([18] Theorem 3, Completeness of Find1).

Let r,q,v be functions satisfying f(Θ(N))=Θ(f(N)) for any f{r,q,v}. Let R be a search problem such that with input size N, a solution is verifiable with v(N) queries, the bounded error randomized query complexity is at most r(N), and the bounded error pseudo-deterministic query complexity of R is at least q(N). Then the pseudo-deterministic query complexity of Find1 is at least Ω(q(N)/(r(N)+v(N))).

We shall also need the following lower bounds on the pseudo-deterministic quantum complexity of the Find1 problem.

Theorem 12 ([18] Theorem 4, quantum lower bound).

The pseudo-deterministic quantum query complexity of Find1 is at least Ω(N).

2.2 Entropy

For a random variable 𝐗, let |𝐗| denote the size of the support of 𝐗. Throughout, all logarithms are base 2.

Definition 13 (Shannon Entropy).

For a random variable 𝐗 with probability distribution (px)x, the Shannon entropy of 𝐗 is defined as

H(𝐗)=xpxlog(px).
Definition 14 (von Neumann Entropy).

Let ρ be a mixed quantum state with a set of eigenvalues (px)x, the von Neumann entropy of ρ is defined as

S(ρ)=H(p)=xpxlog(px).
 Remark 15.

Note that for both a distribution supported over n elements and a quantum state of dimension n, the maximum value of the corresponding notion of entropy is log(n). This is achieved by the uniform distribution and the maximally mixed state respectively.

We denote the joint entropy of two random variables 𝐗,𝐘 by H(𝐗,𝐘). We denote the conditional entropy by H(𝐗|𝐘)=H(𝐗,𝐘)H(𝐘).

Definition 16.

The mutual information between two random variables 𝐗,𝐘 is I(𝐗,𝐘)=H(𝐗)+H(𝐘)H(𝐗,𝐘)=H(𝐗)H(𝐗|𝐘).

Lemma 17 (Holevo’s Bound, Theorem 12.1 [21]).

For an ensemble of quantum states (ρx)x[n] and a probability distribution 𝐗=(px)x[n] and a POVM {Ly}y[m]. If the output distribution of the POVM on the state ρ=xpxρx, is 𝐘={Tr(Lyρ)}y[m] The following holds,

I(𝐗,𝐘)S(ρ)pxS(ρx).
Lemma 18 (Fano’s Inequality, Box 12.2 [21]).

The conditional entropy between two classical random variables 𝐗,𝐘:H(𝐗|𝐘)=H(𝐗,𝐘)H(𝐘) is upper bounded in the following way,

H(𝐗|𝐘)H(e,1e)+elog(|𝐗|1).

Here, e is the minimum error of any algorithm that estimates the value of 𝐗 from 𝐘.

3 Fundamentals of pseudo-deterministic quantum query complexity

In this section, we establish two fundamental properties of pseudo-deterministic quantum algorithms: the relation between deterministic and quantum pseudo-deterministic algorithms for total search problems, and the completeness of the Find1 problem for quantum pseudo-determinism.

3.1 Maximum quintic speedup for total search problems

We show that for any total search problem, pseudo-deterministic quantum algorithms offer no super-polynomial speed-up over classical algorithms as stated in Theorem 4 that we restate below.

Theorem 4. [Restated, see original statement.]

Let R{0,1}N×𝒴 be a total search problem, then the following holds.

𝖣(R)=O(𝗉𝗌𝖰(R)5log(N)).

This result is a generalization of the classical analogue in [15, Theorem 4.1], which proved that there is a quartic relationship between the classical pseudo-deterministic query complexity and deterministic query complexity of any total search problem. This was proved by first showing that the number of pseudo-deterministic outputs is upper bounded by 2q(N)+1, then calculating each of the q(N)+1 bits of the canonical output separately using the pseudo-deterministic algorithm. Each of these bits – a total boolean function – can be calculated deterministically with a polynomial overhead given the relationship between the deterministic query complexity and the randomized query complexity for total boolean functions.

We use a similar strategy for proving Theorem 4. We first need an upper bound on the number of possible outputs of a pseudo-deterministic quantum algorithm, after this we can encode the canonical output in a bounded number of bits. This step turns out to be a more challenging task than the classical case. Using tools from classical and quantum information theory, we show the following lemma, which may be of independent interest.

Lemma 19.

Let 𝒜 be a pseudo-deterministic quantum query algorithm for a search problem R{0,1}N×{0,1} with query complexity q. Let f𝒜:{0,1}N{0,1} denote the function that maps an element of {0,1}N to the canonical output of 𝒜. Then, the number of possible outputs, |Im(f𝒜)|, is O((2N)3q/2).

Proof.

Let m=|Im(f𝒜)| and suppose the input is X{0,1}N, and for all i[q], registers Bi and Ci represent the input and the output to the oracle for X. Recall that the quantum oracle is expressed as a unitary UX with the following action,

UX:|a|b|a|bXa.

The unitaries (Vi)i[q] prepare the input to the oracle in register Bi while leaving the previous registers unaffected,

Vi: |j1B1|Xj1C1|ji1Bi1|Xji1Ci1|0
|j1B1|Xj1C1|ji1Bi1|Xji1Ci1j=1Nai,j1,,ji1,Xj1,,Xji1,j|j

The algorithm can be expressed in general as Algorithm 1.

Algorithm 1 General pseudo-deterministic quantum algorithm.

Input: X{0,1}N.

The final state before the POVM has dimension (2N)q as it can be expressed as,

(j1,,jq)[N]qa1,j1|j1|Xj1aq,j1,,jq1,Xj1,,Xjq1,jq|jq|Xjq.

This expression exists in a linear subspace that has at most (2N)q linearly independent basis states (defined by each (j1,,jq)[N]q and Xji). This does not change if we add ancillae or additional workspace.

We now invoke Holevo’s bound. Given that |Im(f𝒜)|=m, let 𝐗 be a random variable which is uniformly distributed over the set L={X1,,Xm} whose outputs on applying f𝒜 are different on each element of the set i,j[m]:f𝒜(Xi)=f𝒜(Xj)i=j. Let 𝐘 be the random variable denoting the output of 𝒜 for which the random variable 𝐗 is the input. If the inputs are enumerated (Xt)t[m] and the final state on input Xt is ρt, then Holevo’s bound (Lemma 17 for ensemble (ρt)t[m] and distribution uniform over [m]) states the following,

I(𝐗:𝐘) S(t=1m1mρt)t=1m1mS(ρt)
S(t=1m1mρt)
log(dim(t=1m1mρt))
qlog(2N).

The second line follows as each S(ρt) is non-negative. The third follows by the maximum entropy of a state over dimension d (Remark 15).

The left hand side can be bounded as follows,

I(𝐗:𝐘) =H(𝐗)H(𝐗|𝐘)
=log(m)H(𝐗|𝐘)
log(m)H(13,23)13log(m)
23log(m)2.

The third line follows from Fano’s inequality (Lemma 18).

Therefore, qlog(2N)I(𝐗:𝐘)23log(m)2, which implies m=O((2N)3q/2).

Now we are ready to prove Theorem 4 with a similar search-to-decision argument as in the classical case ([15, Theorem 4.1]). Note that the complexity differs from that in the classical case, as classically turning a decision problem from randomized to deterministic costs a cubic overhead in complexity (f:D(f)=O(R(f)3)), whereas in the quantum setting this is quartic (f:D(f)=O(Q(f)4)).

Proof of Theorem 4 .

Fix a pseudo-deterministic quantum algorithm 𝒜 with query complexity 𝗉𝗌𝖰(R). For every X, there exists a canonical output YX of 𝒜. By Lemma 19, we can encode this output in d=O(𝗉𝗌𝖰(R)log(N)) bits. We can then define d total boolean functions (fi)id, where for all i[d]:fi(X)=(YX)i, i.e., fi outputs the i-th bit of YX.

We use the following fact relating the deterministic query complexity with the quantum query complexity of a decision problem.

Theorem 20 (Theorem 2 [2]).

For any total boolean function f, the deterministic and quantum query complexity are related as follows:

𝖣(fi)=O(𝖰(fi)4)

We also note that 𝖰(fi)=O(𝗉𝗌𝖰(R)) for all i[d], from which we conclude that

𝖣(R)=O(i=1d𝖣(fi))=O(d𝗉𝗌𝖰(R)4)=O(𝗉𝗌𝖰(R)5log(N)).

3.2 General pseudo-deterministic quantum query upper bound

We present a general quantum pseudo-deterministic query upper bound for any problem via its randomized query complexity and verification complexity.

Theorem 5. [Restated, see original statement.]

For any search problem R with randomized query complexity 𝖱(R) and verification complexity 𝖵(R), we have 𝗉𝗌𝖰(R)=O((𝖱(R)+𝖵(R))N).

Our proof is a straightforward generalization of [18, Theorem 3], which shows the completeness of Find1 (for classical pseudo-deterministic query complexity) by building a general reduction from any problem to Find1. We observe that the same reduction also works in the quantum setting, and then combine it with the O(N) upper bound of Find1 [20]. We present a full proof of 5 in the full version of this paper.

4 Query complexity separations

In this section, we prove two query complexity separation results for pseudo-deterministic quantum algorithms. In Section 4.1, we present a problem that is trivial for classical randomized algorithms but maximally hard for pseudo-deterministic quantum algorithms. In Section 4.2, we provide a problem that is easy for both classical randomized algorithms and pseudo-deterministic quantum algorithms, but difficult for classical pseudo-deterministic algorithms.

4.1 A maximally hard problem for pseudo-deterministic quantum algorithms

We define the Avoid One Encrypted String (AOES) problem and prove that its pseudo-deterministic quantum query complexity is Ω(N), while being completely trivial for standard randomized algorithms. We prove the separation of Theorem 1 that we restate below.

Theorem 1. [Restated, see original statement.]

There exists a search problem R whose classical randomized complexity is O(1) and whose pseudo-deterministic quantum query complexity is Ω(N).

We use the XORN problem as our building block, since XORN is (asymptotically) maximally hard for quantum query algorithms. Here, for a,b{0,1}:ab is the exclusive logical-or of the two bits, and for strings X,Y{0,1}r, XY is the bitwise exclusive logical-or of the two strings. We write 𝖷𝖮𝖱(X) as the exclusive or of every bit in the string X.

Here, the input of XORN is a string of length N and the output is the XORN of each bit of the string, we write this problem as XOR without the subscript when the length is clear from context. A quantum algorithm for XOR cannot gain any advantage over a random guess with fewer than N/2 queries, as captured by the following lemma.

Lemma 21 ([12, 5]).

Suppose 𝒜 is a quantum algorithm for the XOR problem which has advantage over a random guess. In other words, if there exists p,δ such that for any X{0,1}N,

[𝒜X=1|(𝖷𝖮𝖱(X)=1)]p+δ,

and

[𝒜X=1|(𝖷𝖮𝖱(X)=0)]p.

Then 𝒜 must have query complexity at least N+12.

We now define our Avoid-One-Encrypted-String (AOES) problem. Informally, the input of AOES uses m separate XOR instances to encrypt a string b{0,1}m, and the goal is to avoid outputting the encrypted string b. The intuition is that since the XOR problem is maximally hard for quantum algorithms, the string b cannot be decrypted, and hence the quantum algorithm cannot avoid it. Note that the parameter m controls a trade-off between the quantum pseudo-deterministic query complexity and the classical randomized query complexity. We obtain the maximal separation by choosing m to be a large constant.

Definition 22 (Avoid-One-Encrypted-String (AOES)).

Let m. In the AOESm problem, we are given oracle access to m different strings X1,,Xm{0,1}N/m. For each i[m] define bi=𝖷𝖮𝖱(Xi).

The goal is to output a string x{0,1}m such that xb.

We write AOES without the subscript when the parameters of the problem are clear from context. We also assume that m divides N and otherwise we can use a standard padding argument. We begin by noting that, for small values of m, AOES is easy for randomized algorithms and hard for deterministic algorithms

Claim 23.

The following holds for the complexity of AOESm.

  • R(AOESm)=O(1);

  • D(AOESm)=Θ(N/m).

Proof.

The first item follows by uniformly randomly sampling a string x{0,1}m which will be a valid solution with probability 11/2m. The upper bound for the second item follows by calculating b1=𝖷𝖮𝖱(X1) using N/m queries and outputting (1b1)0m1.

We prove the lower bound using a standard adversary argument. Suppose there exists a deterministic algorithm 𝒜 for AOES that takes q=N/m1 deterministic queries. Whenever 𝒜 queries a bit, we set that bit equal to 0. After 𝒜 outputs a solution x{0,1}m, there is at least one bit in each string Xi that is not queried by 𝒜. Therefore, one can set those remaining bits such that 𝖷𝖮𝖱(Xi)=xi for all i[m], which implies 𝒜 is wrong.

We show that any pseudo-deterministic quantum algorithm for AOES cannot do much better than the trivial deterministic algorithm.

Theorem 24 (psQ lower bound for AOES).

Let m[N]. Any pseudo-deterministic quantum algorithm for AOESm requires Ω(N/m2) queries.

Note that by setting m in Theorem 24 to be a sufficiently large constant, we obtain Theorem 1. We prove Theorem 24 in two steps. We first transform a zero-error quantum algorithm for AOES into a quantum algorithm for the XOR problem with some non-zero advantage. We then replace the zero-error algorithm with a pseudo-deterministic one.

The following lemma demonstrates that access to a single sample from an algorithm for AOES is enough to extract non-zero information about the XOR of a string.

Lemma 25.

If there exists a zero-error quantum algorithm for AOESN,m with query complexity q, then there exists a quantum algorithm 𝒜 for XORN/m which calls once such that for every input X{0,1}N/m,

[𝒜X=𝖷𝖮𝖱(X)]12+12m+1.
Reduction

We use to construct an algorithm 𝒜 for XORN/m. In this algorithm, we encode the XOR instance X into a randomized instance of AOESm, which is information theoretically indistinguishable to a uniformly random instance from ’s perspective. If ’s output meets certain conditions, we can recover the parity of X with certainty. The pseudocode of algorithm 𝒜 is described in Algorithm 2.

Algorithm 2 Algorithm 𝒜X for XORN/m induced from algorithm for AOESN,m.
Analysis

We now show the correctness of algorithm 𝒜. For simplicity, we define the following bits

x =𝖷𝖮𝖱(X),j[m]:yj=𝖷𝖮𝖱(Yj),zj=𝖷𝖮𝖱(Zj).

After the first three steps of algorithm 𝒜, we get (a1,,am) as a valid solution to the AOES instance (Z1,,Zm). Now, we define the following set

J{j[m]:aj=zj}.

Note that 𝒜 cannot calculate J directly, because 𝒜 does not know the value of zj when jI. Nevertheless, 𝒜 can always test whether J is equal to I, as shown in the following claim.

Claim 26.

The condition at Line 4 is satisfied if and only if I=J.

Proof.

For one direction, if I=J, then for any j[m], it holds that

aj={zjif jIzj1otherwise .

Now replace zj with yj if jI, or with (yjx) otherwise, we get

aj={yjif jIyjx1otherwise .

Therefore, the condition at Line 5 is satisfied by taking t=x1.

For the other direction, if the condition at Line 4 holds, we can rewrite this condition by replacing yj with zj or (zjx) for jI or jI respectively; it holds that

aj={zjif jIzjxtotherwise .

We claim that xt=1; otherwise, we have aj=zj for all j[m], which contradicts to the fact that a is a valid solution to the AOES instance. Therefore, we have I=J by the definition of J.

The proof of Claim 26 immediately implies the following corollary.

Claim 27.

Algorithm 𝒜 always outputs the correct answer at Line 5.

Proof.

In the proof of Claim 26, we show that if the condition at Line 4 holds, it must be the case that xt=1. Thus, x=t1 is the correct answer.

Claim 28.

The condition at Line 4 is satisfied with probability 1/2m.

Proof.

By Claim 26, it suffices to show that I=J happens with probability 1/2m. Note that I is chosen independently with Y1,,Ym, and Y1,,Ym is uniformly random. Therefore, I is also independent with (Z1,,Zm). Since the set J only depends on (Z1,,Zm) and the internal randomness of , I and J are also independent. Therefore, I is equal to J with probability 1/2m.

Combining Claim 27 and Claim 28, the overall success probability of 𝒜 is

12m+12(112m)=12+12m+1,

which concludes Lemma 25.

Finally, we show that we can replace the zero-error algorithm for AOES in Lemma 25 with a pseudo-deterministic algorithm with a small overhead on the query complexity.

Lemma 29.

If there exists a pseudo-deterministic quantum algorithm for AOESN,m with query complexity q, then there exists a quantum algorithm 𝒜 for XORN/m with query complexity O(qm) such that for every input X{0,1}N/m,

[𝒜X=𝖷𝖮𝖱(X)]12+12m+2.
Proof.

Given such a pseudo-deterministic algorithm , we can construct a new algorithm that repeatedly runs X for 100m times and outputs the most common outcomes from these repetitions (breaking ties arbitrarily). By the Chernoff bound, the error probability of is smaller than 12m+2.

Since the zero-error algorithm for AOES is only called once in Lemma 25, we can replace it by , and only increase the overall error probability by at most 12m+2.

Combining Lemma 29 with Lemma 21, we conclude Theorem 24.

 Remark 30.

The only place we use the pseudo-deterministic property for proving Theorem 24 is the repetition trick in Lemma 29. In contrast, the trivial random sampling algorithm for AOES has error probability 1/2m; however, we cannot reduce this error via repetition.

Indeed, our proof of Theorem 24 implies that achieving an error probability that is much lower than 1/2m for AOES is extremely difficult, even for a standard quantum algorithm.

4.2 Exponential pseudo-deterministic quantum advantage

In this section, we define a problem, Quantum-Locked Estimation (QL-Estimation), which is hard for classical algorithms to solve pseudo-deterministically, but is easy for pseudo-deterministic quantum algorithms and randomized classical algorithms.

Theorem 3. [Restated, see original statement.]

There exists a search problem R such that

  1. 1.

    there exists a randomized classical algorithm 𝒜 for R that uses O(logN) queries;

  2. 2.

    there exists a quantum pseudo-deterministic algorithm with O(logN) query complexity that canonizes 𝒜;

  3. 3.

    any classical pseudo-deterministic algorithm for R requires Ω(N) queries.

The QL-Estimation problem can be seen as a lock-and-key construction. We first pick the Hamming problem – calculating an estimate of the Hamming weight of a string – as the “lock”, since it is easy for classical randomized algorithms but hard for any pseudo-deterministic classical algorithm. We then add in a “key”, the Simon’s problem [22], as a search problem with exponential quantum advantage, and the unique solution of the “key” problem is a valid solution of the “lock” problem. Combining these, the input to the lock-and-key promise problem is a pair (f,X). An input of this form satisfies the promise (and is therefore a valid input) if the solution of the key problem on input f is a solution to the lock problem on input X and any valid solution overall is a solution to the lock problem on input X. This implies that a quantum algorithm can obtain the secret string that is the pseudo-deterministic solution to this problem that we know is classically pseudo-deterministically hard.

In this section, unless otherwise stated, N=2n. We start by introducing the following necessary definitions.

Definition 31 (Simon’s Problem).

The input to this problem is a function f:{0,1}n{0,1}n promised to be a 2-to-1 or 1-to-1 function with a secret string s{0,1}n such that

x,y{0,1}n:f(x)=f(y)x=ys or x=y.

Given oracle access to this function, the goal is to output the secret string s. The special case s=0n implies that f is a permutation of the strings of length n.

With some abuse of notation, we interpret s{0,1}n to be either a string or an n-bit binary number interchangeably. For s{0,1}n, we denote by s the set of Simon’s functions on {0,1}n that encode the secret string s, that is all functions f:{0,1}n{0,1}n such that for every distinct x,y{0,1}n it holds that f(x)=f(y) if and only if x=y or x=ys. We shall use the following standard bounds of the query complexity of Simon’s problem.

Theorem 32 ([22]).

Any classical randomized algorithm for Simon’s problem requires Ω(2n/2) queries, whereas there exists a quantum algorithm for Simon’s problem using O(n) queries.

Indeed, we require the following stronger statement regarding the hardness of Simon’s problem.

Lemma 33.

Given a function fs where the secret string s is promised to be in one of two disjoint sets S1,S2{0,1}n, then any classical randomized algorithm needs Ω(min(|S1|,|S2|)) queries to determine whether s is in S1 or S2.

Proof.

With half the probability, let the secret string s be uniformly drawn from S1; and with half the probability, let s be uniformly drawn from S2. Then, take f to be uniformly drawn from s.

By Yao’s minimax principle, it suffices to consider any deterministic algorithm 𝒜 making at most t=o(min(|S1|,|S2|)) queries on the input distribution above. Without loss of generality, we assume 𝒜 will stop and output the answer immediately once it finds a collision of f. By symmetry, we can simplify the decision tree of 𝒜 by merging nodes in a way that each non-leaf node has only two children: one represents that a collision is found, and the other represents that no collision is found.

We call a string t at node u alive if the queries to u’s ancestors have not ruled out the possibility that the secret string of f being t. All the strings in S1 and S2 are alive at the root, and a query at depth d can kill at most d1 strings. By symmetry, the probability that 𝒜 never finds a collision is 1o(1). And conditioned on reaching a leaf u without collision, most of the strings in both S1 and S2 are still alive at u. Thus, no matter 𝒜 outputs S1 or S2 at u, 𝒜 will be wrong with probability at least 12o(1). This concludes that 𝒜 is not correct, and thus Ω(min(|S1|,|S2|)) queries are necessary.

We now formally state the version of the Hamming weight approximate problem that we will denote by Hamming.

Definition 34 (The Hamming Problem).

Given a bit string X{0,1}N, the goal is to output an approximation of the Hamming weight of X within an additive error range of N/10; that is,

Hamming={(X,t){0,1}N×:|X𝗁𝗐t|N/10}.

Since we allow a solution to Hamming to be within a range of the actual Hamming weight, it can be easily solved by a random sampling algorithm in O(1) queries. However, Hamming was proven to be maximally hard for classical pseudo-deterministic algorithm in [15]. We reproduce the proof here, as it includes some useful ideas for proving the lower bound of the QL-Estimation problem later.

Theorem 35 (Corollary 3.2 of [15]).

𝗉𝗌𝖱(Hamming)=Ω(N).

Proof.

Now let 𝒜 be a pseudo-deterministic algorithm for Hamming. Let X{0,1}N be some fixed string whose Hamming weight is N/2, and take t𝒜X. We then pick a string Y{0,1}N whose Hamming weight is the smallest among those for which 𝒜 outputs t with probability at least 2/3 (break ties arbitrarily). The Hamming weight of Y is at least 3N/10.

Now consider the set Y of strings by flipping a “1” to “0” in Y, i.e.,

Y{X{0,1}N:i[N],Xi=0Yi=1(Xj=Yj,ji)}.

By definition, we have 𝒜Y𝒜Y for any string YY; we also know |Y|3N/10. Therefore, 𝒜 requires Ω(N) queries to distinguish Y from all the strings in Y.

We now state the QL-Estimation problem, where the Simon’s problem is the “key” and Hamming is the “lock”.

Definition 36 (The QL-Estimation Problem).

The input is a pair (f,X) for f:{0,1}n{0,1}n and X{0,1}N where N=2n. Here, (f,X) is promised to satisfy the following.

  • fs for a string s{0,1}n, i.e., f is a valid Simon’s instance encoding the secret s;

  • |X𝗁𝗐s|0.09N, i.e., the value of s is a valid solution to the Hamming instance X.

The goal is to output an integer t[N] within N/10 distance of the Hamming weight of X.

In this case, a query to an input (f,X) of QL-Estimation is either a query to f or to X and the query complexity of an algorithm for QL-Estimation is the total number of queries to either part of the input. We show that QL-Estimation is easy for classical randomized and a quantum pseudo-deterministic algorithm exists that canonizes the classical one, but the problem is hard for classical pseudo-deterministic algorithm; this immediately implies Theorem 3.

Theorem 37.

Let N=2n be the length parameter in QL-Estimation, then the following holds for the complexity of QL-Estimation.

  1. 1.

    𝖱(QL-Estimation)=O(1);

  2. 2.

    𝗉𝗌𝖰(QL-Estimation)=O(logN);

  3. 3.

    𝗉𝗌𝖱(QL-Estimation)=Ω(N).

Furthermore, there exists a classical randomized algorithm 𝒜 for QL-Estimation with query complexity O(logN) and a pseudo-deterministic quantum algorithm with query complexity O(log(N)) such that canonizes 𝒜.

Upper bounds and canonization

The first upper bound follows as a classical randomized algorithm can solve the Hamming part directly via sampling and ignore the Simon’s problem with O(1) queries via random sampling. For the second upper bound, note that a pseudo-deterministic quantum algorithm can also solve QL-Estimation using O(logN) queries by first solving for the secret string s given f in the Simon’s problem, and then outputting s as the estimate of the Hamming weight.

For the last remark on canonization (Definition 2), we take the quantum algorithm to be one that solves and outputs the secret string s as described above. However, we need to construct a modified randomized algorithm 𝒜, described in below:

  1. 1.

    Make 106logN queries to X and let t^ be its best estimation of the Hamming weight of X.

  2. 2.

    Output a uniformly random integer in the range I[t^0.095N,t^+0.095N].

By the Chernoff bound, the probability that |t^X𝗁𝗐|0.005N is (1o(1/N)). In that case, 𝒜 always outputs a correct solution, and we have sI by the promise of the QL-Estimation problem. Thus, the canonical output s of will be outputted by 𝒜 with probability Ω(1/N). This concludes that canonizes 𝒜

Pseudo-deterministic lower bound

To show the Ω(N) lower bound for any classical pseudo-deterministic algorithm, we claim that any sub-linear pseudo-deterministic classical algorithm for QL-Estimation must approximately solve the underlying Simon’s problem, implying a lower bound from the classical hardness of Simon’s.

Lemma 38.

Let 𝒜 be a pseudo-deterministic classical algorithm for QL-Estimation that uses o(N) queries. For any string X{0,1}N such that X𝗁𝗐=N/2 and any string s{0,1}n whose value is between 0.41N and 0.59N, it holds that for any Simon’s function fs, the canonical output of 𝒜 on input (f,X) is some t for which |st|0.01N.

Proof.

Take 𝒜,X,s as objects that satisfy the conditions in the statement of Lemma 38 and consider an arbitrary fs and let t be the canonical output of 𝒜 on input (f,X). By the correctness of 𝒜, we have 2N/5t3N/5.

We then pick a string Y𝗅𝗈𝗐 whose Hamming weight is the smallest given that 𝒜(f,) outputs t (break ties arbitrarily). The Hamming weight of Y𝗅𝗈𝗐 is at least 2N/5N/10=3N/10. We claim that Y𝗅𝗈𝗐𝗁𝗐=s0.09N.

Suppose otherwise, i.e., Y𝗅𝗈𝗐𝗁𝗐>s0.09N, we define the set 𝗅𝗈𝗐 of strings reached by flipping any “1” to a “0” in Y𝗅𝗈𝗐. For any string Y𝗅𝗈𝗐, we have Y𝗁𝗐s0.09N, so (f,Y) is a valid input to the QL-Estimation problem. Recall that t is the canonical output of 𝒜 on input (f,Y𝗅𝗈𝗐) and let t be the canonical output of 𝒜 on input (f,Y). By definition of Y𝗅𝗈𝗐, we have that tt. We know |𝗅𝗈𝗐|3N/10, which means 𝒜 needs at least Ω(N) queries to distinguish Y𝗅𝗈𝗐 with all the strings in 𝗅𝗈𝗐. This contradicts the assumption that 𝒜 uses o(N) queries. Thus, we conclude that Y𝗅𝗈𝗐𝗁𝗐=s0.09N.

Similarly, we can take Y𝗁𝗂 to be the string with largest Hamming weight such that 𝒜(f,) outputs t. By symmetry, we have Y𝗁𝗂𝗁𝗐=s+0.09N. Since t is a valid solution for both Y𝗁𝗂 and Y𝗅𝗈𝗐, we have that |t(s0.09N)|N/10 and |t(s+0.09N)|N/10. This implies |st|0.01N.

Now we are ready to prove the lower bound for classical pseudo-deterministic algorithms.

Proof of Theorem 37, Item 3.

Define the sets

S1={s:0.4Ns0.45N},S2={s:0.55Ns0.6N}.

We know |S1|=|S2|=N/20=Ω(N).

Suppose the secret string s is promised to be in one of S1,S2 and the goal is to distinguish between these two cases, Lemma 33 shows that the randomized query complexity of this task is still Ω(N).

Now, let 𝒜 be any classical pseudo-deterministic algorithm for QL-Estimation with o(N) query complexity. If given a Simon’s function fs such that s is in S1 or S2, we can run 𝒜(f,X) for some X with X𝗁𝗐=N/2, and take t to be its pseudo-deterministic solution. By Lemma 38, we must have t0.46N or t0.54N, which allow us to determine whether sS1 or sS2. Therefore, the query complexity of 𝒜 is Ω(N).

References

  • [1] Scott Aaronson. BQP and the polynomial hierarchy. In Leonard J. Schulman, editor, Proceedings of the 42nd ACM Symposium on Theory of Computing, STOC 2010, Cambridge, Massachusetts, USA, 5-8 June 2010, pages 141–150. ACM, 2010. doi:10.1145/1806689.1806711.
  • [2] Scott Aaronson, Shalev Ben-David, Robin Kothari, Shravas Rao, and Avishay Tal. Degree vs. approximate degree and quantum implications of huang’s sensitivity theorem. In Samir Khuller and Virginia Vassilevska Williams, editors, STOC ’21: 53rd Annual ACM SIGACT Symposium on Theory of Computing, Virtual Event, Italy, June 21-25, 2021, pages 1330–1342. ACM, 2021. doi:10.1145/3406325.3451047.
  • [3] Scott Aaronson and Shih-Han Hung. Certified randomness from quantum supremacy. In Barna Saha and Rocco A. Servedio, editors, Proceedings of the 55th Annual ACM Symposium on Theory of Computing, STOC 2023, Orlando, FL, USA, June 20-23, 2023, pages 933–944. ACM, 2023. doi:10.1145/3564246.3585145.
  • [4] Roozbeh Bassirian, Adam Bouland, Bill Fefferman, Sam Gunn, and Avishay Tal. On certified randomness from fourier sampling or random circuit sampling. arXiv preprint, 2021. arXiv:2111.14846.
  • [5] Robert Beals, Harry Buhrman, Richard Cleve, Michele Mosca, and Ronald de Wolf. Quantum lower bounds by polynomials. J. ACM, 48(4):778–797, 2001. doi:10.1145/502090.502097.
  • [6] Vladimir Braverman, Robert Krauthgamer, Aditya Krishnan, and Shay Sapir. Lower bounds for pseudo-deterministic counting in a stream. In Kousha Etessami, Uriel Feige, and Gabriele Puppis, editors, 50th International Colloquium on Automata, Languages, and Programming, ICALP 2023, July 10-14, 2023, Paderborn, Germany, volume 261 of LIPIcs, pages 30:1–30:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.ICALP.2023.30.
  • [7] Arkadev Chattopadhyay, Yogesh Dahiya, and Meena Mahajan. Query complexity of search problems. Electron. Colloquium Comput. Complex., TR23-039, 2023. URL: https://eccc.weizmann.ac.il/report/2023/039.
  • [8] Lijie Chen, Zhenjian Lu, Igor C. Oliveira, Hanlin Ren, and Rahul Santhanam. Polynomial-time pseudodeterministic construction of primes. In 64th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2023, Santa Cruz, CA, USA, November 6-9, 2023, pages 1261–1270. IEEE, 2023. doi:10.1109/FOCS57990.2023.00074.
  • [9] Andrew M. Childs and Jason M. Eisenberg. Quantum algorithms for subset finding. Quantum Inf. Comput., 5(7):593–604, 2005. doi:10.26421/QIC5.7-7.
  • [10] Peter Dixon, Aduri Pavan, and N. V. Vinodchandran. Promise problems meet pseudodeterminism. CoRR, abs/2103.08589, 2021. arXiv:2103.08589.
  • [11] Peter Dixon, Aduri Pavan, Jason Vander Woude, and N. V. Vinodchandran. Pseudodeterminism: promises and lowerbounds. In Stefano Leonardi and Anupam Gupta, editors, STOC ’22: 54th Annual ACM SIGACT Symposium on Theory of Computing, Rome, Italy, June 20 - 24, 2022, pages 1552–1565. ACM, 2022. doi:10.1145/3519935.3520043.
  • [12] Edward Farhi, Jeffrey Goldstone, Sam Gutmann, and Michael Sipser. Limit on the speed of quantum computation in determining parity. Physical Review Letters, 81(24):5442, 1998.
  • [13] Eran Gat and Shafi Goldwasser. Probabilistic search algorithms with unique answers and their cryptographic applications. Electron. Colloquium Comput. Complex., TR11-136, 2011. URL: https://eccc.weizmann.ac.il/report/2011/136.
  • [14] Michel X. Goemans, Shafi Goldwasser, and Dhiraj Holden. Doubly-efficient pseudo-deterministic proofs. CoRR, abs/1910.00994, 2019. arXiv:1910.00994.
  • [15] Oded Goldreich, Shafi Goldwasser, and Dana Ron. On the possibilities and limitations of pseudodeterministic algorithms. In Robert D. Kleinberg, editor, Innovations in Theoretical Computer Science, ITCS ’13, Berkeley, CA, USA, January 9-12, 2013, pages 127–138. ACM, 2013. doi:10.1145/2422436.2422453.
  • [16] Shafi Goldwasser, Ofer Grossman, and Dhiraj Holden. Pseudo-deterministic proofs. In Anna R. Karlin, editor, 9th Innovations in Theoretical Computer Science Conference, ITCS 2018, January 11-14, 2018, Cambridge, MA, USA, volume 94 of LIPIcs, pages 17:1–17:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018. doi:10.4230/LIPIcs.ITCS.2018.17.
  • [17] Shafi Goldwasser, Ofer Grossman, Sidhanth Mohanty, and David P. Woodruff. Pseudo-deterministic streaming. In Thomas Vidick, editor, 11th Innovations in Theoretical Computer Science Conference, ITCS 2020, January 12-14, 2020, Seattle, Washington, USA, volume 151 of LIPIcs, pages 79:1–79:25. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPIcs.ITCS.2020.79.
  • [18] Shafi Goldwasser, Russell Impagliazzo, Toniann Pitassi, and Rahul Santhanam. On the pseudo-deterministic query complexity of NP search problems. In Valentine Kabanets, editor, 36th Computational Complexity Conference, CCC 2021, July 20-23, 2021, Toronto, Ontario, Canada (Virtual Conference), volume 200 of LIPIcs, pages 36:1–36:22. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPIcs.CCC.2021.36.
  • [19] Ofer Grossman, Meghal Gupta, and Mark Sellke. Tight space lower bound for pseudo-deterministic approximate counting. In 64th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2023, Santa Cruz, CA, USA, November 6-9, 2023, pages 1496–1504. IEEE, 2023. doi:10.1109/FOCS57990.2023.00091.
  • [20] Robin Kothari. An optimal quantum algorithm for the oracle identification problem. In Ernst W. Mayr and Natacha Portier, editors, 31st International Symposium on Theoretical Aspects of Computer Science, STACS 2014, Lyon, France, March 5-8, 2014, LIPIcs, pages 482–493. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2014. doi:10.4230/LIPIcs.STACS.2014.482.
  • [21] Michael A. Nielsen and Isaac L. Chuang. Quantum Computation and Quantum Information (10th Anniversary edition). Cambridge University Press, 2016. URL: https://www.cambridge.org/de/academic/subjects/physics/quantum-physics-quantum-information-and-quantum-computation/quantum-computation-and-quantum-information-10th-anniversary-edition?format=HB.
  • [22] Daniel R. Simon. On the power of quantum computation. SIAM J. Comput., 26(5):1474–1483, 1997. doi:10.1137/S0097539796298637.
  • [23] Takashi Yamakawa and Mark Zhandry. Verifiable quantum advantage without structure. J. ACM, 71(3):20, 2024. doi:10.1145/3658665.