betaFeedback

WorksPhysics and Astronomy

Distributional Quantum Query Complexity

Abstract

Quantum query complexity enjoys a variety of pleasing joint computation properties: for example, a composition theorem asserting Q(f∘g)=Θ(Q(f)Q(g))Q(f\circ g)=Θ(Q(f)Q(g)) for all Boolean functions ff and gg; a direct sum theorem asserting that computing kk copies of a function (or search problem) costs Ω(k)Ω(k) times as much as the cost of computing one copy; and a direct product theorem asserting that for Boolean functions, even succeeding at the direct sum problem with exponentially small probability still requires Ω(k)Ω(k) times the cost of computing one copy to bounded error. However, all of these results are strictly for worst-case quantum query complexity. For example, if we have a fixed distribution μμ over inputs, the direct sum theorem says nothing about the quantum query complexity of computing kk copies of ff when the input comes from the product distribution μkμ^k instead of being worst-case. (Note that while a standard Yao-type minimax theorem guarantees a hard distribution for the direct sum problem, there's no guarantee that this hard distribution is a product distribution.) A similar problem occurs for the direct product theorem and the composition theorem: none of these results respect distributions. In this work, we give distributional joint computation lower bounds for the composition, direct sum, and direct product problems. Along the way, we introduce some new tools for handling quantum query lower bounds, including (a) a new multiplicative'' variant of the $γ_2$ norm (which we use in place of the multiplicative adversary method for proving the direct product theorem), and (b) a new Shaltiel-free'' measure of quantum query complexity, which we show characterizes the composition behavior of distributional quantum query complexity and satisfies pleasing properties.

Preliminaries

Notation and Hilbert spaces

Norms and measures of distinguishability

Schatten norms

γ2\gamma_2 norm

Fidelity

Distances between density operators

Divergences and max-relative entropy

Quantum information theory

Quantum channels

Quantum Measurements

Gram matrices and purifications

Search and decision problems

Agreement and disagreement matrices

Tensorization

Composition

Quantum query complexity

The coherent oracle model

Query complexity of Gram matrices

(Worst-case) quantum query complexity

Analysis and optimization

Distributional quantum query complexity

Gram matrix formulation of query complexity

Witness matrices and valid Gram matrices

Fidelity characterization

Functional and decision problems

A simpler characterization for decision problems

Trace-norm bounds

Distributional state conversion

A distributional analogue of the γ2\gamma_2 norm

Definition and general properties

Equivalent primal and dual formulations

Basic properties

Bounding query complexity

Lower bounding query complexity

Upper bounding query complexity

Introduction

Quantum query complexity is usually studied as worst-case complexity: the quantum query complexity of a function f:{0,1}n→{0,1}f:\{0,1\}^{n}\to\{0,1\}, denoted Q(f)Q(f), is the minimum number of queries that can be made by a quantum algorithm which computes ff to error at most 1/31/3 on all inputs. However, it is often of interest to study quantum query complexity against a known distribution over the inputs. If μ\mu is a distribution over {0,1}n\{0,1\}^{n}, we denote by Qμ(f)Q^{\mu}(f) the minimum number of queries that can be made by a quantum algorithm which computes ff to error at most 1/31/3 when the input is sampled from μ\mu; this time, the error is with respect to both the internal randomness of the algorithm and the randomness of the sampled input string.

A variety of joint computation results are known for quantum query complexity. One notable example is the composition theorem: Q(f∘g)=Θ(Q(f)Q(g))Q(f\circ g)=\Theta(Q(f)Q(g)), where f∘gf\circ g is the composition of ff with nn independent copies of gg [17 LMR+11, Kim13]. Another important example is the direct product theorem [LR12]: Q1−0.9k(fk)=Ω(kQ(f))Q_{1-0.9^{k}}(f^{k})=\Omega(kQ(f)), where here fkf^{k} denotes the task of computing kk copies of ff, and Q1−0.9kQ_{1-0.9^{k}} denotes the quantum query complexity when the error must be at most 1−0.9k1-0.9^{k} (that is, the success probability must be at least 0.9k0.9^{k}). The direct product theorem says that solving kk copies of ff requires kk times as many queries as solving one copy, and this remains true even if we are only required to solve the kk copies with exponentially small probability. An easier version of the direct product problem is known as the direct sum theorem, which says that computing kk copies of ff to bounded error (rather than with exponentially small success) requires Ω(kQ(f))\Omega(kQ(f)) queries.

While these powerful theorems are known for worst-case quantum query complexity, they are not known in the distributional setting. This is because the proofs of these theorems use the negative weight adversary method and/or the multiplicative adversary method, which work naturally in the worst-case setting (though see [9, 7, 10, 18] for previous work on distributional adversary bounds). In this work, we give the first distributional composition theorem, direct sum theorem, and direct product theorem for quantum query complexity. In such joint computation tasks, the upper bounds are generally easy, at least up to log factors; we focus our efforts on lower bounding the distributional complexity of these joint computation problems.

We view this setting as naturally motivated: it is often the case that we know the distribution from which the input will come, but still wish to lower bound the quantum query complexity. For instance, this occurs in cryptographic applications, in which a secret key may be sampled from a known distribution but a quantum lower bound is still desired. We believe that a distributional direct product theorem is a particularly promising tool for cryptographic applications, since it gives a lower bound even against an algorithm that succeeds with very low probability, and the hard distribution is easy to sample from (it is a product distribution).

Our results

Composition theorem

Let ff be a possibly partial Boolean function on nn bits, and let gg be a possibly partial Boolean function on mm bits. Let μ\mu be a distribution over the domain of ff, and let ν0,ν1\nu_0,\nu_1 be distributions over g−1(0)g^{-1}(0) and g−1(1)g^{-1}(1) respectively. The composition of μ\mu with (ν0,ν1)(\nu_0,\nu_1), denoted μ∘(ν0,ν1)\mu\circ(\nu_0,\nu_1), is the distribution over inputs to f∘gf \circ g that we get by sampling an nn-bit string yy from μ\mu, then for each of the nn bits yiy_i of yy, sampling a string x(i)x^{(i)} from νyi\nu_{y_i}, and concatenating these strings to form the final string x=x(1)x(2)…x(n)x = x^{(1)}x^{(2)}\ldots x^{(n)} of length mnmn. This distribution μ∘(ν0,ν1)\mu\circ(\nu_0,\nu_1) is the natural way of composing a distribution μ\mu for ff with a distribution ν\nu for gg (where ν\nu is presumed to be an even mixture of ν0\nu_0 and ν1\nu_1).

One may wish for a distributional composition theorem of the form

Qμ∘(ν0,ν1)(f∘g)=Ω(Qμ(f)Qν(g)).Q^{\mu\circ(\nu_0,\nu_1)}(f\circ g)=\Omega(Q^\mu(f)Q^\nu(g)).

However, there are a couple of issues with this statement. First, in the distributional setting, we do not have error reduction (repeating the algorithm to amplify the success would require a new sample from the distribution in question, and we only have one sampled input string). Instead of writing Qμ(f)Q^\mu(f), we should really be writing Qϵμ(f)Q^\mu_\epsilon(f) where we specify the error level ϵ\epsilon.

A more serious problem comes from Shaltiel [Sha03]. Shaltiel noticed that in the distributional setting, the distribution on gg may rarely give a very easy input: for example, suppose with probability 0.1 the input is trivial to solve and can immediately be seen to be trivial to solve, while with probability 0.9 the input is hard. Solving gg against this distribution to error 1/31/3 is difficult, and requires many queries. However, if we happened to get 100 independent samples with correlated gg-values (either all samples are 0-inputs or all are 1-inputs), then we can solve the copies of gg easily: we just need to find a single easy input. In other words, if we take ff to be the “trivial function” that maps 0n0^n to 0 and 1n1^n to 1 (with all other strings being outside the domain of ff), then the distributional complexity of f∘gf\circ g on a composed distribution (composing the obvious uniform distribution for ff with a Shaltiel-type distribution for gg) may be lower than the distributional complexity of gg.

Instead, our distributional composition theorem has the following form.

Theorem 1 (Informal). Let ff and gg be (possibly partial) Boolean functions, let μ\mu be a distribution over the domain of ff, and let ν0\nu_0 and ν1\nu_1 be distributions over g−1(0)g^{-1}(0) and g−1(1)g^{-1}(1) respectively. Then for any ϵ>0\epsilon> 0, we have

Qϵμ∘(ν0,ν1)(f∘g)=Ω(Q2ϵμ(f)⋅sfAdv⁡(ν0,ν1)(g)).Q_\epsilon^{\mu\circ(\nu_0,\nu_1)}(f\circ g)=\Omega\left(Q_{2\epsilon}^{\mu}(f)\cdot\operatorname{sfAdv}^{(\nu_0,\nu_1)}(g)\right).

Moreover, the new measure sfAdv⁡(ν0,ν1)(g)\operatorname{sfAdv}^{(\nu_0,\nu_1)}(g) is the best possible for this theorem statement.

In this theorem, we lose a factor of ϵ\epsilon, and the error parameter changes from ϵ\epsilon to 2ϵ2\epsilon. The lower bound dependence on gg is also in terms of a new measure, the “Shaltiel-free adversary measure” sfAdv⁡\operatorname{sfAdv}. We show this theorem is tight by showing that sfAdv⁡(ν0,ν1)(g)\operatorname{sfAdv}^{(\nu_0,\nu_1)}(g) is characterized as the distributional complexity of triv⁡n\operatorname{triv}_n composed with gg (with the obvious choice of distributions), in the limit as n→∞n \to\infty, where triv⁡n\operatorname{triv}_n is the trivial function described above which maps 0n→00^n \to0 and 1n→11^n \to1. Since Qϵ(triv⁡n)=1Q_{\epsilon}(\operatorname{triv}_n) = 1, it follows that the theorem is tight when f=triv⁡nf = \operatorname{triv}_n for large nn. In other words, the measure sfAdv⁡(g)\operatorname{sfAdv}(g) cannot be replaced by any larger measure in the above theorem when ff is arbitrary.

Direct product theorem

Our distributional direct product theorem is as follows.

Theorem 2 (Informal). For a decision or search problem ff, a distribution μ\mu, 0<α<10 < \alpha< 1, and an integer k≥1k \ge1, we have

Q1−(1+α2)kμ⊗k(f⊗k)=Ω(k(1−α)Q1−αμ(f)).Q_{1-\left(\frac{1+\alpha}{2}\right)^k}^{\mu^{\otimes k}}(f^{\otimes k}) = \Omega\left(k(1-\alpha)Q_{1-\alpha}^{\mu}(f)\right).

This theorem strengthens the direct product theorem of [LR12] by making it distributional instead of worst-case. We also have a better dependency on the error parameter, and our result works for search problems rather than only functional problems.

We are also able to use our techniques to get related results, such as a distributional XOR lemma.

Our techniques

Foundations of the distributional framework

A Gram-matrix characterization of distributional query complexity. Our starting point is to characterize distributional quantum query complexity as a state-conversion problem.

Let ff be a function and μ\mu a distribution. Then, a quantum algorithm starts in the coherent state ∑xμ(x)∣x⟩∣0⟩\sum_x\sqrt{\mu(x)}|x\rangle|0\rangle and produces the final state ∣ψ⟩=∑xμ(x)∣x⟩∣ψx⟩|\psi\rangle=\sum_x\sqrt{\mu(x)}|x\rangle|\psi_x\rangle. Roughly speaking, to measure the success of the algorithm, we want to consider its overlap ∣⟨w∣ψ⟩∣|\langle w|\psi\rangle| with a witness state ∣w⟩=∑xμ(x)∣x⟩∣wx⟩|w\rangle=\sum_x\sqrt{\mu(x)}|x\rangle|w_x\rangle that perfectly distinguishes inputs with different outputs, meaning ⟨wx∣wy⟩=0\langle w_x|w_y\rangle=0 whenever f(x)≠f(y)f(x)\ne f(y).

In particular, unlike the worst-case setting, the vectors ∣wx⟩|w_x\rangle might not be normalized individually. Intuitively, this allows us to put more weight on inputs where the algorithm succeeds more often and less weight on inputs where it fails. However, we still require the joint state ∣w⟩|w\rangle to have norm one.

Using Uhlmann’s characterization of fidelity, we can then write the success condition

F(Ψ∘∣μ⟩⟨μ∣,W∘∣μ⟩⟨μ∣)≥1−ϵ,\mathcal{F}\left(\Psi\circ|\mu\rangle\langle\mu|,W\circ|\mu\rangle\langle\mu|\right)\ge\sqrt{1-\epsilon},

where Ψ(x,y)=⟨ψx∣ψy⟩\Psi(x,y)=\langle\psi_x|\psi_y\rangle and W(x,y)=⟨wx∣wy⟩W(x,y)=\langle w_x|w_y\rangle is a valid witness matrix. As a result, we obtain the following characterization of distributional quantum query complexity.

Theorem 3 (Informal). Let Wfμ\mathcal{W}_f^\mu denote the set of valid witness matrices for ff under μ\mu, and let Gϵμ(f)\mathcal{G}_\epsilon^\mu(f) be the set of all Gram matrices Ψ\Psi for which there exists a witness W∈WfμW\in\mathcal{W}_f^\mu satisfying F(Ψ∘∣μ⟩⟨μ∣,W∘∣μ⟩⟨μ∣)≥1−ϵ\mathcal{F}\left(\Psi\circ|\mu\rangle\langle\mu|,W\circ|\mu\rangle\langle\mu|\right)\ge\sqrt{1-\epsilon}. Then,

Qϵμ(f)=min⁡Ψ∈Gϵμ(f)Q(Ψ).Q_\epsilon^\mu(f)=\min_{\Psi\in\mathcal{G}_\epsilon^\mu(f)}Q(\Psi).

Having this characterization, we can focus on state conversion and work with Gram matrices directly. In Section 3.1, we formally define the witness and target sets and prove this equivalence.

Distributional state conversion. To upper bound quantum query complexity, we also need to be able to approximate Gram matrices with quantum algorithms. More generally, we consider converting an initial Gram matrix Φ\Phi into a target Gram matrix Ψ\Psi as follows.

Theorem 4 (Informal). Suppose we can write the difference between two Gram matrices as

Φ−Ψ=∑iΔi∘Xi,Ψ⪰r−12∑iXi,\Phi-\Psi=\sum_i\Delta_i\circ X_i,\qquad\Psi\succeq\frac{r-1}{2}\sum_i X_i,

for PSD matrices XiX_i and r≥1r\ge1. Then, for any integer T≥1T\ge1, there exists a Gram matrix Ψ~\widetilde{\Psi} with query complexity Q(Φ→Ψ~)≤TQ(\Phi\to\widetilde{\Psi})\le T and fidelity

F(Ψ~∘∣μ⟩⟨μ∣,Ψ∘∣μ⟩⟨μ∣)≥1−∑iTr⁡[Xi∘∣μ⟩⟨μ∣]∑j=0T−1rj.F(\widetilde{\Psi}\circ\lvert\mu\rangle\langle\mu\rvert,\Psi\circ\lvert\mu\rangle\langle\mu\rvert)\ge1-\frac{\sum_i\operatorname{Tr}[X_i\circ\lvert\mu\rangle\langle\mu\rvert]}{\sum_{j=0}^{T-1}r^j}.

References

  1. [1]Andris Ambainis, Andrew M. Childs, François Le Gall, and Seiichiro Tani. “The Quantum Query Complexity of Certification”. In: Quantum Information and Computation 10.3–4 (2010), pp. 181–189. DOI: 10.26421/QIC10.3-4-1. URL: https://www.rintonpress.com/journals/doi/QIC10.3-4-1.html (cit. on pp. 9, 39).DOI
  2. [2]Andris Ambainis. “Quantum Lower Bounds by Quantum Arguments”. In: Proceedings of the 32nd Annual ACM Symposium on Theory of Computing (STOC). ACM, 2000, pp. 636–643. DOI: 10.1145/335305.335394. URL: https://arxiv.org/abs/quant-ph/0002066 (cit. on p. 9).
  3. [3]Andris Ambainis. “Polynomial Degree vs. Quantum Query Complexity”. In: Journal of Computer and System Sciences 72.2 (2006), pp. 220–238. DOI: 10.1016/j.jcss.2005.06.006. URL: https://arxiv.org/abs/quant-ph/0305028 (cit. on p. 9).
  4. [4]Andris Ambainis, Loïck Magnin, Martin Roetteler, and Jérémie Roland. “Symmetry-Assisted Adversaries for Quantum State Generation”. In: Proceedings of the 26th Annual IEEE Conference on Computational Complexity (CCC). IEEE, 2011, pp. 167–177. DOI: 10.1109/CCC.2011.24. URL: https://arxiv.org/abs/1012.2112 (cit. on p. 9).
  5. [5]Shalev Ben-David and Eric Blais. “A Tight Composition Theorem for the Randomized Query Complexity of Partial Functions: Extended Abstract”. In: 2020 IEEE 61st Annual Symposium on Foundations of Computer Science (FOCS). IEEE, 2020, pp. 240–246. DOI: 10.1109/FOCS46700.2020.00031. URL: https://arxiv.org/abs/2002.10809 (cit. on pp. 9, 49).
  6. [6]Shalev Ben-David, Eric Blais, Mika Göös, and Gilbert Maystre. Randomised Composition and Small-Bias Minimax. 2022. arXiv: 2208.12896 [cs.CC]. URL: https://arxiv.org/abs/2208.12896 (cit. on p. 10).
  7. [7]Aleksandrs Belovs, Gilles Brassard, Peter Høyer, Marc Kaplan, Sophie Laplante, and Louis Salvail. “Provably Secure Key Establishment Against Quantum Adversaries”. In: 12th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2017). Vol. 73. Leibniz International Proceedings in Informatics (LIPIcs). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018, 3:1–3:17. DOI: 10.4230/LIPIcs.TQC.2017.3. URL: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.TQC.2017.3 (cit. on pp. 4, 9, 45).DOI
  8. [8]Andrew Bassilakis, Andrew Drucker, Mika Göös, Lunjia Hu, Weiyun Ma, and Li-Yang Tan. “The Power of Many Samples in Query Complexity”. In: 47th International Colloquium on Automata, Languages, and Programming (ICALP 2020). Vol. 168. Leibniz International Proceedings in Informatics (LIPIcs). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020, 9:1–9:18. DOI: 10.4230/LIPIcs.ICALP.2020.9. URL: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICALP.2020.9 (cit. on pp. 10, 59).DOI
  9. [9]Aleksandrs Belovs. Variations on Quantum Adversary. 2015. arXiv: 1504.06943 [quant-ph]. URL: https://arxiv.org/abs/1504.06943 (cit. on pp. 4, 9, 21, 36).
  10. [10]Aleksandrs Belovs. “A Direct Reduction from the Polynomial to the Adversary Method”. In: 19th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2024). Vol. 310. Leibniz International Proceedings in Informatics (LIPIcs). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024, 11:1–11:15. DOI: 10.4230/LIPIcs.TQC.2024.11. URL: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.TQC.2024.11 (cit. on p. 4).DOI
  11. [11]Paul Beame, Niels Kornerup, and Michael Whitmeyer. Strong Selective and List-Decoding Direct Product Theorems for Quantum Query Complexity. 2026. arXiv: 2609.26678 [cs.CC]. URL: https://arxiv.org/abs/2609.26678 (cit. on p. 10).
  12. [12]Aleksandrs Belovs and Troy Lee. The Quantum Query Complexity of Composition with a Relation. 2020. arXiv: 2004.06439 [quant-ph]. URL: https://arxiv.org/abs/2004.06439 (cit. on pp. 9, 52).
  13. [13]Howard Barnum, Michael Saks, and Mario Szegedy. “Quantum Query Complexity and Semi-Definite Programming”. In: Proceedings of the 18th Annual IEEE Conference on Computational Complexity (CCC). IEEE, 2003, pp. 179–193. DOI: 10.1109/CCC.2003.1214419 (cit. on p. 9).DOI
  14. [14]Stephen P. Boyd and Lieven Vandenberghe. Convex Optimization. Cambridge University Press, 2004 (cit. on p. 20).
  15. [15]Aleksandrs Belovs and Duyal Yolcu. One-Way Ticket to Las Vegas and the Quantum Adversary. 2023. arXiv: 2301.02003 [quant-ph]. URL: https://arxiv.org/abs/2301.02003 (cit. on pp. 7, 9, 26).
  16. [16]Carl W. Helstrom. Quantum Detection and Estimation Theory. Academic Press, 1976 (cit. on p. 15).
  17. [17]Peter Høyer, Troy Lee, and Robert Špalek. “Negative Weights Make Adversaries Stronger”. In: Proceedings of the 39th Annual ACM Symposium on Theory of Computing (STOC). ACM, 2007, pp. 526–535. DOI: 10.1145/1250790.1250867. URL: https://arxiv.org/abs/quant-ph/0611054 (cit. on pp. 4, 9, 52).
  18. [18]Stacey Jeffery and Sebastian Zur. “The Compressed Oracle Is a Worthy (Multiplicative) Adversary”. In: 53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026). Vol. 374. Leibniz International Proceedings in Informatics (LIPIcs). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026, 118:1–118:23. DOI: 10.4230/LIPIcs.ICALP.2026.118. URL: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICALP.2026.118 (cit. on pp. 4, 10).DOI

Paper details

vlnc:W_wrj3uutt
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents