English

Quantum Query Complexity of Dyck Languages with Bounded Height

Quantum Physics 2020-02-20 v3 Computational Complexity

Abstract

We consider the problem of determining if a sequence of parentheses is well parenthesized, with a depth of at most h. We denote this language as DyckhDyck_h. We study the quantum query complexity of this problem for different h as function of the length n of the word. It has been known from a recent paper by Aaronson et al. that, for any constant h, since DyckhDyck_h is star-free, it has quantum query complexity Θ~(n)\tilde{\Theta}(\sqrt{n}), where the hidden logarithm factors in Θ~\tilde{\Theta} depend on h. Their proof does not give rise to an algorithm. When h is not a constant, DyckhDyck_h is not even context-free. We give an algorithm with O(nlog(n)0.5h)O\left(\sqrt{n}\log(n)^{0.5h}\right) quantum queries for DyckhDyck_h for all h. This is better than the trival upper bound nn when h=o(log(n)loglogn)h=o(\frac{\log(n)}{\log\log n}). We also obtain lower bounds: we show that for every 0<ϵ0.370<\epsilon\leq 0.37, there exists c>0c>0 such that Q(Dyckclog(n)(n))=Ω(n1ϵ)Q(\text{Dyck}_{c\log(n)}(n))=\Omega(n^{1-\epsilon}). When h=ω(log(n))h=\omega(\log(n)), the quantum query complexity is close to nn, i.e. Q(Dyckh(n))=ω(n1ϵ)Q(\text{Dyck}_h(n))=\omega(n^{1-\epsilon}) for all ϵ>0\epsilon>0. Furthermore when h=Ω(nϵ)h=\Omega(n^\epsilon) for some ϵ>0\epsilon>0, Q(Dyckh(n))=Θ(n)Q(\text{Dyck}_{h}(n))=\Theta(n).

Cite

@article{arxiv.1912.02176,
  title  = {Quantum Query Complexity of Dyck Languages with Bounded Height},
  author = {Kamil Khadiev and Yixin Shen},
  journal= {arXiv preprint arXiv:1912.02176},
  year   = {2020}
}
R2 v1 2026-06-23T12:36:02.078Z