betaFeedback

WorksComputer Science

Lower space bounds for polynomial-time quantum computation

Abstract

We present new results on the minimal space requirements of problems solvable by polynomial-time quantum Turing machines. We define the notion of Monte Carlo space complexity (where the machine is allowed to give an incorrect output or exceed the designated space budget for every input with small nonzero probability) for quantum computation, and prove that for any computable nondecreasing space bound s(n)∈ω(1)s(n)\in ω(1), there is a language that can be recognized in polynomial time by an s(n)s(n)-space QTM but not by any O(1)O(1)-space machine in that regime. We also demonstrate a sublogarithmic worst-case space hierarchy for polynomial-time quantum computation, proving that BQTISP(nO(1),o(si(n)))⊊BQTISP(nO(1),O(si(n)))\mathsf{BQTISP}(n^{O(1)},o(s_{i}(n)))\subsetneq \mathsf{BQTISP}(n^{O(1)},O(s_{i}(n))), where for each i≥0i\ge0, si(n)=(log⁡n(log⁡log⁡n)i)s_{i}(n)=\left(\frac{\log n}{(\log \log n)^i}\right).

Introduction

The dependence of the problem-solving capabilities of quantum computers on their time and memory budgets is an important topic of study. An algorithm is considered practically feasible only if its consumption of these two types of resources grows reasonably slowly as functions of the input length. For time complexity, polynomial bounds are universally considered reasonable in this context. At the current stage of development of quantum hardware, much stricter space budgets, corresponding to logarithmic or even sublogarithmic bounds, seem more realistic.

Although substantial quantum space and time-space lower bounds are known for streaming models, query complexity, and for tasks with long outputs such as sorting and matrix multiplication [2, 3, 6], space lower bounds for language recognition by general quantum Turing machines (QTMs), which we focus on in this paper, are considerably rarer [19]. Previous work [1, 11, 12, 13] on the landscape of problems that can be solved by polynomial-time QTMs under worst-case small space bounds led to the following results:

  • Remscrim [12] proved an important theorem establishing a tradeoff between the runtime and memory usage of small-space quantum algorithms based on a well-known difficulty measure [17] of the language they are supposed to recognize. Using this tool, he was able to show that no sublogarithmic-space QTM can recognize LpalL_{\mathrm{pal}}, the language of palindromes on the alphabet {0,1}\{0,1\}, within 2n1−Ω(1)2^{n^{1-\Omega(1)}} time. Note that LpalL_{\mathrm{pal}} can be recognized by a deterministic Turing machine in polynomial time within O(log⁡n)O(\log n) space.

  • Say [13, 15] demonstrated the existence of another “space threshold” by exhibiting a language which has no polynomial-time quantum algorithm when the allowed space is in o(log⁡log⁡n)o(\log\log n), but can be recognized deterministically in polynomial time within O(log⁡log⁡n)O(\log\log n) space.

  • Unlike their classical counterparts, which can only recognize regular languages in polynomial time within o(log⁡log⁡n)o(\log\log n) worst-case space [4], QTMs can recognize many nonregular languages like

Leq={0n1n∣n≥0},L_{eq}=\{0^n1^n \mid n\ge0\},

as well as the word problems of all finitely generated virtually abelian groups, in polynomial expected time using only O(1)O(1) space [11]. The two-way finite automaton with quantum and classical states (2QCFA), defined by Ambainis and Watrous [1], which can be viewed as a QTM that never uses its work tapes, is useful for modeling such constant-space quantum algorithms.

In this paper, we first examine whether giving polynomial-time QTMs a very small non-constant memory budget (i.e. a space bound of extremely slow growth in ω(1)∩o(log⁡log⁡n)\omega(1)\cap o(\log\log n)) increases their computational power beyond that of 2QCFAs. For this purpose, we will adopt the following metric [8] of space complexity that is possibly looser than the one imposed by the worst-case usage definition employed in the studies cited above.

Definition 1. A (probabilistic or quantum) Turing machine MM is said to recognize a language LL in Monte Carlo space s(n)s(n) if there exists a constant ϵ∈[0,12)\epsilon\in[0,\frac{1}{2}) such that

  • for all w∈Lw\in L, Pr⁡{M\Pr\{M uses at most s(∣w∣)s(|w|) work tape cells and accepts w}≥1−ϵw\}\ge1-\epsilon, and

  • for all w∉Lw\notin L, Pr⁡{M\Pr\{M uses at most s(∣w∣)s(|w|) work tape cells and rejects w}≥1−ϵw\}\ge1-\epsilon.

We define the time-space complexity class BQTIMCSP⁡(t(n),s(n))\operatorname{BQTIMCSP}(t(n),s(n)) to be the collection of languages recognizable by QTMs that operate simultaneously in Monte Carlo space s(n)s(n) and expected time t(n)t(n).

Our main result is

Theorem 2. For any computable, nondecreasing and unbounded function s(n)∈ω(1)s(n)\in\omega(1),

BQTIMCSP⁡(nO(1),O(1))⊊BQTIMCSP⁡(nO(1),O(s(n))).\operatorname{BQTIMCSP}\left(n^{O(1)},O(1)\right)\subsetneq\operatorname{BQTIMCSP}\left(n^{O(1)},O(s(n))\right).

In an analogous study [5] on classical probabilistic computation, Freivalds and Karpinski proved a result separating classes of languages recognized by probabilistic Turing machines (PTMs) using constant space from those with very slowly growing Monte Carlo space bounds. Our technique in the proof of Theorem 2 differs from that of Freivalds and Karpinski in two important ways: Firstly, their constructions produce machines with exponential running times, whereas we focus on polynomial-time computation. Secondly, [5] uses the inability of small-space PTMs to recognize LpalL_{pal} to establish the separation. Even if we relaxed our time requirements, we would have to identify a different “hard problem” for the separation, since LpalL_{pal} is known [1] to be recognizable by exponential-time 2QCFAs. Instead, we define and use a novel problem that is solvable in polynomial time within very small (but not constant) quantum Monte Carlo space by combining diverse ideas from work by Karpinski and Verbeek [8] and Remscrim [12].

We also consider the intermediate range of space bounds in Ω(log⁡log⁡n)∩o(log⁡n)\Omega(\log\log n)\cap o(\log n) and show the existence of an infinite hierarchy of problems that are solvable in polynomial time and small space, with each level of the hierarchy corresponding to a different space threshold in the sense described above. In the parlance of standard simultaneous expected time and worst-case space complexity classes, we prove the following result, establishing the existence of infinitely many new space thresholds (in addition to the logarithmic, double logarithmic and constant bounds mentioned above) beyond which quantum computers can solve more problems in polynomial time:

Theorem 3. For each i≥0i\ge0,

BQTISP⁡(nO(1),o(log⁡n(log⁡log⁡n)i))⊊BQTISP⁡(nO(1),O(log⁡n(log⁡log⁡n)i)).\operatorname{BQTISP}\left(n^{O(1)},o\left(\frac{\log n}{(\log\log n)^i}\right)\right)\subsetneq\operatorname{BQTISP}\left(n^{O(1)},O\left(\frac{\log n}{(\log\log n)^i}\right)\right).

The rest of the paper is structured as follows: § 2 provides the necessary background. The proof of Theorem 2 is presented in § 3. § 4 contains the proof of Theorem 3. § 5 is a conclusion.

Definitions and background

We assume that the reader is familiar with deterministic Turing machines (DTMs). For the study of space complexity, we use a multi-tape variant, with a read-only input tape, and a single read-write work tape. Both tapes are accessed by dedicated two-way heads. The transition function is restricted so that the input head never attempts to move off the tape area containing the string ▹w◃\triangleright w\triangleleft, where ▹\triangleright and ◃\triangleleft are special endmarker symbols, and ww is the input string. At the beginning of the computation, the input head is situated on the left endmarker ▹\triangleright, and the work head is on the leftmost cell of the work tape, which is infinite in the other direction. All cells of the work tape are initially blank. We also assume that the work head never attempts to move left of its initial position. One disregards the “memory” required to store the input and to keep track of the internal state and the location of the input head, and uses only the work tape to measure the space consumption, as will be explained below.

A quantum Turing machine [20] can be viewed as a deterministic Turing machine augmented by a finite quantum register (in addition to its classical register represented by its set of classical internal states), a second, quantum work tape, each cell of which holds a qubit, and a measurement register of fixed size, which will be used to store the outcome of the latest measurement of the quantum part. The quantum work tape is accessed by a two-way head, which is also assumed to never move to the left of its initial position on the leftmost cell.1

