Manuscript Offprint
arXiv:2609.40154Quantum Černý complexity of binary words
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We introduce the quantum Černý complexity of a binary word : the least dimension for which there exist quantum channels on density matrices and a start state such that is the unique shortest word whose associated channel is constant on the reachable set. We show that for every nonempty , a quadratic saving over the classical analogue, and that constant words are extremal: . In contrast, for every , realized by a single qubit whose rotation angle acts as a counter; consequently there is no quantum analogue of the Černý function, and is strongly anti-correlated with intuitive notions of descriptive complexity. We further study the variant in which the synchronization target is required to be a pure state. We prove that in dimension 2 no word of length at least 2 can be a unique shortest synchronizing word with pure target, and we exhibit an explicit qutrit instance, combining a coherent rotation with a measure-and-funnel channel, achieving with target a computational basis state and with synchronization holding universally over all input states. Thus purity of the reset state costs exactly one dimension on this family. We also observe that is computable, by reduction to the first-order theory of the reals.
1 Introduction
A deterministic finite automaton is synchronizing if some input word sends every state to one and the same state; the Černý conjecture [1, 5] asserts that an n-state synchronizing automaton always admits a synchronizing (reset) word of length at most , with the best known general upper bounds being cubic in [4]. One may dualize the question: given a word , define its reset complexity as the least number of states of an automaton for which is the unique shortest synchronizing word. This is a machine-based description size for , in the spirit of automatic complexity.
In this note we study a quantum analogue. States become density matrices, letters become quantum channels (completely positive trace-preserving maps), and “sending every state to one state” becomes “the channel of the word w is constant on the set of reachable states.”
Definition 1.1. Let . An instance is a tuple where are quantum channels on the density matrices and is a density matrix. For a word write (letters applied left to right), with . The reachable set is . A word is synchronizing for the instance if is constant on , i.e. there is a density matrix with for all . The quantum Černý complexity of a nonempty word is the least such that some instance of dimension has as its unique shortest synchronizing word. The variant is defined identically except that the target is additionally required to be a pure state.
Note that if is a unique shortest synchronizing word then the empty word does not synchronize, so ; in particular is impossible for every nonempty , and always. Clearly .
Our results are summarized as follows. Constant words are as hard as possible for their length , matching the general upper bound of Theorem 2.4), while the words have uniformly in : a qubit rotation angle can count the run of 1's at no dimensional cost. So qc behaves opposite to Kolmogorov-style intuition — the “simplest” word is the most expensive one — and there is no quantum Černý function: in fixed dimension , unique shortest synchronizing words of unbounded length exist (Corollary 4.2). The pure-target variant restores a separation: , witnessed by an explicit qutrit construction whose target is a computational basis state (Theorem 5.2) and whose optimality follows from a rigidity theorem for qubit channels (Theorem 5.1).
Proposition 2.1 (Linearization). Let be an instance, let denote the (real-linear) action of on , and let . Then is invariant under and , and a word is synchronizing if and only if vanishes on . Moreover , so is computed by finitely many words.
Proof. For we have , and , giving invariance; the same identity applied to shows is constant on iff kills every difference of reachable states, i.e. vanishes on . For the last claim, let be the span of differences of states reachable in at most steps; then , so is a nondecreasing chain of subspaces of the -dimensional space , which stabilizes as soon as it fails to grow, hence within steps, and its limit is .
Thus qc is at heart a matrix mortality quantity: w must be the unique shortest word whose matrix product vanishes on an invariant subspace of dimension at most . Two consequences follow. First, any pair of real linear maps that is small in norm can be realized inside channels, by perturbing the completely depolarizing channel; this is the engine of all our upper bounds. Second, since mortality only concerns finitely many words of length less than , together with the finite description of V above we obtain:
Remark 2.2 (Computability). For each fixed and , the statement “some instance of dimension has as unique shortest synchronizing word” is expressible in the first-order theory of the reals: complete positivity is positive semidefiniteness of the Choi matrix, is definable by Proposition 2.1, and one quantifies over the finitely many words of length at most . By Tarski’s decision procedure, (and likewise ) is a computable function of . This contrasts with the undecidability of general matrix mortality over the integers [3].
The next lemma packages the perturbative construction.
Lemma 2.3 (Depolarizing perturbation). Let be any real-linear map on . For all sufficiently small , the linear map
is a quantum channel, and for every traceless Hermitian and scalar .
Proof. is trace-preserving and Hermiticity-preserving by construction, and its Choi matrix is for a fixed Hermitian ; since has full rank, the Choi matrix is positive semidefinite for small , i.e. is completely positive. The displayed identity is immediate.
Theorem 2.4 (General bounds). For every nonempty ,
Proof. The lower bound was noted after Definition 1.1. For the upper bound, let and let , so . Consider the Knuth–Morris–Pratt automaton of : states , where state represents the longest suffix of the input read so far that is a prefix of , with transitions for defined accordingly, and an absorbing sink entered once has occurred. The defining property is: for all and , iff contains as a factor. In particular, for all iff itself contains (take for the forward direction; conversely an occurrence of inside drives any state into the sink).
Choose linearly independent traceless Hermitians (possible since ) and set ; the sink sits at the origin. Define on by for and on a complement of ; then for all words . Let be the channel of Lemma 2.3 for , and let (a state for small ). By the lemma, for every .
Now fix and ask when synchronizes. The states must agree for all . Taking gives the value (sink, ), so constancy forces , i.e. , for every . Since every classical state is reachable from 0 (read prefixes of ), this says for all , i.e. contains as a factor; and conversely any such synchronizes, with target . The shortest words containing have length , and the unique one is itself.
Remark 2.5. The same automaton realized classically — with deterministic channels on and — shows for every , with the pure target . Thus both quantities are finite, and the quantum saving in Theorem 2.4 is quadratic: coherences make available a difference space of dimension rather than .
3 Constant words are extremal
Theorem 3.1. For every , . In particular the constant word attains the general upper bound of Theorem 2.4: among words of its length it is the most complex.
Proof. Lower bound. Suppose is the unique shortest synchronizing word of an instance of dimension , and let in the notation of Proposition 2.1. Synchronization of gives ; if then would synchronize, contradicting minimality. So is nilpotent of index exactly on , forcing , i.e. .
Upper bound. Let . Inside fix a subspace with basis and let be the nilpotent map , , extended by ; let and on , extended by . Take the channels of Lemma 2.3 and . Then , where is the number of 's in . For a word , the images must agree over all ; taking with gives the value , so constancy is equivalent to for all , and (the empty word) shows this happens iff . The shortest such words have length , uniquely .
4 A phase counter:
We now show that a single qubit suffices for the words , uniformly in . On a qubit we use the Bloch parametrization , , ; a channel acts as an affine map of the ball into itself.
Theorem 4.1 ([2]). For every , .
Proof. It is sufficient for us to proof the upper bound. Here we present the proof by Lakshmanan in [2]. Let be the quantum channel with Kraus operators
and be the rotation channel with Kraus operator
where , we claim that the word is synchronizing with synchronizing state .
Let
be an arbitrary density matrix. We compute
Informally, one can see that the action of can be thought of as sending the off-diagonal entries to zero. Similarly, the matrix rotates by .
For all n, with ,
SO,
Once more, we apply , and the resulting state . Since was an arbitrary density state reachable by the two operators and , is the synchronizing state with synchronizing word .
Corollary 4.2 (No quantum Černý function). For each fixed there exist instances of dimension whose unique shortest synchronizing words are of unbounded length. Consequently no bound on reset length in terms of dimension alone — no quantum analogue of the Černý function — can exist.
The mechanism deserves emphasis: the rotation angle is a continuous parameter used as a counter. It verifies “exactly ones in a row” through a single orthogonality coincidence , at zero cost in dimension. This is precisely what is unavailable to the constant word , whose synchronization must occur at the -th application of one and the same map and not the -st, forcing a genuine nilpotent chain of length (Theorem 3.1). The counting argument that makes random words expensive in the classical, finite setting (there are only finitely many small automata) fails completely over a continuous machine class.
5 Pure targets:
The qubit construction above resets to the maximally mixed state — physically, to useless noise at the center of the Bloch ball. Requiring a pure reset state changes the answer, and the obstruction is a rigidity phenomenon special to dimension 2.
Theorem 5.1 (No pure targets on a qubit). No instance of dimension 2 has a unique shortest synchronizing word with and pure target. Consequently .
Proof. Suppose with the last letter, , and let have Kraus operators and pure target . Let . If then is a shorter synchronizing word, contradiction; so maps at least two distinct states of to .
If some is mixed, then in dimension 2 it has full rank. From and positivity of each summand, every is proportional to , so the range of , hence of , lies in : for some . Trace preservation gives , so for every : the single letter synchronizes, contradicting .
Otherwise all states of are pure, and contains two distinct pure states, whose rays span . Each maps both rays into , hence maps all of into , and we conclude as before. In either case we have a contradiction, proving the first claim.
For the second claim: the single-letter words are realizable with pure targets in dimension 2 (let be the constant channel onto a pure state and a nontrivial unitary; then has at least two elements, the empty word does not synchronize, 0 does, and 1 does not), and by the first claim no longer word is.
The escape hatch in dimension is that a non-constant channel can be constant on a proper face of the state space; a qubit's state space has no faces except single pure states, which is exactly what the proof exploits. The following construction uses this: one channel funnels an entire face onto a basis state, and a coherent rotation steers all reachable states onto that face at precisely the right moment.
Theorem 5.2. For every , . Moreover this is witnessed by an instance with the following additional properties: the target is the basis state , and the word synchronizes universally, i.e. is the constant channel on all density matrices.
Proof. The lower bound is Theorem 5.1 since .
For the upper bound, work on with basis and . Let have the two Kraus operators
so that and, explicitly, is supported on with entries
Populations flow , , ; in particular is constant, equal to , on the face of states supported on . Let with
a rotation in the -plane fixing .
synchronizes universally. is the quarter rotation , . For arbitrary : after the state is supported on with and ; after its support moves to ; the final is constant on that face, and indeed places in entry with all other entries zero. Thus for every , a pure basis state.
Reachable set. Starting from , a routine induction shows every reachable state has the form
rotates and fixes the rest, while maps to rotated into the frame; precisely, writing , one gets , with no coherence since .
Minimality and uniqueness. We must show no word of length at most other than synchronizes on . Since is invertible, is constant on iff is; so it suffices to treat words ending in 0 (words in are injective on , and because — via the empty word and the word 0 — so they do not synchronize). Write such a word as with zeros.
First, the states entering the “diagonal family” after the initial block take at least two distinct values of the parameter above. Indeed contains and , whose -values after are and respectively; these are equal only if , i.e. or . The former is false, and the latter would give , impossible by parity. So two distinct values enter.
Second, each subsequent block acts on the parameter by the affine map
as one checks directly from the formulas above (rotate the -component by , then apply ). This map is injective unless , i.e. unless . Hence if no internal run is congruent to modulo , the two trajectories remain distinct through the final 0, after which the state is determined by ; so does not synchronize. If some then contains the factor with , so , with equality only for . (When such a factor is present, the state after it equals for every input, so does synchronize — consistently with the universal computation above.)
Therefore is the unique shortest synchronizing word, its target is pure, and .
Corollary 5.3 (Purity costs one dimension). For every ,
In particular the pure-target variant also admits no Černý function: fixed dimension 3 supports unique shortest synchronizing words of unbounded length with pure (indeed basis-state) targets.
Remark 5.4. The classical shadow of the qutrit instance — the action of on diagonal states — is the deterministic map , , , which can never synchronize on its own since states 2, 3 cycle. It is the coherent rotation , transferring the population of level 2 back to level 1 ( ) before the funnel closes, that makes the construction work; the instance is irreducibly quantum rather than a disguised automaton.
6 Discussion and open problems
What does qc measure?
Theorems 3.1 and 4.1 exhibit the central, perhaps counterintuitive, feature of qc: the intuitively simplest word is extremal, , while the patterned words cost nothing, . A small instance is a short description of its unique shortest synchronizing word, so qc is a description-size measure — but over a continuous machine class, where real parameters encode integers for free (the angle of Theorem 4.1 is a unary counter of zero dimensional cost). What survives as expensive is exact nilpotency depth: a pure power forces synchronization to occur at the -th application of one and the same map and not the -st, and an index- nilpotent needs dimensions — the one resource continuous parameters cannot shortcut. In this sense qc is anti-correlated with Kolmogorov-style intuition, much as, elsewhere in automata theory, recognizing exactly is the expensive task while intricate-looking words can be cheap. It follows that qc is wildly non-monotone in length and under factors: while .
Fragility
Both counter constructions live on codimension-one coincidences ( ; ): under a generic perturbation of the parameters, no word synchronizes exactly. An approximate version of the definition ( on ) would therefore behave very differently and deserves its own study. In the qutrit instance of Theorem 5.2, the face-collapse mechanism (the funnel ) is robust; only the steering step is a measure-zero coincidence. One may regard this robustness asymmetry, alongside the purity of the target, as a reason to prefer -style definitions.
Open problems
-
(Thue–Morse prefix.) We conjecture ; the bound follows from Theorem 2.4. More generally, characterize . By Theorem 5.1 the analogous pure-target class is trivial, , so the interest is genuinely in the mixed-target case. A dimension count in the Bloch picture (both letters must act by singular Bloch maps when begins and ends with distinct letters, and collapse is governed by kernel-image incidences) suggests the class is large, but we do not know whether, e.g., all words with at least one alternation and no long constant power belong to it.
-
(Complexity of computing qc.) Remark 2.2 gives computability via real quantifier elimination, which is far from efficient. Is computable in time polynomial in ? Is the set in , or ?
-
(Typical words.) What is for a uniformly random of length ? The classical counting argument gives for most , but it is consistent with our results that for almost all .
-
(Extremal words.) Is (with its reversal and complementations) the unique maximizer of qc among words of length m, for all large m?
-
(Pure-target savings.) Theorem 5.2 beats the classical bound of Remark 2.5 dramatically on the family . Does a general quadratic-type saving hold, i.e. a pure-target analogue of Theorem 2.4? Our proof of Theorem 2.4 places the target at the maximally mixed state and does not adapt.
-
(Robust complexity.) Develop the -approximate theory: with eigenvalue-decay mechanisms available, which words remain expensive, and is there a robust analogue of Corollary 4.2?
Acknowledgments
The paper was produced with the assistance of Claude Fable 5.1 (Anthropic). This work was supported by a grant from the Simons Foundation (#4508914 to Bjørn Kjos-Hanssen). A Lean 4 formalization of our results is available at https://github.com/bjoernkjoshanssen/quantumcerny.
References
[1] J. Černý, Poznámka k homogénnym experimentom s konečnými automatmi, Matematicko-fyzikálny časopis SAV 14 (1964), 208–216.
[2] Swarnalakshmi Lakshmanan, Finite-state quantum automatic complexity, doctoral dissertation, University of Hawai'i at Mānoa, 2026.
[3] M. S. Paterson, Unsolvability in matrices, Studies in Applied Mathematics 49 (1970), 105–107.
[4] J.-É. Pin, On two combinatorial problems arising from automata theory, Annals of Discrete Mathematics 17 (1983), 535–548.
[5] M. V. Volkov, Synchronizing automata and the Černý conjecture, in: Language and Automata Theory and Applications (LATA 2008), Lecture Notes in Computer Science 5196, Springer, 2008, 11–27.