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 , there is a language that can be recognized in polynomial time by an -space QTM but not by any -space machine in that regime. We also demonstrate a sublogarithmic worst-case space hierarchy for polynomial-time quantum computation, proving that , where for each , .
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 , the language of palindromes on the alphabet , within time. Note that can be recognized by a deterministic Turing machine in polynomial time within 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 , but can be recognized deterministically in polynomial time within space.
Unlike their classical counterparts, which can only recognize regular languages in polynomial time within worst-case space [4], QTMs can recognize many nonregular languages like
as well as the word problems of all finitely generated virtually abelian groups, in polynomial expected time using only 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 ) 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 is said to recognize a language in Monte Carlo space if there exists a constant such that
for all , uses at most work tape cells and accepts , and
for all , uses at most work tape cells and rejects .
We define the time-space complexity class to be the collection of languages recognizable by QTMs that operate simultaneously in Monte Carlo space and expected time .
Our main result is
Theorem 2. For any computable, nondecreasing and unbounded function ,
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 to establish the separation. Even if we relaxed our time requirements, we would have to identify a different “hard problem” for the separation, since 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 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 ,
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 , where and are special endmarker symbols, and is the input string. At the beginning of the computation, the input head is situated on the left endmarker , 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 , where
is the finite set of classical states,
is the finite input alphabet, not containing and ,
is the finite work alphabet, including the blank symbol ,
is the finite set of possible values of the measurement register,
, a positive integer, is the number of qubits in the quantum register,
is the initial state,
, such that , are the accept and reject states, respectively,
is the initial value of the measurement register,
, where 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
is the classical transition function.
At the start of computation, a QTM is in state , the measurement register contains , and all qubits of the finite quantum register and the quantum work tape are in their zero states. Every computational step of 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 is in some non-halting state , with the input head scanning the symbol and the classical work tape head scanning the symbol , the selective quantum operation acts on the quantum register and the qubit presently scanned by the quantum work tape head.2 This action3 results in those qubits evolving, and some output being stored in the measurement register with an associated probability.
The ensuing classical transition updates the classical state to , changes the presently scanned classical work tape symbol to , and moves the input, classical work and quantum work heads in the directions indicated by the increments , , and , respectively.
halts with acceptance (rejection) when it enters the state ().
For any , a QTM is said to recognize a language with error bound if
for each input string , accepts with probability at least , and
for each input string , accepts with probability at most .
Such a machine is said to run within (worst-case) space if, on any input of length , at most cells are scanned on both the classical and quantum work tapes throughout the computation.
A computation performed by a machine that runs within 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 denotes the class of languages recognizable with bounded error by QTMs running within worst-case space and in expected time . 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, BQTISP will denote the counterpart of BQTISP defined in terms of unrestricted-amplitude QTMs. Similarly, a 2QCFA is simply a 2QCFA that may employ transcendental as well as algebraic amplitudes [1].
Definition 5. [4] For any language and number , two strings and are said to be -dissimilar, written , if , , and there exists a distinguishing string with , , and . Let be the maximum such that there exist
distinct strings that are pairwise , with the convention that if no two strings are -dissimilar. The function is named the nonregularity of .
The following results, which link the nonregularity measure to the simultaneous time-space complexity of a QTM that recognizes the associated language , are due to Remscrim. [12]
Theorem 6. Suppose , and suppose further that . Then there exists a real number such that
Theorem 7. Suppose is recognized with error bound in expected time by a that has elements in its classical state set and qubits in its quantum register. Then there exists a natural number such that
for all .
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 ,
The witness languages
We start by defining the languages that will witness the separation of Theorem 2. Let be any unbounded and nondecreasing computable function. A language will be defined for each such . The members of each will be two-part strings of the form , where
the prefix is the representation of a natural number , in the format to be described in Section 3.1.1, and
the postfix is an encoding of a member of the word problem of the group , 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] consists of a finite-state control and three (unary) counters, named , and . If has states, its state set is , with the convention that is the initial state and is the halting state. The behavior of is governed by its transition function . For each non-halting state of , specifies one of the following actions on one of the counters, say, :
: Increase by 1 and switch to the (possibly new) state .
: Decrease by 1. If has reached 0, switch to state , Otherwise, switch to state .
We assume that the initial state is associated only with INC actions. Configurations of can then be represented as strings of the form $01^{j}2^{}3^{*}$, where is the current state, the length of the maximal substring of ’s equals the number in for , and the end of each configuration is marked by a $$. On input (a natural number), 3CM starts from the initial configuration (i.e. with and initialized to 0), and halts only if it reaches the state . We define the output of the 3CM to be the number in its first counter 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 [8, 10].4
For any 3CM that halts on every input, let denote the string which represents the history of the computation of on input , that is, the concatenation of the strings describing the entire sequence of configurations attained by during this computation from start to halting.
Given an arbitrary unbounded and nondecreasing computable function , we will show how to construct a 3CM that computes another total function determined by . For any natural number , the string will then be used as a representation of . The following argument has been adapted from [8].
Given , define a new function as follows:
Since is unbounded, nondecreasing and computable, is also unbounded, nondecreasing, computable and total.
For any , the value of is the sum of the numbers . On input 0, the 3CM simply computes and outputs . On any larger input , extends the computation required for by an additional iteration computing .
We note that
for all , since the string clearly contains a proper substring representing ’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 , .
Proof. Assume to the contrary that for some . The definition of then dictates that
which leads to a contradiction with (1).
Representing word problems
For any string and symbol from the same alphabet, let denote the number of occurrences of in . Let denote the empty string. For each , the group is the direct product of copies of the group (the integers, where the group operation is addition).5 Consider the alphabet , with each corresponding to “” in the th group, and corresponding to the inverse of generator . Each string in represents a -tuple of integers, where the th integer equals for each . We will call the language
(i.e. the set of all strings representing the all-0 tuple) the word problem of .
To represent these word problems for all using a single alphabet, we will use the following injective codings.
Definition 9. For all , the function is defined such that
,
,
, and
, where and
for all .
For each , the encoded word problem of is then defined to be
For each , we now define the language
on the common alphabet , so that each string in consists of a prefix encoding some number , followed by a postfix that is a member of the encoded word problem of .
A QTM recognizing
Lemma 10. For any computable, nondecreasing and unbounded function ,
Proof. For all , we will show the existence of a polynomial-time QTM such that
has a single qubit in its quantum register and never uses its quantum work tape,
for all , , and
for all , .
We start by explaining the idea behind a heavily used “quantum subroutine” of . Consider the word problem of , i.e. the language
on the alphabet . There exists a polynomial-time 2QCFA algorithm [11] which recognizes with negative one-sided bounded error, that is, accepts members of with probability 1, and can be tuned (by selecting a suitable instance from an infinite set of such machines) so that it rejects nonmembers with probability at least , for any desired small positive value of . uses a single qubit in its quantum register.
We use a technique [13] by which the algorithm 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 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 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 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 on the right. (Assume that such a segment of the form % exists, and that the binary string between the two delimiters can be unambiguously parsed by as some concatenation of 010s, 011s, and possibly other binary substrings. As we will see, a preprocessing stage guarantees that these conditions hold for .) To perform this subtask, EqNum starts with the input head of 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 ), EqNum “feeds” the corresponding symbol in the second column of the table, simulating the computational step of associated with that virtual symbol. The classical transition of the simulated step will then determine the new direction of the input head. The head may then move for several 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 reaches one of its accept or reject states. If the simulated execution of rejects, the EqNum submachine also rejects, terminating the execution of . If the simulated accepts, EqNum simply returns control to the next state of . 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 .
| Substring on the input tape of | Corresponding symbol on the virtual tape of |
| % | |
| 010 | |
| 011 | |
Table 1. Comparing the number of occurrences of “010” with that of “011” between % and
A general template that can be used to obtain for any desired pair is presented in Figure 1. We commence the explanation of the algorithm with the implementation of the submachine HistoryCheck (Stage (A)).

