English

Quantum Search With Generalized Wildcards

Quantum Physics 2025-11-07 v1 Computational Complexity

Abstract

In the search with wildcards problem [Ambainis, Montanaro, Quantum Inf.~Comput.'14], one's goal is to learn an unknown bit-string x{1,1}nx \in \{-1,1\}^n. An algorithm may, at unit cost, test equality of any subset of the hidden string with a string of its choice. Ambainis and Montanaro showed a quantum algorithm of cost O(nlogn)O(\sqrt{n} \log n) and a near-matching lower bound of Ω(n)\Omega(\sqrt{n}). Belovs [Comput.~Comp.'15] subsequently showed a tight O(n)O(\sqrt{n}) upper bound. We consider a natural generalization of this problem, parametrized by a subset Q2[n]\cal{Q} \subseteq 2^{[n]}, where an algorithm may test whether xS=bx_S = b for an arbitrary SQS \in \cal{Q} and b{1,1}Sb \in \{-1,1\}^S of its choice, at unit cost. We show near-tight bounds when Q\cal{Q} is any of the following collections: bounded-size sets, contiguous blocks, prefixes, and only the full set. All of these results are derived using a framework that we develop. Using symmetries of the task at hand we show that the quantum query complexity of learning xx is characterized, up to a constant factor, by an optimization program, which is succinctly described as follows: `maximize over all odd functions f:{1,1}nRf : \{-1,1\}^n \to \mathbb{R} the ratio of the maximum value of ff to the maximum (over TQT \in \cal{Q}) standard deviation of ff on a subcube whose free variables are exactly TT.' To the best of our knowledge, ours is the first work to use the primal version of the negative-weight adversary bound (which is a maximization program typically used to show lower bounds) to show new quantum query upper bounds without explicitly resorting to SDP duality.

Keywords

Cite

@article{arxiv.2511.04669,
  title  = {Quantum Search With Generalized Wildcards},
  author = {Arjan Cornelissen and Nikhil S. Mande and Subhasree Patro and Nithish Raja and Swagato Sanyal},
  journal= {arXiv preprint arXiv:2511.04669},
  year   = {2025}
}
R2 v1 2026-07-01T07:25:06.120Z