Definition 4. A quantum Turing machine (QTM) is an 11-tuple (Q,Σ,K,T,r,q0,qacc,qrej,τ0,δQ,δC)(Q,\Sigma,K,T,r,q_0,q_{\mathrm{acc}},q_{\mathrm{rej}},\tau_0,\delta_Q,\delta_C), where

  • QQ is the finite set of classical states,

  • Σ\Sigma is the finite input alphabet, not containing ▹\triangleright and ◃\triangleleft,

  • KK is the finite work alphabet, including the blank symbol ⊔\sqcup,

  • TT is the finite set of possible values of the measurement register,

  • rr, a positive integer, is the number of qubits in the quantum register,

  • q0∈Qq_0 \in Q is the initial state,

  • qacc,qrej∈Qq_{\mathrm{acc}},q_{\mathrm{rej}} \in Q, such that qacc≠qrejq_{\mathrm{acc}} \ne q_{\mathrm{rej}}, are the accept and reject states, respectively,

  • τ0∈T\tau_0 \in T is the initial value of the measurement register,

  • δQ:(Q∖{qacc,qrej})×(Σ∪{▹,◃})×K→Δ\delta_Q : (Q \setminus\{q_{\mathrm{acc}},q_{\mathrm{rej}}\}) \times(\Sigma\cup\{\triangleright,\triangleleft\}) \times K \to\Delta, where Δ\Delta is the set of all selective quantum operations [20] that have operator-sum representations consisting of matrices of algebraic numbers, is the quantum transition function, and

  • δC:(Q∖{qacc,qrej})×(Σ∪{▹,◃})×K×T→Q×K×{−1,0,1}3\delta_C : (Q \setminus\{q_{\mathrm{acc}},q_{\mathrm{rej}}\}) \times(\Sigma\cup\{\triangleright,\triangleleft\}) \times K \times T \to Q \times K \times\{-1,0,1\}^3 is the classical transition function.

At the start of computation, a QTM MM is in state q0q_0, the measurement register contains τ0\tau_0, and all qubits of the finite quantum register and the quantum work tape are in their zero states. Every computational step of MM consists of a quantum transition, which acts on the quantum part of the

machine and updates the measurement register, and a classical transition, which updates the classical state, classical work tape, and the three head positions, based on the presently scanned input and classical work tape symbols, and the value in the measurement register:

  • If MM is in some non-halting state qq, with the input head scanning the symbol σ\sigma and the classical work tape head scanning the symbol κ\kappa, the selective quantum operation δQ(q,σ,κ)\delta_Q(q,\sigma,\kappa) acts on the quantum register and the qubit presently scanned by the quantum work tape head.2 This action3 results in those r+1r+1 qubits evolving, and some output τ\tau being stored in the measurement register with an associated probability.

  • The ensuing classical transition δC(q,σ,κ,τ)=(q′,κ′,dI,dW,dQ)\delta_C(q,\sigma,\kappa,\tau)=(q',\kappa',d_I,d_W,d_Q) updates the classical state to q′q', changes the presently scanned classical work tape symbol to κ′\kappa', and moves the input, classical work and quantum work heads in the directions indicated by the increments dId_I, dWd_W, and dQd_Q, respectively.

MM halts with acceptance (rejection) when it enters the state qaccq_{\mathrm{acc}} (qrejq_{\mathrm{rej}}).

For any ε∈[0,12)\varepsilon\in[0,\frac{1}{2}), a QTM MM is said to recognize a language LL with error bound ε\varepsilon if

  • for each input string w∈Lw \in L, MM accepts ww with probability at least 1−ε1-\varepsilon, and

  • for each input string w∉Lw \notin L, MM accepts ww with probability at most ε\varepsilon.

Such a machine is said to run within (worst-case) space s(n)s(n) if, on any input of length nn, at most s(n)s(n) cells are scanned on both the classical and quantum work tapes throughout the computation.

A computation performed by a machine that runs within O(1)O(1) space can also be performed (with no increase in runtime) by a machine which does not use its work tapes at all, and encodes all possible memory contents in its classical state set and finite quantum register. This constant-space model is known as the two-way finite automaton with quantum and classical states (2QCFA) [12]. Note that the original definition of the 2QCFA model in [1] involved more restricted quantum transitions, allowing only unitary transformations and projective measurements. Stinespring’s dilation theorem [7] guarantees that the two formulations are equivalent in computational power, as long as both are limited to employing algebraic numbers in the transition matrices.

BQTISP(t(n),s(n))(t(n),s(n)) denotes the class of languages recognizable with bounded error by QTMs running within worst-case space s(n)s(n) and in expected time t(n)t(n). Throughout, time and space bounds are taken to be nondecreasing.

The computational power of QTMs in general and 2QCFAs in particular depend on the set of numbers that are allowed to appear in the matrices describing their quantum transitions [16]. The set of algebraic numbers, used for this purpose in Definition 4, is commonly regarded as the natural choice [11, 12, 20]. The concrete algorithms to be described in this paper will use only algebraic transition amplitudes. On the other hand, our lower bound results will employ QTM and 2QCFA models that are allowed to use the full set of complex numbers in this regard to show that the proven bounds are valid for even those more powerful models. In that context, BQTISPC(t(n),s(n))_{\mathrm{C}}(t(n),s(n)) will denote the counterpart of BQTISP(t(n),s(n))(t(n),s(n)) defined in terms of unrestricted-amplitude QTMs. Similarly, a 2QCFAC_{\mathrm{C}} is simply a 2QCFA that may employ transcendental as well as algebraic amplitudes [1].

Definition 5. [4] For any language LL and number n≥0n \ge0, two strings ww and w′w' are said to be (L,n)(L,n)-dissimilar, written w̸∼L,nw′w \not\sim_{L,n} w', if ∣w∣≤n|w| \le n, ∣w′∣≤n|w'| \le n, and there exists a distinguishing string vv with ∣wv∣≤n|wv| \le n, ∣w′v∣≤n|w'v| \le n, and wv∈L⟺w′v∉Lwv \in L \Longleftrightarrow w'v \notin L. Let DL(n)D_L(n) be the maximum dd such that there exist

dd distinct strings that are pairwise ̸∼L,n\not\sim_{L,n}, with the convention that DL(n)=1D_L(n)=1 if no two strings are (L,n)(L,n)-dissimilar. The function DLD_L is named the nonregularity of LL.

The following results, which link the nonregularity measure DLD_L to the simultaneous time-space complexity of a QTM that recognizes the associated language LL, are due to Remscrim. [12]

Theorem 6. Suppose L∈BQTISPC(t(n),s(n))L \in\mathrm{BQTISPC}(t(n),s(n)), and suppose further that s(n)=o(log⁡log⁡DL(n))s(n)=o(\log\log D_L(n)). Then there exists a real number b0>0b_0>0 such that

t(n)∈Ω(2−b0s(n)DL(n)2−b0s(n)).t(n) \in\Omega\left(2^{-b_0s(n)}D_L(n)^{2^{-b_0s(n)}}\right).

Theorem 7. Suppose LL is recognized with error bound ε\varepsilon in expected time t(n)t(n) by a 2QCFAC2\mathrm{QCFAC} that has dd elements in its classical state set and rr qubits in its quantum register. Then there exists a natural number n0n_0 such that

t(n)≥(1−2ε)2162(2r)4d2DL(n)1(2r)4d2t(n) \ge\frac{(1-2\varepsilon)^2}{16\sqrt{2}(2^r)^4d^2}D_L(n)^{\frac{1}{(2^r)^{4d^2}}}

for all n≥n0n \ge n_0.

Very small Monte Carlo space is useful for polynomial-time QTMs

This section comprises the proof of Theorem 2, which we restate below.

Theorem 2. For any computable, nondecreasing and unbounded function s(n)∈ω(1)s(n)\in\omega(1),

BQTIMCSP(nO(1),O(1))⊊BQTIMCSP(nO(1),O(s(n))).\mathrm{BQTIMCSP}\left(n^{O(1)},O(1)\right) \subsetneq\mathrm{BQTIMCSP}\left(n^{O(1)},O(s(n))\right).

The witness languages

We start by defining the languages that will witness the separation of Theorem 2. Let α:N→N\alpha:\mathbb{N}\to\mathbb{N} be any unbounded and nondecreasing computable function. A language WαW_\alpha will be defined for each such α\alpha. The members of each WαW_\alpha will be two-part strings of the form π%ρ\pi\%\rho, where

  • the prefix π\pi is the representation of a natural number kk, in the format to be described in Section 3.1.1, and

  • the postfix ρ\rho is an encoding of a member of the word problem of the group Zk\mathbb{Z}^k, as will be described in Section 3.1.2.

A method of encoding natural numbers

We recall a classical model of universal computation. A three-counter machine (3CM) [8, 10] MM consists of a finite-state control and three (unary) counters, named C1C_1, C2C_2 and C3C_3. If MM has TT states, its state set is Q={q1,q2,…,qT}Q=\{q_1,q_2,\ldots,q_T\}, with the convention that q1q_1 is the initial state and qTq_T is the halting state. The behavior of MM is governed by its transition function δ\delta. For each non-halting state qjq_j of MM, δ(qj)\delta(q_j) specifies one of the following actions on one of the counters, say, CiC_i:

  • inc⁡(i,qk)\operatorname{inc}(i,q_k): Increase CiC_i by 1 and switch to the (possibly new) state qkq_k.

  • dec⁡(i,qk,ql)\operatorname{dec}(i,q_k,q_l): Decrease CiC_i by 1. If CiC_i has reached 0, switch to state qkq_k, Otherwise, switch to state qlq_l.