Figure 1. The QTM . denotes the input string of length .
Reject if is not of the form , where and
(A) Run HistoryCheck to determine whether .
(B) Write the number in binary on the classical work tape.
(C) Reject if is not a proper encoding.
For each integer from 1 to , do the following:
(D) Run EqNum to compare the numbers of occurrences of the codewords and in .
Accept if not rejected up to this point.
Let be a 3CM that eventually halts on every input. Define the “history language” of as the set of all computation histories of (in the format described in § 3.1.1) for all positive inputs:
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 of the input string is a member of the history language for the 3CM (tailored for the function as specified in § 3.1.1). If it detects a syntax error in , 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 for some , and that the last configuration is halting. It then sweeps , examining each consecutive pair
of configuration descriptions to see if it represents a valid transition of the machine . The finite-state control is sufficient to trace the program flow and check whether and are related correctly. As for the counters, note that every such transition of requires exactly one counter value to change by 1, and the others to remain the same. For each , these conditions can be controlled by EqNum “calls” tailored to compare the number of occurrences of the symbol 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 dictates that the considered counter value should increase by 1 is handled by a submachine that feeds the symbols (rather than just ) to whenever the leftmost 0 of the configuration on the left is scanned. Dec actions of are handled similarly, by introducing an additional virtual 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 are set to operate with the desired overall error bound . The probability that Stage (A) fails to reject when is at most , 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 .
We define the partial function so that it maps any string of the form to the (possibly empty) maximal substring of 1’s to the left of the leftmost symbol in . Stage (B) simply walks the input head on and writes the length 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 (which cannot exceed due to the fact that is nondecreasing) on the work tape (and therefore exceeds the space budget ) is bounded by .
In Stage (C), checks whether is of the form where all the are members of . This can be performed in a single sweep of by repeatedly counting up to at most . Stage (D) also uses such a counter to ignore all codewords other than and in at the th iteration of the loop, and presents a virtual (resp. ) to the algorithm for each (resp. ) in , as discussed above during the explanation of EqNum.6
No stage uses more than 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 , which cannot exceed the input length . resets and reuses its single qubit in consecutive EqNum calls.
If the input string is in , accepts it with probability 1. The highest probability with which a string can be accepted is at most , and this is realized if has a single defect that the associated EqNum subroutine fails to catch.
No constant-space polynomial-time machine can recognize
This section will culminate with the proof of the following lemma.
Lemma 11. For any computable, nondecreasing and unbounded function ,
We first note that the worst-case and Monte Carlo space complexity classes coincide for constant bounds:
Lemma 12. .
Proof. For any pair of complexity functions and , , since a language recognized by some QTM that runs within worst-case space already satisfies Definition 1 of membership in the associated Monte Carlo space complexity class. For the other direction, assume that some polynomial-time QTM recognizes a language in Monte Carlo space . This implies that there exists a natural number and a real number such that, on every input , scans at most cells on its work tapes and terminates with the correct accept/reject response about the membership of in with probability at least . We build a 2QCFA that simulates ’s behavior on “truncated” work tapes: uses its classical states to imitate the leftmost cells of ’s classical work tape, and its finite quantum register to imitate the leftmost qubits in ’s quantum work tape. Whenever attempts to access the st cell on any work tape, rejects. Clearly, recognizes the language with error bound , and its runtime cannot exceed that of , letting one conclude that .
To prove Lemma 11, it is therefore sufficient to show that no polynomial-time 2QCFA can recognize for any satisfying the stated conditions.
Define the length of an element of as the length of the shortest string in that represents the -tuple . The number of elements of with length at most is represented by the function , which is called the growth rate of .
For a pair of non-decreasing functions , one writes if there exist positive real numbers such that for any nonnegative real , ; one writes if both and .
Fact 13. [9] For all , .
Lemma 26 of [12] establishes an upper bound on the growth rate of any finitely generated group in terms of the nonregularity of the word problem of . A direct application of that lemma to the groups yields the following result, which will be useful in our proof of Lemma 15.
Fact 14. For any , , .
Lemma 15. Suppose is a computable, nondecreasing and unbounded function. Then there exists no polynomial-time 2QCFA that recognizes the language .
Proof. Suppose is recognized with error bound in expected time by a 2QCFA which has qubits in its quantum register for some . Let be the classical state set of . Assume without loss of generality that never reenters the initial classical state after the start of computation. We will show how can be used as a template to build a 2QCFA that recognizes for any desired . Importantly, all those machines for different values of will be shown to have the same classical state set, the same quantum register size, and the same polynomial exponent in their expected runtime bound (all independent of ) as . We will conclude the proof by demonstrating that this contradicts a well-known fact about the growth rate of the group .
For any , is obtained by modifying so that ’s output on any input will be identical to ’s output on the input string . When its input head is scanning any symbol other than the left endmarker , simply carries out the computational step dictated by the program of . When scanning , performs a step that “summarizes” the behavior of on the prefix of the input tape content as described below.
Following [12], we define the space
We call a pair , where and is a density operator on , a border state, and identify it with the density operator on . A border state represents the “combined internal state” of , consisting of its classical state and the state of its quantum register, whose respective dimensions are independent of .
Consider either the initial computation of within , starting at its left endmarker, or a subsequent traversal of , starting at the symbol % after the head crosses the “border” between and leftward. Such a traversal can end by accepting, rejecting, or exiting rightward in some classical state. For every border state that occurs with positive probability at the beginning of such a traversal, the total probability of these outcomes is 1, since has finite expected runtime. We now justify replacing each such traversal by a single transition of .
The construction for summarizing traversals of a fixed prefix in [12 Section 3.2, second remark following Definition 12] yields, for each classical state , a selective quantum operation on the original quantum register that summarizes traversals of beginning in state . 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 2QCFA permits this operation to be performed in a single step when scans . Its classical transition then accepts, rejects, or moves right in the indicated classical state. The initial traversal is summarized in the same way, with distinguishing it from subsequent traversals. Thus uses the same classical state set and the same -qubit register as .
Since spends only one step whenever it is simulating multi-step traversals performed by on , its runtime on any particular input cannot exceed the runtime of on the input . Note that each input string given to is symbols shorter than the input processed during the corresponding run of , which takes time in by our initial assumption. Therefore, ’s runtime as a function of its input length is in and so there must exist numbers such that has at most expected runtime for inputs longer than , where is a constant that may depend on . This proves our claim that also has runtime in .
We now plug the common error bound , runtime in , qubit count and classical state count of the machines in Theorem 7 and conclude that there exists a natural number depending on such that
for all , where is another constant that depends on .
We will bound the nonregularity of using (2). We claim that
for all and all . This is easy to see for all for which . Otherwise, let be pairwise -dissimilar, where . For any of length at most , define
Since every codeword for the symbols in has length at most ,
Fix . Since and are -dissimilar, there exists such that
and
Then
and
Hence and are -dissimilar. Therefore
Combining this fact with (2) and letting yields
for large , where is a constant that depends on .
Fact 14 and the inequality (3) imply that, for any and all sufficiently large ,
where the constant depends on , but does not. For all , this contradicts Fact 13, which establishes that , showing that our initial assumption that a polynomial-time can recognize is false. □
As stated above, Lemma 11 follows from Lemmas 15 and 12.
For any computable, nondecreasing and unbounded function , set . 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 ,
We will define a language family that will help demonstrate the separations between the consecutive levels of the hierarchy.
For any integer , let denote the shortest string representing in the binary notation. The language
is in the deterministic complexity class [18]. It is straightforward to show that the length of the rightmost “segment” (i.e. the postfix following the rightmost ) of any -symbol member of is related to as
A polynomial-time deterministic Turing machine can recognize 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 , the space complexity is . 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 bits on the work tape.
The language format to be described below is based on a similar construction in [14]. Consider the alphabet . Strings written using are to be interpreted as containing two tracks, with the symbol indicating that the upper (resp. lower) track contains the symbol (resp. ) at that position.
For every nonnegative integer , we define the language as the set of all strings which satisfy the following conditions:
The upper track of is some member of which ends with the postfix .
The lower track of is a member of the set
The proof of Theorem 3 is completed by the following two lemmas.
Lemma 16. For all , .
Proof. We describe a polynomial-time deterministic Turing machine (Figure 2) that recognizes .
Figure 2. The DTM . denotes the input string of length .
If the string on the upper track of is a member of with final segment , store the values and in binary on the work tape. Otherwise, reject.
Compute and write the number in binary on the work tape.
Write a 1 followed by 0’s to store the number in a designated area on the work tape.
Reject if the string on the lower track of is not of the form , where .
If is a palindrome, accept. Otherwise, reject.
In Stage (A), runs the -space algorithm described above [18] to determine whether the upper track of its input is some member of . If this check fails, halts by rejecting the input. Otherwise, uses a work tape segment of bits to write the length (Equation (4)) of the string . counts the digits of that representation to obtain an even shorter binary representation of the number as well on the tape. The arithmetic operations required for the computation in Stage (B) can also be performed in space.
Stage (C) uses , i.e. bits to write the number on the tape. That same area is used as a counter to check whether the lower track of is of the required form in Stage (D). If control reaches Stage (E), only (i.e., again ) bits are sufficient to check whether is a palindrome, by comparing whether the th and st symbols of are identical for all .
’s runtime is polynomially bounded, since its space usage is logarithmically bounded and it never enters an infinite loop. We conclude by noting that
for all , since QTMs can simulate DTMs exactly.
Lemma 17. For all , .
Proof. We first bound the nonregularity of the language . Let
be the length of the th shortest member of . So the lengths at which can have member strings are precisely the numbers , for .
Consider such a “populated” length . By Equation (4),
Each member with length has a lower track that contains a palindrome , followed by symbols, where
which is an even number. Let denote the prefix of with length , that is, has the left half of the -bit palindrome underlying as its lower track. For every , define as the postfix that satisfies .
Let be the set .
Since every distinct pair of strings in are distinguished by the string , we have
Using Equation (6) and the fact that
for any , we obtain
which justifies that, for any ,
for all sufficiently large , since
for fixed .
Using Inequalities (7) and (8) together with the fact that
it is easy to show that there exists a constant such that, for all sufficiently large ,
We now extend this bound from populated lengths to all sufficiently large lengths. The function is nondecreasing in , since a set of strings that are pairwise -dissimilar are also pairwise -dissimilar for every . Let be sufficiently large, and choose such that
The gap between consecutive populated lengths is
Since , we have
and therefore
In particular, for all sufficiently large ,
It follows that
for some constant and all sufficiently large . Combining this with the nondecreasingness of and Equation (9), we get
for some constant and all sufficiently large .
Suppose, toward a contradiction, that
Then there exists a bounded-error QTM recognizing in expected time and worst-case space
for any real number , for all sufficiently large .
By Equation (10),
for all sufficiently large . Hence
i.e. is small enough for Theorem 6 to be applicable. Therefore, for some constant ,
Employing Equation (10), we obtain
where we use the abbreviation
We will obtain a contradiction by showing that this lower bound for is superpolynomial under the given space bound. For this purpose, it is sufficient to show that the exponent
is in . Using Equation (11), we obtain, for any positive and all sufficiently large ,
Using a suitable value of , one gets
so we have
Taking logarithms of the right-hand side gives
which tends to infinity, since is fixed. Therefore
On the other hand,
Hence
Having obtained a contradiction by showing that has to be in , we conclude that
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 ,
Theorem 3 exhibits space thresholds at for every . We believe that similar separations can be obtained for more general space functions throughout
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 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]A. Ambainis and J. Watrous. Two-way finite automata with quantum and classical states. Theoretical Computer Science, 287(1):299–311, 2002.DOI
- [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]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]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]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]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]T. Heinosaar and M. Ziman. The Mathematical Language of Quantum Theory. Cambridge University Press, 2012.
- [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]C. Lö h. Geometric Group Theory. Springer Cham, 2017.DOI
- [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]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]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]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]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]A. C. C. Say. Subexponential-time quantum advantage beyond double-logarithmic space, 2026. URL https://arxiv.org/abs/2601.16695.
- [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]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]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]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]J. Watrous. On the complexity of simulating space-bounded quantum computations. Computational Complexity, 12:48–84, 2003.DOI