We assume that the initial state is associated only with INC actions. Configurations of MM can then be represented as strings of the form $01^{j}2^{}3^{*}$, where qj∈Qq_j \in Q is the current state, the length of the maximal substring of ii’s equals the number in CiC_i for i∈{1,2,3}i \in\{1,2,3\}, and the end of each configuration is marked by a $$. On input nn (a natural number), 3CM MM starts from the initial configuration 01n$01^n\$ (i.e. with C2C_2 and C3C_3 initialized to 0), and halts only if it reaches the state qTq_T. We define the output of the 3CM to be the number in its first counter C1C_1 in such a halting configuration. Viewing inputs and outputs in the manner described, three-counter machines can compute all partial computable functions of the form f:N→Nf:\mathbb{N}\to\mathbb{N} [8, 10].4

For any 3CM MM that halts on every input, let hM(n)h_M(n) denote the string which represents the history of the computation of MM on input nn, that is, the concatenation of the strings describing the entire sequence of configurations attained by MM during this computation from start to halting.

Given an arbitrary unbounded and nondecreasing computable function α:N→N\alpha:\mathbb{N}\to\mathbb{N}, we will show how to construct a 3CM Mα′′M_{\alpha''} that computes another total function α′′\alpha'' determined by α\alpha. For any natural number kk, the string hMα′′(k)h_{M_{\alpha''}}(k) will then be used as a representation of kk. The following argument has been adapted from [8].

Given α\alpha, define a new function α′\alpha' as follows:

α′(n)={0,if {m∣α(m)≤n}=∅,max⁡{m∣α(m)≤n},otherwise.\alpha'(n)= \begin{cases} 0, & \text{if } \{m\mid\alpha(m)\le n\}=\varnothing,\\ \max\{m\mid\alpha(m)\le n\}, & \text{otherwise.} \end{cases}

Since α\alpha is unbounded, nondecreasing and computable, α′\alpha' is also unbounded, nondecreasing, computable and total.

For any nn, the value of α′′(n)\alpha''(n) is the sum of the numbers α′(0),α′(1),α′(2),…,α′(n)\alpha'(0),\alpha'(1),\alpha'(2),\ldots,\alpha'(n). On input 0, the 3CM Mα′′M_{\alpha''} simply computes and outputs α′(0)\alpha'(0). On any larger input nn, Mα′′M_{\alpha''} extends the computation required for α′′(n−1)\alpha''(n-1) by an additional iteration computing α′(n)\alpha'(n).

We note that

α′(n)≤α′′(n)<∣hMα′′(n)∣(1)\alpha'(n)\le\alpha''(n)<\lvert h_{M_{\alpha''}}(n)\rvert \tag*{(1)}

for all nn, since the string hMα′′(n)h_{M_{\alpha''}}(n) clearly contains a proper substring 1α′′(n)1^{\alpha''(n)} representing Mα′′M_{\alpha''}’s output in the description of its final configuration.

The following fact will be useful in the proof of Lemma 10.

Lemma 8. For all k≥0k\ge0, k≤α(∣hMα′′(k)∣)k\le\alpha(\lvert h_{M_{\alpha''}}(k)\rvert).

Proof. Assume to the contrary that α(∣hMα′′(k)∣)<k\alpha(\lvert h_{M_{\alpha''}}(k)\rvert)<k for some kk. The definition of α′\alpha' then dictates that

α′(k)≥∣hMα′′(k)∣,\alpha'(k)\ge\lvert h_{M_{\alpha''}}(k)\rvert,

which leads to a contradiction with (1).

Representing word problems

For any string ww and symbol σ\sigma from the same alphabet, let #(w,σ)\#(w,\sigma) denote the number of occurrences of σ\sigma in ww. Let ϵ\epsilon denote the empty string. For each k≥1k\ge1, the group Zk\mathbb{Z}^k is the direct product of kk copies of the group Z\mathbb{Z} (the integers, where the group operation is addition).5 Consider the alphabet Σk={a1,b1,…,ak,bk}\Sigma_k=\{a_1,b_1,\ldots,a_k,b_k\}, with each aia_i corresponding to “+1+1” in the iith group, and bib_i corresponding to the inverse of generator aia_i. Each string ww in Σk∗\Sigma_k^* represents a kk-tuple of integers, where the iith integer equals #(w,ai)−#(w,bi)\#(w,a_i)-\#(w,b_i) for each ii. We will call the language

WZk={w∣w∈Σk∗, #(w,ai)=#(w,bi), ∀i}W_{\mathbb{Z}^k}=\{w\mid w\in\Sigma_k^*,\ \#(w,a_i)=\#(w,b_i),\ \forall i\}

(i.e. the set of all strings representing the all-0 tuple) the word problem of Zk\mathbb{Z}^k.

To represent these word problems for all kk using a single alphabet, we will use the following injective codings.

Definition 9. For all k≥1k \ge1, the function κk:Σk∗→{0,1}∗\kappa_k : \Sigma_k^* \to\{0,1\}^* is defined such that

  • κk(ϵ)=ϵ\kappa_k(\epsilon) = \epsilon,

  • κk(ai)=0i10\kappa_k(a_i) = 0^i10,

  • κk(bi)=0i11\kappa_k(b_i) = 0^i11, and

  • κk(σw)=κk(σ)κk(w)\kappa_k(\sigma w) = \kappa_k(\sigma)\kappa_k(w), where σ∈Σk\sigma\in\Sigma_k and w∈Σk+w \in\Sigma_k^+

for all i∈{1,…,k}i \in\{1,\ldots,k\}.

For each kk, the encoded word problem of Zk\mathbb{Z}^k is then defined to be

WZk′={κk(w)∣w∈WZk}.W'_{\mathbb{Z}^k} = \{ \kappa_k(w) \mid w \in W_{\mathbb{Z}^k} \}.

For each α\alpha, we now define the language

Wα={π%ρ∣∃k≥1  (π=hMα′′(k)∧ρ∈WZk′)}W_\alpha= \{ \pi\%\rho\mid\exists k \ge1\;(\pi= h_{M_{\alpha''}}(k) \land\rho\in W'_{\mathbb{Z}^k}) \}

on the common alphabet {0,1,2,3,$,%}\{0,1,2,3,\$,\%\}, so that each string in WαW_\alpha consists of a prefix encoding some number kk, followed by a postfix that is a member of the encoded word problem of Zk\mathbb{Z}^k.

A QTM recognizing WαW_\alpha

Lemma 10. For any computable, nondecreasing and unbounded function α\alpha,

Wα∈BQTIMCSP(nO(1),O(log⁡α(n))).W_\alpha\in\mathrm{BQTIMCSP}\left(n^{O(1)}, O(\log\alpha(n))\right).

Proof. For all ϵ∈(0,12)\epsilon\in(0,\frac{1}{2}), we will show the existence of a polynomial-time QTM Mα,ϵM_{\alpha,\epsilon} such that

  • Mα,ϵM_{\alpha,\epsilon} has a single qubit in its quantum register and never uses its quantum work tape,

  • for all w∈Wαw \in W_\alpha, Pr⁡{Mα,ϵ scans O(log⁡α(∣w∣)) cells of its classical work tape and accepts w}≥1−ϵ\Pr\{M_{\alpha,\epsilon}\text{ scans }O(\log\alpha(|w|))\text{ cells of its classical work tape and accepts }w\} \ge1-\epsilon, and

  • for all w∉Wαw \notin W_\alpha, Pr⁡{Mα,ϵ scans O(log⁡α(∣w∣)) cells of its classical work tape and rejects w}≥1−ϵ\Pr\{M_{\alpha,\epsilon}\text{ scans }O(\log\alpha(|w|))\text{ cells of its classical work tape and rejects }w\} \ge1-\epsilon.

We start by explaining the idea behind a heavily used “quantum subroutine” of Mα,ϵM_{\alpha,\epsilon}. Consider the word problem of Z\mathbb{Z}, i.e. the language

WZ={w∣#(w,a)=#(w,b)}.W_{\mathbb{Z}} = \{w \mid\#(w,a)=\#(w,b)\}.

on the alphabet {a,b}\{a,b\}. There exists a polynomial-time 2QCFA algorithm MWZM_{W_{\mathbb{Z}}} [11] which recognizes WZW_{\mathbb{Z}} with negative one-sided bounded error, that is, MWZM_{W_{\mathbb{Z}}} accepts members of WZW_{\mathbb{Z}} with probability 1, and can be tuned (by selecting a suitable instance MWZ,ϵM_{W_{\mathbb{Z}},\epsilon} from an infinite set of such machines) so that it rejects nonmembers with probability at least 1−ϵ1-\epsilon, for any desired small positive value of ϵ\epsilon. MWZM_{W_{\mathbb{Z}}} uses a single qubit in its quantum register.

We use a technique [13] by which the algorithm MWZM_{W_{\mathbb{Z}}} can be adapted to construct subroutines (i.e., “submachines” that form part of the program of a larger QTM) that perform variants of the basic task of comparing the lengths of two easily identifiable subsequences embedded in the input string. In the description of Mα,ϵM_{\alpha,\epsilon} to be presented below, the common name EqNum will be used to refer to various such submachines, each of which can be thought of as running an instance of MWZM_{W_{\mathbb{Z}}} on a “virtual tape”. Each such submachine will be tailored for comparing two subsequences composed of specified objects within a specific segment of the input tape. For instance, one subtask that will be performed by Mα,εM_{\alpha,\varepsilon} is the comparison of the number of occurrences of two different substrings (like 010 and 011) in a segment of its input tape demarcated by the symbol % on the left and by the endmarker ◃\triangleleft on the right. (Assume that such a segment of the form % {0,1}+\{0,1\}^{+} ◃\triangleleft exists, and that the binary string between the two delimiters can be unambiguously parsed by Mα,εM_{\alpha,\varepsilon} as some concatenation of 010s, 011s, and possibly other binary substrings. As we will see, a preprocessing stage guarantees that these conditions hold for Mα,εM_{\alpha,\varepsilon}.) To perform this subtask, EqNum starts with the input head of Mα,εM_{\alpha,\varepsilon} on the symbol %. Whenever it scans an occurrence of a substring on the first column of Table 1 (by executing one or more steps of Mα,εM_{\alpha,\varepsilon}), EqNum “feeds” MWZM_{WZ} the corresponding symbol in the second column of the table, simulating the computational step of MWZM_{WZ} associated with that virtual symbol. The classical transition of the simulated MWZM_{WZ} step will then determine the new direction of the input head. The head may then move for several Mα,εM_{\alpha,\varepsilon} steps (possibly skipping over binary substrings other than 010 and 011) until the nearest target substring in that direction is located. The execution of EqNum continues in this manner until the simulated MWZM_{WZ} reaches one of its accept or reject states. If the simulated execution of MWZM_{WZ} rejects, the EqNum submachine also rejects, terminating the execution of Mα,εM_{\alpha,\varepsilon}. If the simulated MWZM_{WZ} accepts, EqNum simply returns control to the next state of Mα,εM_{\alpha,\varepsilon}. The maximum probability that EqNum fails to catch a mismatch in the lengths of the compared subsequences can be tuned by setting the error bound of the underlying MWZM_{WZ}.

Substring on the input tape of Mα,εM_{\alpha,\varepsilon}Corresponding symbol on the virtual tape of MWZM_{WZ}
%▹\triangleright
010aa
011bb
◃\triangleleft◃\triangleleft

Table 1. Comparing the number of occurrences of “010” with that of “011” between % and ◃\triangleleft

A general template that can be used to obtain Mα,εM_{\alpha,\varepsilon} for any desired (α,ε)(\alpha,\varepsilon) pair is presented in Figure 1. We commence the explanation of the algorithm with the implementation of the submachine HistoryCheck (Stage (A)).

The QTM algorithm

Figure 1. The QTM Mα,εM_{\alpha,\varepsilon}. ww denotes the input string of length nn.

Reject if ww is not of the form π%ρ\pi\% \rho, where π∈{0,1,2,3,$}+\pi\in\{0,1,2,3,\$\}^{+} and ρ∈{0,1}∗\rho\in\{0,1\}^{*}

  • (A) Run HistoryCheck to determine whether π∈HMα′′\pi\in H_{M_{\alpha''}}.

  • (B) Write the number k=∣inp⁡(π)∣k = |\operatorname{inp}(\pi)| in binary on the classical work tape.

  • (C) Reject if ρ\rho is not a proper κk\kappa_k encoding.

    For each integer ii from 1 to kk, do the following:

  • (D) Run EqNum to compare the numbers of occurrences of the codewords 0i100^{i}10 and 0i110^{i}11 in ρ\rho.

    Accept if not rejected up to this point.

Let MM be a 3CM that eventually halts on every input. Define the “history language” HMH_M of MM as the set of all computation histories of MM (in the format described in § 3.1.1) for all positive inputs:

HM={hM(n)∣n>0}H_M = \{h_M(n) \mid n > 0\}

We will show that HistoryCheck embodies a constant-space polynomial-time quantum algorithm that employs a single qubit in its quantum register to check whether the prefix π\pi of the input string is a member of the history language for the 3CM Mα′′M_{\alpha''} (tailored for the function α\alpha as specified in § 3.1.1). If it detects a syntax error in π\pi, HistoryCheck terminates the execution with rejection. Otherwise, it returns control to the main machine to proceed with Stage (B).

HistoryCheck first checks, using its finite-state control, the general configuration syntax, that the first configuration is 01k01^k for some k≥1k \ge1, and that the last configuration is halting. It then sweeps π\pi, examining each consecutive pair

(0i01i12i23i3$,0j01j12j23j3$)(0^{i_0}1^{i_1}2^{i_2}3^{i_3}\$, 0^{j_0}1^{j_1}2^{j_2}3^{j_3}\$)

of configuration descriptions to see if it represents a valid transition of the machine Mα′′M_{\alpha''}. The finite-state control is sufficient to trace the program flow and check whether i0i_0 and j0j_0 are related correctly. As for the counters, note that every such transition of Mα′′M_{\alpha''} requires exactly one counter value to change by 1, and the others to remain the same. For each c∈{1,2,3}c \in\{1,2,3\}, these conditions can be controlled by EqNum “calls” tailored to compare the number of occurrences of the symbol cc between the rightmost 0 and the final $\$ of the configuration description on the left with those in the analogous segment for the configuration on the right. The case where the transition function of Mα′′M_{\alpha''} dictates that the considered counter value should increase by 1 is handled by a submachine that feeds the symbols ▹a\triangleright a (rather than just ▹\triangleright) to MWZM_{WZ} whenever the leftmost 0 of the configuration on the left is scanned. Dec actions of Mα′′M_{\alpha''} are handled similarly, by introducing an additional virtual bb for the right delimiter of the configuration on the right.

All instances of EqNum (those called in HistoryCheck as well as those in the later Stage (D)) in Mα,εM_{\alpha,\varepsilon} are set to operate with the desired overall error bound ε\varepsilon. The probability that Stage (A) fails to reject when π∉HMα′′\pi\notin H_{M_{\alpha''}} is at most ε\varepsilon, since any such “illegal” computation history that survives HistoryCheck must contain at least one defect which would be detected by the corresponding EqNum submachine with probability at least 1−ε1-\varepsilon.

We define the partial function inp⁡:{0,1,2,3,$}∗→{1}∗\operatorname{inp}:\{0,1,2,3,\$\}^{*}\to\{1\}^{*} so that it maps any string ss of the form (0+1∗2∗3∗$)+(0^{+}1^{*}2^{*}3^{*}\$)^{+} to the (possibly empty) maximal substring of 1’s to the left of the leftmost $\$ symbol in ss. Stage (B) simply walks the input head on inp⁡(π)\operatorname{inp}(\pi) and writes the length kk of this substring in binary notation on the classical work tape.

Lemma 8 and the analysis above show that the probability that Stage (B) writes a number that is greater than α(∣π∣)\alpha(|\pi|) (which cannot exceed α(n)\alpha(n) due to the fact that α\alpha is nondecreasing) on the work tape (and therefore exceeds the space budget O(log⁡α(n))O(\log\alpha(n))) is bounded by ε\varepsilon.

In Stage (C), Mα,εM_{\alpha,\varepsilon} checks whether ρ\rho is of the form κk(σ1)κk(σ2)⋯κk(σm)\kappa_k(\sigma_1)\kappa_k(\sigma_2)\cdots\kappa_k(\sigma_m) where all the σi\sigma_i are members of Σk\Sigma_k. This can be performed in a single sweep of ρ\rho by repeatedly counting up to at most kk. Stage (D) also uses such a counter to ignore all codewords other than 0i100^i10 and 0i110^i11 in ρ\rho at the iith iteration of the loop, and presents a virtual aa (resp. bb) to the algorithm MWZM_{WZ} for each 0i100^i10 (resp. 0i110^i11) in ρ\rho, as discussed above during the explanation of EqNum.6

No stage uses more than O(log⁡k)O(\log k) bits. The overall runtime is polynomially bounded, because all the individual stages operate in expected polynomial time even in the low-probability case where they work with a large, incorrect value of kk, which cannot exceed the input length nn. Mα,εM_{\alpha,\varepsilon} resets and reuses its single qubit in consecutive EqNum calls.

If the input string is in WαW_\alpha, Mα,εM_{\alpha,\varepsilon} accepts it with probability 1. The highest probability with which a string w∉Wαw \notin W_\alpha can be accepted is at most ε\varepsilon, and this is realized if ww has a single defect that the associated EqNum subroutine fails to catch.

No constant-space polynomial-time machine can recognize WαW_\alpha

This section will culminate with the proof of the following lemma.

Lemma 11. For any computable, nondecreasing and unbounded function α\alpha,

Wα∉BQTMCSP⁡(nO(1),O(1)).W_\alpha\notin\operatorname{BQTMCSP}\left(n^{O(1)}, O(1)\right).

We first note that the worst-case and Monte Carlo space complexity classes coincide for constant bounds:

Lemma 12. BQTIMCSP(nO(1),O(1))=BQTISP(nO(1),O(1))\mathrm{BQTIMCSP}(n^{O(1)}, O(1)) = \mathrm{BQTISP}(n^{O(1)}, O(1)).

Proof. For any pair of complexity functions tt and ss, BQTISP(t(n),s(n))⊆BQTIMCSP(t(n),s(n))\mathrm{BQTISP}(t(n),s(n)) \subseteq\mathrm{BQTIMCSP}(t(n),s(n)), since a language recognized by some QTM that runs within worst-case space s(n)s(n) already satisfies Definition 1 of membership in the associated Monte Carlo space complexity class. For the other direction, assume that some polynomial-time QTM MM recognizes a language LL in Monte Carlo space O(1)O(1). This implies that there exists a natural number s0s_0 and a real number ε<12\varepsilon< \frac{1}{2} such that, on every input ww, MM scans at most s0s_0 cells on its work tapes and terminates with the correct accept/reject response about the membership of ww in LL with probability at least 1−ε1-\varepsilon. We build a 2QCFA M0M_0 that simulates MM’s behavior on “truncated” work tapes: M0M_0 uses its classical states to imitate the leftmost s0s_0 cells of MM’s classical work tape, and its finite quantum register to imitate the leftmost s0s_0 qubits in MM’s quantum work tape. Whenever MM attempts to access the (s0+1)(s_0+1)st cell on any work tape, M0M_0 rejects. Clearly, M0M_0 recognizes the language LL with error bound ε\varepsilon, and its runtime cannot exceed that of MM, letting one conclude that BQTIMCSP(nO(1),O(1))⊆BQTISP(nO(1),O(1))\mathrm{BQTIMCSP}(n^{O(1)}, O(1)) \subseteq\mathrm{BQTISP}(n^{O(1)}, O(1)). □\square

To prove Lemma 11, it is therefore sufficient to show that no polynomial-time 2QCFA can recognize WαW_\alpha for any α\alpha satisfying the stated conditions.

Define the length of an element gg of Zk\mathbb{Z}^k as the length of the shortest string in Σk∗\Sigma_k^* that represents the kk-tuple gg. The number of elements of Zk\mathbb{Z}^k with length at most nn is represented by the function βZk(n)\beta_{\mathbb{Z}^k}(n), which is called the growth rate of Zk\mathbb{Z}^k.

For a pair of non-decreasing functions f1,f2:R≥0→R≥0f_1,f_2 : \mathbb{R}_{\ge0} \to\mathbb{R}_{\ge0}, one writes f1≺f2f_1 \prec f_2 if there exist positive real numbers c1,c2c_1,c_2 such that for any nonnegative real rr, f1(r)≤c1f2(c1r+c2)+c2f_1(r) \le c_1f_2(c_1r+c_2)+c_2; one writes f1∼f2f_1 \sim f_2 if both f1≺f2f_1 \prec f_2 and f2≺f1f_2 \prec f_1.

Fact 13. [9] For all k≥1k \ge1, βZk(n)∼nk\beta_{\mathbb{Z}^k}(n) \sim n^k.

Lemma 26 of [12] establishes an upper bound on the growth rate of any finitely generated group GG in terms of the nonregularity of the word problem of GG. A direct application of that lemma to the groups Zk\mathbb{Z}^k yields the following result, which will be useful in our proof of Lemma 15.

Fact 14. For any k≥1k \ge1, n≥0n \ge0, βZk(n)≤DWZk(2n)\beta_{\mathbb{Z}^k}(n) \le D_{W_{\mathbb{Z}^k}}(2n).

Lemma 15. Suppose α\alpha is a computable, nondecreasing and unbounded function. Then there exists no polynomial-time 2QCFAC_C that recognizes the language WαW_\alpha.

Proof. Suppose WαW_\alpha is recognized with error bound ε<12\varepsilon< \frac{1}{2} in expected time O(nc)O(n^c) by a 2QCFAC_C Mα∗M_\alpha^* which has rr qubits in its quantum register for some c,r∈Nc,r \in\mathbb{N}. Let QQ be the classical state set of Mα∗M_\alpha^*. Assume without loss of generality that Mα∗M_\alpha^* never reenters the initial classical state q0q_0 after the start of computation. We will show how Mα∗M_\alpha^* can be used as a template to build a 2QCFAC_C MkM_k that recognizes WZk′W'_{\mathbb{Z}^k} for any desired k≥1k \ge1. Importantly, all those MkM_k machines for different values of kk will be shown to have the same classical state set, the same quantum register size, and the same polynomial exponent cc in their expected runtime bound (all independent of kk) as Mα∗M_\alpha^*. We will conclude the proof by demonstrating that this contradicts a well-known fact about the growth rate of the group Zk\mathbb{Z}^k.

For any k≥1k \ge1, MkM_k is obtained by modifying Mα∗M_\alpha^* so that MkM_k’s output on any input w∈{0,1}∗w \in\{0,1\}^* will be identical to Mα∗M_\alpha^*’s output on the input string hMα′′(k)%wh_{M_\alpha''}(k)\%w. When its input head is scanning any symbol other than the left endmarker ▹\triangleright, MkM_k simply carries out the computational step dictated by the program of Mα∗M_\alpha^*. When scanning ▹\triangleright, MkM_k performs a step that “summarizes” the behavior of Mα∗M_\alpha^* on the prefix pk=▹hMα′′(k)%p_k = \triangleright h_{M_\alpha''}(k)\% of the input tape content as described below.

Following [12], we define the space

H∂=CQ⊗C2r.H_\partial= \mathbb{C}^{Q} \otimes\mathbb{C}^{2^r}.

We call a pair (q,A)(q,A), where q∈Qq \in Q and AA is a density operator on C2r\mathbb{C}^{2^r}, a border state, and identify it with the density operator ∣q⟩⟨q∣⊗A\lvert q\rangle\langle q\rvert\otimes A on H∂H_\partial. A border state represents the “combined internal state” of Mα∗M^*_\alpha, consisting of its classical state and the state of its quantum register, whose respective dimensions are independent of kk.

Consider either the initial computation of Mα∗M^*_\alpha within pkp_k, starting at its left endmarker, or a subsequent traversal of pkp_k, starting at the symbol % after the head crosses the “border” between pkp_k and ww leftward. Such a traversal can end by accepting, rejecting, or exiting pkp_k rightward in some classical state. For every border state (q,A)(q,A) that occurs with positive probability at the beginning of such a traversal, the total probability of these outcomes is 1, since Mα∗M^*_\alpha has finite expected runtime. We now justify replacing each such traversal by a single transition of MkM_k.

The construction for summarizing traversals of a fixed prefix in [12 Section 3.2, second remark following Definition 12] yields, for each classical state qq, a selective quantum operation7^{7} on the original quantum register that summarizes traversals of pkp_k beginning in state qq. Its classical outcomes record acceptance, rejection, or exit in a specified classical state. This operation is defined on all register states and reproduces the traversal on every reachable border state.

Our definition of a 2QCFAC_{\mathrm C} permits this operation to be performed in a single step when MkM_k scans ▹\triangleright. Its classical transition then accepts, rejects, or moves right in the indicated classical state. The initial traversal is summarized in the same way, with q0q_0 distinguishing it from subsequent traversals. Thus MkM_k uses the same classical state set QQ and the same rr-qubit register as Mα∗M^*_\alpha.8^{8}

Since MkM_k spends only one step whenever it is simulating multi-step traversals performed by Mα∗M^*_\alpha on pkp_k, its runtime on any particular input ww cannot exceed the runtime of Mα∗M^*_\alpha on the input hMα′(k)%wh_{M_{\alpha'}}(k)\%w. Note that each input string given to MkM_k is ∣pk∣−1|p_k|-1 symbols shorter than the input processed during the corresponding run of Mα∗M^*_\alpha, which takes time in O(nc)O(n^c) by our initial assumption. Therefore, MkM_k’s runtime as a function of its input length nn is in O((∣pk∣−1+n)c)O((|p_k|-1+n)^c) and so there must exist numbers c0,nkc_0,n_k such that MkM_k has at most c0ncc_0n^c expected runtime for inputs longer than nkn_k, where nkn_k is a constant that may depend on kk. This proves our claim that MkM_k also has runtime in O(nc)O(n^c).

We now plug the common error bound ε\varepsilon, runtime in O(nc)O(n^c), qubit count rr and classical state count dd of the MkM_k machines in Theorem 7 and conclude that there exists a natural number nk′n'_k depending on kk such that

DWzk′(n)≤c1nc(2r)4d(2)D_{W'_{z_k}}(n) \le c_1n^{c(2^r)}4^d \tag*{(2)}

for all n≥nk′n \ge n'_k, where c1c_1 is another constant that depends on Mα∗M^*_\alpha.

We will bound the nonregularity of WzkW_{z_k} using (2). We claim that

DWzk(n)≤DWzk′((k+2)n)D_{W_{z_k}}(n) \le D_{W'_{z_k}}((k+2)n)

for all k≥1k \ge1 and all n≥0n \ge0. This is easy to see for all nn for which DWzk(n)=1D_{W_{z_k}}(n)=1. Otherwise, let x1,…,xt∈Σk∗x_1,\ldots,x_t \in\Sigma_k^* be pairwise (Wzk,n)(W_{z_k},n)-dissimilar, where t=DWzk(n)t=D_{W_{z_k}}(n). For any x∈Σk∗x\in\Sigma_k^* of length at most nn, define

x′=kk(x).x'=k_k(x).

Since every codeword for the symbols in Σk\Sigma_k has length at most k+2k+2,

∣xi′∣≤(k+2)∣xi∣≤(k+2)n.|x'_i| \le(k+2)|x_i| \le(k+2)n.

Fix i≠ji\ne j. Since xix_i and xjx_j are (Wzk,n)(W_{z_k},n)-dissimilar, there exists v∈Σk∗v\in\Sigma_k^* such that

∣xiv∣≤n,∣xjv∣≤n,|x_iv|\le n,\qquad|x_jv|\le n,

and

xiv∈WZk⟺xjv∉WZk.x_i v \in W_{Z_k} \Longleftrightarrow x_j v \notin W_{Z_k}.

Then

∣xi′v′∣=∣κk(xiv)∣≤(k+2)n,∣xj′v′∣=∣κk(xjv)∣≤(k+2)n.|x_i'v'|=|\kappa_k(x_i v)|\leq(k+2)n,\qquad|x_j'v'|=|\kappa_k(x_j v)|\leq(k+2)n.

and

xi′v′∈WZk′⟺xiv∈WZk,xj′v′∈WZk′⟺xjv∈WZk.x_i'v' \in W'_{Z_k} \Longleftrightarrow x_i v \in W_{Z_k},\qquad x_j'v' \in W'_{Z_k} \Longleftrightarrow x_j v \in W_{Z_k}.

Hence xi′x_i' and xj′x_j' are (WZk′,(k+2)n)(W'_{Z_k},(k+2)n)-dissimilar. Therefore

DWZk(n)≤DWZk′((k+2)n).D_{W_{Z_k}}(n) \leq D_{W'_{Z_k}}((k+2)n).

Combining this fact with (2) and letting u=c(2r)4d2u=c(2r)^4d^2 yields

DWZk(n)≤c2nu(3)D_{W_{Z_k}}(n) \leq c_2n^u \tag*{(3)}

for large nn, where c2c_2 is a constant that depends on kk.

Fact 14 and the inequality (3) imply that, for any k≥1k \geq1 and all sufficiently large nn,

βZk(n)≤cknu,\beta_{Z_k}(n) \leq c_kn^u,

where the constant ckc_k depends on kk, but uu does not. For all k>uk>u, this contradicts Fact 13, which establishes that βZk(n)∼nk\beta_{Z_k}(n)\sim n^k, showing that our initial assumption that a polynomial-time 2QCFAC2\mathrm{QCFA}_C can recognize WαW_\alpha is false. □

As stated above, Lemma 11 follows from Lemmas 15 and 12.

For any computable, nondecreasing and unbounded function s(n)∈ω(1)s(n)\in\omega(1), set α(n)=max⁡{2,⌊s(n)⌋}\alpha(n)=\max\{2,\lfloor s(n)\rfloor\}. Lemmas 10 and 11 then constitute the proof of Theorem 2.

A sublogarithmic-space hierarchy for polynomial-time QTMs

This section contains the proof of Theorem 3, which we restate below.

Theorem 3. For each i≥0i\geq0,

BQTISP(nO(1),o((log⁡n(log⁡log⁡n)i)))⊊BQTISP(nO(1),O((log⁡n(log⁡log⁡n)i))).\mathrm{BQTISP}\left(n^{O(1)},o\left(\left(\frac{\log n}{(\log\log n)^i}\right)\right)\right) \subsetneq \mathrm{BQTISP}\left(n^{O(1)},O\left(\left(\frac{\log n}{(\log\log n)^i}\right)\right)\right).

We will define a language family that will help demonstrate the separations between the consecutive levels of the hierarchy.

For any integer l≥0l\geq0, let bin⁡(l)\operatorname{bin}(l) denote the shortest string representing ll in the binary notation. The language

LS={bin⁡(0)$bin⁡(1)$bin⁡(2)$⋯$bin⁡(k)∣k>0}L_S=\{\operatorname{bin}(0)\$\operatorname{bin}(1)\$\operatorname{bin}(2)\$\cdots\$\operatorname{bin}(k)\mid k>0\}

is in the deterministic complexity class SPACE⁡(log⁡log⁡n)\operatorname{SPACE}(\log\log n) [18]. It is straightforward to show that the length of the rightmost “segment” (i.e. the postfix bin⁡(kn)\operatorname{bin}(k_n) following the rightmost $\$) of any nn-symbol member of LSL_S is related to nn as

12log⁡n≤∣bin⁡(kn)∣≤log⁡n.9(4)\frac{1}{2}\log n\leq|\operatorname{bin}(k_n)|\leq\log n^{.9} \tag*{(4)}

A polynomial-time deterministic Turing machine can recognize LSL_S by comparing consecutive segments bit by bit, and halting when it detects an inconsistency or when all comparisons are successful. Since each comparison involves a counter whose value can be at most ∣bin⁡(kn)∣|\operatorname{bin}(k_n)|, the space complexity is O(log⁡log⁡n)O(\log\log n). In the proof of Lemma 16 to be presented below, this algorithm will be used by a DTM to set some variables to their initial values while using no more than O(log⁡log⁡n)O(\log\log n) bits on the work tape.

The language format to be described below is based on a similar construction in [14]. Consider the alphabet Σ={0,1,$}×{0,1,#}\Sigma= \{0,1,\$\} \times\{0,1,\#\}. Strings written using Σ\Sigma are to be interpreted as containing two tracks, with the symbol (σu,σl)(\sigma_u,\sigma_l) indicating that the upper (resp. lower) track contains the symbol σu\sigma_u (resp. σl\sigma_l) at that position.

For every nonnegative integer ii, we define the language LiL_i as the set of all strings w∈Σ∗w \in\Sigma^* which satisfy the following conditions:

  • The upper track of ww is some member unu_n of LSL_S which ends with the postfix $bin⁡(kn)\$\operatorname{bin}(k_n).

  • The lower track of ww is a member of the set

{p#∣un∣−j | p∈Lpal∩{0,1}j, j=2⌈∣bin⁡(kn)∣∣bin⁡(∣bin⁡(kn)∣)∣2⌉}.(5)\left\{p\#^{|u_n|-j}\ \middle|\ p \in L_{pal} \cap\{0,1\}^j,\ j=2^{\left\lceil\frac{|\operatorname{bin}(k_n)|}{|\operatorname{bin}(|\operatorname{bin}(k_n)|)|^2}\right\rceil}\right\}. \tag*{(5)}

The proof of Theorem 3 is completed by the following two lemmas.

Lemma 16. For all i≥0i \ge0, Li∈BQTISP⁡(nO(1),O(log⁡n(log⁡log⁡n)i))L_i \in\operatorname{BQTISP}\left(n^{O(1)}, O\left(\frac{\log n}{(\log\log n)^i}\right)\right).

Proof. We describe a polynomial-time deterministic Turing machine MiM_i (Figure 2) that recognizes LiL_i.

Figure 2. The DTM MiM_i. ww denotes the input string of length nn.

  1. If the string on the upper track of ww is a member unu_n of LSL_S with final segment bin⁡(kn)\operatorname{bin}(k_n), store the values ∣bin⁡(kn)∣|\operatorname{bin}(k_n)| and ∣bin⁡(∣bin⁡(kn)∣)∣|\operatorname{bin}(|\operatorname{bin}(k_n)|)| in binary on the work tape. Otherwise, reject.

  2. Compute and write the number l=⌈∣bin⁡(kn)∣∣bin⁡(∣bin⁡(kn)∣)∣2⌉l=\left\lceil\frac{|\operatorname{bin}(k_n)|}{|\operatorname{bin}(|\operatorname{bin}(k_n)|)|^2}\right\rceil in binary on the work tape.

  3. Write a 1 followed by ll 0’s to store the number j=2lj=2^l in a designated area on the work tape.

  4. Reject if the string on the lower track of ww is not of the form p#∗p\#^*, where p∈{0,1}jp\in\{0,1\}^j.

  5. If pp is a palindrome, accept. Otherwise, reject.

In Stage (A), MiM_i runs the O(log⁡log⁡n)O(\log\log n)-space algorithm described above [18] to determine whether the upper track of its input is some member unu_n of LSL_S. If this check fails, MiM_i halts by rejecting the input. Otherwise, MiM_i uses a work tape segment of O(log⁡log⁡n)O(\log\log n) bits to write the length (Equation (4)) of the string bin⁡(kn)\operatorname{bin}(k_n). MiM_i counts the digits of that representation to obtain an even shorter binary representation of the number ∣bin⁡(∣bin⁡(kn)∣)∣|\operatorname{bin}(|\operatorname{bin}(k_n)|)| as well on the tape. The arithmetic operations required for the computation in Stage (B) can also be performed in O(log⁡log⁡n)O(\log\log n) space.

Stage (C) uses ⌈∣bin⁡(kn)∣(log⁡∣bin⁡(kn)∣+1)i⌉+1\left\lceil\frac{|\operatorname{bin}(k_n)|}{(\log|\operatorname{bin}(k_n)|+1)^i}\right\rceil+1, i.e. O(log⁡n(log⁡log⁡n)i)O\left(\frac{\log n}{(\log\log n)^i}\right) bits to write the number 2l2^l on the tape. That same area is used as a counter to check whether the lower track of ww is of the required form in Stage (D). If control reaches Stage (E), only O(log⁡∣p∣)O(\log|p|) (i.e., again O(log⁡n(log⁡log⁡n)i)O\left(\frac{\log n}{(\log\log n)^i}\right)) bits are sufficient to check whether pp is a palindrome, by comparing whether the mmth and (∣p∣−m+1)(|p|-m+1)st symbols of pp are identical for all m∈{1,…,∣p∣}m \in\{1,\ldots,|p|\}.

MiM_i’s runtime is polynomially bounded, since its space usage is logarithmically bounded and it never enters an infinite loop. We conclude by noting that

TISP⁡(nO(1),O(log⁡n(log⁡log⁡n)i))⊆BQTISP⁡(nO(1),O(log⁡n(log⁡log⁡n)i))\operatorname{TISP}\left(n^{O(1)}, O\left(\frac{\log n}{(\log\log n)^i}\right)\right) \subseteq\operatorname{BQTISP}\left(n^{O(1)}, O\left(\frac{\log n}{(\log\log n)^i}\right)\right)

for all ii, since QTMs can simulate DTMs exactly.

Lemma 17. For all i≥0i \ge0, Li∉BQTISPC(nO(1),o(log⁡n(log⁡log⁡n)i))L_i \notin\mathrm{BQTISP}_{\mathrm{C}}\left(n^{O(1)}, o\left(\frac{\log n}{(\log\log n)^i}\right)\right).

Proof. We first bound the nonregularity of the language LiL_i. Let

Nk=∣bin⁡(0)$bin⁡(1)$⋯$bin⁡(k)∣N_k = \lvert\operatorname{bin}(0)\$\operatorname{bin}(1)\$\cdots\$\operatorname{bin}(k)\rvert

be the length of the kkth shortest member of LSL_S. So the lengths at which LiL_i can have member strings are precisely the numbers NkN_k, for k>0k > 0.

Consider such a “populated” length NkN_k. By Equation (4),

12log⁡Nk≤∣bin⁡(k)∣≤log⁡Nk.(6)\frac{1}{2}\log N_k \le\lvert\operatorname{bin}(k)\rvert\le\log N_k. \tag*{(6)}

Each member ss with length NkN_k has a lower track that contains a palindrome p∈{0,1}jkp \in\{0,1\}^{j_k}, followed by #\# symbols, where

jk=2⌈∣bin⁡(k)∣∣bin⁡(∣bin⁡(k)∣)∣i⌉,j_k = 2^{\left\lceil\frac{\lvert\operatorname{bin}(k)\rvert}{\lvert\operatorname{bin}(\lvert\operatorname{bin}(k)\rvert)\rvert^i}\right\rceil},

which is an even number. Let lsl_s denote the prefix of ss with length jk/2j_k/2, that is, lsl_s has the left half of the jkj_k-bit palindrome underlying ss as its lower track. For every ss, define rsr_s as the postfix that satisfies lsrs=sl_sr_s = s.

Let WNkW_{N_k} be the set {w∣w=ls,s∈Li∩ΣNk}\{w \mid w = l_s, s \in L_i \cap\Sigma^{N_k}\}.

Since every distinct pair of strings ls,ls′l_s,l_{s'} in WNkW_{N_k} are distinguished by the string rsr_s, we have

DLi(Nk)≥∣WNk∣=2jk/2=22⌈∣bin⁡(k)∣∣bin⁡(∣bin⁡(k)∣)∣i⌉−1.(7)D_{L_i}(N_k) \ge\lvert W_{N_k}\rvert= 2^{j_k/2} = 2^{2^{\left\lceil\frac{\lvert\operatorname{bin}(k)\rvert}{\lvert\operatorname{bin}(\lvert\operatorname{bin}(k)\rvert)\rvert^i}\right\rceil-1}.} \tag*{(7)}

Using Equation (6) and the fact that

∣bin⁡(m)∣=⌊log⁡m⌋+1\lvert\operatorname{bin}(m)\rvert= \lfloor\log m\rfloor+ 1

for any m>0m > 0, we obtain

⌈∣bin⁡(k)∣∣bin⁡(∣bin⁡(k)∣)∣i⌉≥12log⁡Nk(log⁡log⁡Nk+1)i(log⁡log⁡Nk)i(log⁡log⁡Nk)i,\left\lceil\frac{\lvert\operatorname{bin}(k)\rvert}{\lvert\operatorname{bin}(\lvert\operatorname{bin}(k)\rvert)\rvert^i}\right\rceil \ge\frac{1}{2}\frac{\log N_k}{(\log\log N_k+1)^i} \frac{(\log\log N_k)^i}{(\log\log N_k)^i},

which justifies that, for any d0∈(0,12)d_0 \in(0,\frac{1}{2}),

⌈∣bin⁡(k)∣∣bin⁡(∣bin⁡(k)∣)∣i⌉≥d0log⁡Nk(log⁡log⁡Nk)i(8)\left\lceil\frac{\lvert\operatorname{bin}(k)\rvert}{\lvert\operatorname{bin}(\lvert\operatorname{bin}(k)\rvert)\rvert^i}\right\rceil \ge d_0\frac{\log N_k}{(\log\log N_k)^i} \tag*{(8)}

for all sufficiently large kk, since

(log⁡log⁡Nk)i(log⁡log⁡Nk+1)i⟶1(k→∞)\frac{(\log\log N_k)^i}{(\log\log N_k+1)^i} \longrightarrow1 \qquad(k \to\infty)

for fixed ii.

Using Inequalities (7) and (8) together with the fact that

log⁡Nk(log⁡log⁡Nk)i⟶∞(k→∞),\frac{\log N_k}{(\log\log N_k)^i} \longrightarrow\infty\qquad(k \to\infty),

it is easy to show that there exists a constant d1∈(0,12)d_1 \in(0,\frac{1}{2}) such that, for all sufficiently large kk,

DLi(Nk)≥22d1log⁡Nk(log⁡log⁡Nk)i.(9)D_{L_i}(N_k) \ge2^{2^{d_1\frac{\log N_k}{(\log\log N_k)^i}}}. \tag*{(9)}

We now extend this bound from populated lengths to all sufficiently large lengths. The function DLi(n)D_{L_i}(n) is nondecreasing in nn, since a set of strings that are pairwise (Li,m)(L_i,m)-dissimilar are also pairwise (Li,n)(L_i,n)-dissimilar for every n≥mn \ge m. Let nn be sufficiently large, and choose kk such that

Nk≤n<Nk+1.N_k \le n < N_{k+1}.

The gap between consecutive populated lengths is

Nk+1−Nk=1+∣bin⁡(k+1)∣.N_{k+1} - N_k = 1 + \lvert\operatorname{bin}(k+1)\rvert.

Since k<Nk≤nk < N_k \le n, we have

∣bin⁡(k+1)∣∈O(log⁡n),\lvert\operatorname{bin}(k+1)\rvert\in O(\log n),

and therefore

n−Nk∈O(log⁡n).n - N_k \in O(\log n).

In particular, for all sufficiently large nn,

Nk≥n2.N_k \ge\frac{n}{2}.

It follows that

log⁡Nk(log⁡log⁡Nk)i≥c0log⁡n(log⁡log⁡n)i\frac{\log N_k}{(\log\log N_k)^i} \ge c_0 \frac{\log n}{(\log\log n)^i}

for some constant c0>0c_0 > 0 and all sufficiently large nn. Combining this with the nondecreasingness of DLiD_{L_i} and Equation (9), we get

DLi(n)≥DLi(Nk)≥22d1log⁡Nk(log⁡log⁡Nk)i≥22d2log⁡n(log⁡log⁡n)i(10)D_{L_i}(n) \ge D_{L_i}(N_k) \ge2^{2^{d_1 \frac{\log N_k}{(\log\log N_k)^i}}} \ge2^{2^{d_2 \frac{\log n}{(\log\log n)^i}}} \tag*{(10)}

for some constant d2>0d_2 > 0 and all sufficiently large nn.

Suppose, toward a contradiction, that

Li∈BQTISPC(nO(1),o(log⁡n(log⁡log⁡n)i)).L_i \in\mathrm{BQTISP}_{\mathbb{C}}\left(n^{O(1)}, o\left(\frac{\log n}{(\log\log n)^i}\right)\right).

Then there exists a bounded-error QTM recognizing LiL_i in expected time t(n)∈nO(1)t(n) \in n^{O(1)} and worst-case space

s(n)<a0log⁡n(log⁡log⁡n)i(11)s(n) < a_0 \frac{\log n}{(\log\log n)^i} \tag*{(11)}

for any real number a0>0a_0 > 0, for all sufficiently large nn.

By Equation (10),

log⁡log⁡DLi(n)≥d2log⁡n(log⁡log⁡n)i\log\log D_{L_i}(n) \ge d_2 \frac{\log n}{(\log\log n)^i}

for all sufficiently large nn. Hence

s(n)∈o(log⁡log⁡DLi(n)),s(n) \in o(\log\log D_{L_i}(n)),

i.e. s(n)s(n) is small enough for Theorem 6 to be applicable. Therefore, for some constant b0>0b_0 > 0,

t(n)∈Ω(2−b0s(n)DLi(n)2−b0s(n)).t(n) \in\Omega\left(2^{-b_0s(n)}D_{L_i}(n)^{2^{-b_0s(n)}}\right).

Employing Equation (10), we obtain

t(n)∈Ω(22F(n)−b0s(n)),t(n) \in\Omega\left(2^{2^{F(n)-b_0s(n)}}\right),

where we use the abbreviation

F(n)=d2log⁡n(log⁡log⁡n)i−b0s(n).F(n)=d_2\frac{\log n}{(\log\log n)^i}-b_0s(n).

We will obtain a contradiction by showing that this lower bound for t(n)t(n) is superpolynomial under the given space bound. For this purpose, it is sufficient to show that the exponent

2F(n)−b0s(n)2^{F(n)-b_0s(n)}

is in ω(log⁡n)\omega(\log n). Using Equation (11), we obtain, for any positive a0a_0 and all sufficiently large nn,

F(n)>d2log⁡n(log⁡log⁡n)i−b0a0log⁡n(log⁡log⁡n)i.F(n)>d_2\frac{\log n}{(\log\log n)^i}-b_0a_0\frac{\log n}{(\log\log n)^i}.

Using a suitable value of a0a_0, one gets

F(n)>d22log⁡n(log⁡log⁡n)i,F(n)>\frac{d_2}{2}\frac{\log n}{(\log\log n)^i},

so we have

2F(n)log⁡n>2d22log⁡n(log⁡log⁡n)ilog⁡n.\frac{2^{F(n)}}{\log n}>\frac{2^{\frac{d_2}{2}\frac{\log n}{(\log\log n)^i}}}{\log n}.

Taking logarithms of the right-hand side gives

d22log⁡n(log⁡log⁡n)i−log⁡log⁡n,\frac{d_2}{2}\frac{\log n}{(\log\log n)^i}-\log\log n,

which tends to infinity, since ii is fixed. Therefore

2F(n)∈ω(log⁡n).2^{F(n)}\in\omega(\log n).

On the other hand,

b0s(n)∈o(log⁡n).b_0s(n)\in o(\log n).

Hence

2F(n)−b0s(n)∈ω(log⁡n).2^{F(n)}-b_0s(n)\in\omega(\log n).

Having obtained a contradiction by showing that t(n)t(n) has to be in nω(1)n^{\omega(1)}, we conclude that

Li∉BQTISPC(nO(1),o(log⁡n(log⁡log⁡n)i)).L_i\notin\mathrm{BQTISP}_{\mathrm C}\left(n^{O(1)},o\left(\frac{\log n}{(\log\log n)^i}\right)\right).

Concluding remarks

We conclude with some open questions.

  • Can Theorem 2 be strengthened from Monte Carlo space to worst-case space? Specifically, is it true that for every computable, nondecreasing s(n)∈ω(1)s(n)\in\omega(1),

BQTISP(nO(1),O(1))⊊BQTISP(nO(1),O(s(n)))?\mathrm{BQTISP}(n^{O(1)},O(1))\subsetneq\mathrm{BQTISP}(n^{O(1)},O(s(n)))?
  • Theorem 3 exhibits space thresholds at Θ(log⁡n/(log⁡log⁡n)i)\Theta(\log n/(\log\log n)^i) for every ii. We believe that similar separations can be obtained for more general space functions throughout

ω(log⁡log⁡n)∩o(log⁡n).\omega(\log\log n)\cap o(\log n).
  • Our techniques are clearly limited to sublogarithmic space. How can one establish superlogarithmic space thresholds for polynomial-time quantum computation?

AI use

Lemma 15 is the result of a long sequence of ideas generated in conversations with ChatGPT 5.5, with the construction of the final contradiction in the proof being due to ChatGPT. The particular function template log⁡n(log⁡log⁡n)2\frac{\log n}{(\log\log n)^2} used in Theorem 3 was also provided by ChatGPT. The paper benefited from repeated reviews of previous drafts by ChatGPT 6. The author takes full responsibility for the contents of the manuscript.

Acknowledgments

The author thanks Utkan Gezer for the preparation of the LaTeX infrastructure used in the figures. Special thanks and love to dear friends Gülay Ayyıldız Yiğitcan and Kemal Yiğitcan, as well as their cats Tosun and Sali, who hosted our family for a month during a housing emergency as this research started.

References

  1. [1]A. Ambainis and J. Watrous. Two-way finite automata with quantum and classical states. Theoretical Computer Science, 287(1):299–311, 2002.DOI
  2. [2]S. Arunachalam and J. F. Dorig uello. Matrix hypercontractivity, streaming algorithms and LDCs: The large alphabet case. ACM Transactions on Computation Theory, 16(4), 2024. doi: 10.1145/3688824. Article 21.DOI
  3. [3]P. Beame, N. Korn erup, and M. Whitmeyer. Quantum time-space tradeoffs for matrix problems. SIAM Journal on Computing, 55(3):469–519, 2026. doi: 10.1137/24M1710164.DOI
  4. [4]C. Dwork and L. Stockmeyer. A time complexity gap for two-way probabilistic finite-state automata. SIAM Journal on Computing, 19(6):1011–1023, 1990.DOI
  5. [5]R. Freivalds and M. Karpinski. Lower space bounds for randomized computation. In Automata, Languages and Programming. ICALP 1994, Lecture Notes in Computer Science 820. Springer, 1994.DOI
  6. [6]Y. Hamoudi and F. Magniez. Quantum time-space tradeoff for finding multiple collision pairs. In M.-H. Hsieh, editor, 16th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2021), volume 197 of Leibniz International Proceedings in Informatics (LIPIcs), pages 1:1–1:21, Dagstuhl, Germany, 2021. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi: 10.4230/LIPIcs.TQC.2021.1.
  7. [7]T. Heinosaar and M. Ziman. The Mathematical Language of Quantum Theory. Cambridge University Press, 2012.
  8. [8]M. Karpinski and R. Verbeek. On the Monte Carlo space constructible functions and separation results for probabilistic complexity classes. Information and Computation, 75:178–189, 1987.DOI
  9. [9]C. Lö h. Geometric Group Theory. Springer Cham, 2017.DOI
  10. [10]M. L. Minsky. Recursive unsolvability of Post’s problem of “Tag” and other topics in theory of Turing machines. The Annals of Mathematics, 74(3):437–455, 1961.DOI
  11. [11]Z. Remscrim. The power of a single qubit: Two-way quantum finite automata and the word problem. In A. Czumaj, A. Dawar, and E. Merelli, editors, 47th International Colloquium on Automata, Languages, and Programming (ICALP 2020), volume 168 of Leibniz International Proceedings in Informatics (LIPIcs), pages 139:1–139:18, Dagstuhl, Germany, 2020. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. (Full version: https://eccc.weizmann.ac.il/report/2019/107/).DOI
  12. [12]Z. Remscrim. Lower bounds on the running time of two-way quantum finite automata and sublogarithmic-space quantum Turing machines. In J. R. Lee, editor, 12th Innovations in Theoretical Computer Science Conference (ITCS 2021), volume 185 of Leibniz International Proceedings in Informatics (LIPIcs), pages 39:1–39:20, Dagstuhl, Germany, 2021. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. (Full version: https://arxiv.org/abs/2003.09877).
  13. [13]A. C. C. Say. Time hierarchies for sublogarithmic-space quantum computation. Theoretical Computer Science, 1061:115639, 2026. doi: 10.1016/j.tcs.2025.115639.DOI
  14. [14]A. C. C. Say. Short and useful quantum proofs for sublogarithmic-space verifiers. In E. Formenti and L. Manzoni, editors, Unconventional Computation and Natural Computation, pages 88–99, Cham, 2026. Springer Nature Switzerland. ISBN 978-3-032-15641-9.
  15. [15]A. C. C. Say. Subexponential-time quantum advantage beyond double-logarithmic space, 2026. URL https://arxiv.org/abs/2601.16695.
  16. [16]A. C. C. Say and A. Yakaryılmaz. Magic coins are useful for small-space quantum machines. Quantum Information & Computation, 17(11–12):1027–1043, 2017.arxiv.org/abs/1411.7647
  17. [17]J. Shallit and Y. Breitbart. Automaticity I: Properties of a measure of descriptional complexity. Journal of Computer and System Sciences, 53:10–25, 1996.DOI
  18. [18]R. E. Stearns, J. Hartmanis, and P. M. Lewis. Hierarchies of memory limited computations. In 6th Annual Symposium on Switching Circuit Theory and Logical Design (SWCT 1965), pages 179–190, 1965. doi: 10.1109/FOCS.1965.11.DOI
  19. [19]D. van Melkebeek and T. Watson. Time-space efficient simulations of quantum computations. Theory of Computing, 8(1):1–51, 2012. doi: 10.4086/toc.2012.v008a001.DOI
  20. [20]J. Watrous. On the complexity of simulating space-bounded quantum computations. Computational Complexity, 12:48–84, 2003.DOI

Paper details

vlnc:W_qejqx85n
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.

  • Computer Science

GPT-5.5 (bare), ChatGPT 6

View statement
Looking for related papers…
Contents