arXiv:2609.05813quant-phSep 2026

Manuscript Offprint

arXiv:2609.05813

Quantum Query Complexity of Persistence Statistics in Graph Zigzags

Cheng Xin

Abstract

Temporal graph data is often stored as snapshots, and many uses of zigzag persistence need only a scalar summary of bar lifetimes rather than the barcode. We study the query complexity of estimating such summaries from snapshot-adjacency bits.

For graphs G1,…,GmG_1, \ldots, G_m on nn labeled vertices, let ℓb\ell_b be the snapshot lifetime of a degree-one bar bb of the intersection zigzag. For a probability generating function ϕ(x)=E[xR]\phi(x) = \mathbb{E}[x^R], the statistic Fϕ=∑bϕ(ℓb/m)F_\phi = \sum_b \phi(\ell_b/m) includes normalized degree-rr total persistence and the mean generalized rank over a uniform time window. Our starting point is an exact identity: sample RR, then RR uniform time indices; the expected generalized rank of the window between their minimum and maximum equals FϕF_\phi. For graphs that rank is the circuit rank of an intersection graph, so a nonlinear barcode functional becomes an average of edge and component counts, and no barcode is computed.

Without spectral-gap, homology-state, or QRAM assumptions, this gives a quantum estimator with additive error εn\varepsilon n and O~(m(K+n)/ε)\tilde{O}(\sqrt{m(K+n)/\varepsilon}) queries when a bound K≥FϕK \geq F_\phi is supplied, against O~(mmin⁡{n2,(K+n)/ε2})\tilde{O}(m \min\{n^2, (K+n)/\varepsilon^2\}) classically, and an adaptive quantum variant with the same instance dependence. These estimators are optimal in two regimes. For every fixed power weight xrx^r, r≥2r \geq 2, and for the uniform-window mean, the worst-case complexities are Θ~(nm/ε)\tilde{\Theta}(n\sqrt{m}/\varepsilon) quantum and Θ(n2m)\Theta(n^2m) classical. On sparse instances, under an explicit split-leakage promise met by power and binomial weights of logarithmic degree and the promise Fϕ≤KF_\phi \leq K, they are Θ~(mK/ε)\tilde{\Theta}(\sqrt{mK}/\varepsilon) and Θ~(mmin⁡{n2,K/ε2})\tilde{\Theta}(m \min\{n^2, K/\varepsilon^2\}). The classical lower bounds hold against fully adaptive algorithms, and fewer than mm such statistics cannot determine the positive-lifetime histogram. All bounds concern snapshot access; with an explicit update stream, near-linear full-barcode algorithms are known.

1 Introduction

Zigzag persistence records how the topological features of a time-varying space appear, disappear, and reappear [13, 14]. Its output is a barcode, a multiset of intervals with one interval per feature, whose length is the feature's lifetime. In many applications the barcode is only an intermediate object: what enters the downstream analysis is a scalar summary of the lifetimes, such as total persistence [18, 9] or a linear representation whose weight depends on persistence alone [9, 15, 17, 35, 59]. This paper asks how many bits of a temporal graph a quantum or a randomized algorithm must read to estimate such a summary, and how much of the barcode it must implicitly compute.

We study graph zigzags, where the complete barcode is computable in near-linear time from an explicit update stream [19, 20], but under a more primitive representation. The temporal graph is a sequence G1,…,GmG_1, \ldots, G_m of adjacency snapshots on nn labeled vertices, and a query returns one snapshot bit: whether a given vertex pair is an edge at a given time. A quantum algorithm may query in superposition; a randomized algorithm may query adaptively. Nothing else is supplied: no update stream, no index of edge lifetimes, no component oracle, and no quantum random-access memory. This is the natural access model for snapshot data, and the one in which sublinear estimation is a meaningful question, because even deciding whether one edge is present throughout a window of hh snapshots is a search over hh bits.

The statistics. The intersection zigzag G1←G1∩G2→G2←⋯→GmG_1 \leftarrow G_1 \cap G_2 \to G_2 \leftarrow \cdots \to G_m has a degree-one barcode whose bars bb have snapshot lifetimes ℓb\ell_b. For a probability generating function ϕ(x)=E[xR]\phi(x) = \mathbb{E}[x^R] with R∈{1,…,rmax⁡}R \in \{1, \ldots, r_{\max}\} we study Fϕ(G)=∑bϕ(ℓb/m)F_\phi(\mathbf{G}) = \sum_b \phi(\ell_b/m). The family contains normalized degree-rr total persistence m−r∑bℓbrm^{-r} \sum_b \ell_b^r, obtained from R≡rR \equiv r, and the mean generalized rank over a uniformly random time window, obtained from a two-point law on {1,2}\{1,2\}. The task is to output a number within additive error εn\varepsilon n of Fϕ(G)F_\phi(\mathbf{G}), for 1/n≤ε≤1/41/n \leq \varepsilon \leq 1/4, with bounded failure probability.

The key idea. Sample RR, then RR independent uniform times, and let II be the window between the smallest and the largest of them. A bar of lifetime ℓ\ell contains II exactly when all RR samples fall inside the bar, which has probability (ℓ/m)R(\ell/m)^R; averaging over RR gives ϕ(ℓ/m)\phi(\ell/m). Summing over bars,

Fϕ(G)=EIρG(I),(1)F_{\phi}(\mathbf{G})=\mathbb{E}_{I}\rho_{\mathbf{G}}(I), \tag{1}

where ρG(I)\rho_{\mathbf{G}}(I), the generalized rank of the window, is the number of bars containing II (Theorem 3.1); the window law does not depend on the input. For graphs the rank is the circuit rank of the intersection graph GI=⋂t∈IGtG_I = \bigcap_{t \in I} G_t (Lemma 2.1), so Fϕ(G)=EI∣E(GI)∣−n+EIc(GI)F_\phi(\mathbf{G}) = \mathbb{E}_I |E(G_I)| - n + \mathbb{E}_I c(G_I), an average edge count plus an average component count. Each is a sublinear estimation problem, and testing whether an edge survives II is a search for a missing snapshot, which costs O(∣I∣)O(\sqrt{|I|}) quantum queries and ∣I∣|I| classical ones. No barcode is ever computed.

Results. Let Bn=(n−12)B_n = \binom{n-1}{2}, the largest circuit rank of an nn-vertex graph, so 0≤Fϕ≤Bn0 \leq F_\phi \leq B_n; O~\widetilde{O} and Θ~\widetilde{\Theta} hide factors polylogarithmic in nn, mm, 1/ε1/\varepsilon, and the failure probability.

Theorem 1.1 (Informal; Theorems 4.1, 4.2, and 4.3). Let K≥Fϕ(G)K \geq F_\phi(\mathbf{G}) be supplied. An additive-εn\varepsilon n estimate of Fϕ(G)F_\phi(\mathbf{G}) can be computed with O~(m(K+n)/ε)\widetilde{O}(\sqrt{m(K+n)}/\varepsilon) quantum and O~(mmin⁡{n2,(K+n)/ε2})\widetilde{O}(m\min\{n^2,(K+n)/\varepsilon^2\}) randomized snapshot queries. Without a supplied bound, a quantum algorithm attains the same expression with KK replaced by Fϕ(G)F_\phi(\mathbf{G}), in expectation and with high probability, under a deterministic cap of O~(nm/ε)\widetilde{O}(n\sqrt{m}/\varepsilon).

The quantum algorithm needs no spectral gap, no prepared homology state, and no QRAM, assumptions that are central to quantum algorithms for Betti numbers [50, 39, 40, 43]; they are absent here because the target is a count.

Theorem 1.2 (Informal; Theorem 5.1). For every fixed power weight ϕ(x)=xr\phi(x) = x^r with r≥2r \geq 2, and for the uniform-window mean, additive-εn\varepsilon n estimation has quantum query complexity Θ~(nm/ε)\widetilde{\Theta}(n\sqrt{m}/\varepsilon) and randomized query complexity Θ(n2m)\Theta(n^2m).

No randomized algorithm improves on reading a constant fraction of the input, even with error n/4n/4; for constant ε\varepsilon the quantum bound is the square root of the randomized one, a Grover-type advantage that is provably no larger. The threshold r≥2r \geq 2 is genuine: for r=1r = 1 the window is one snapshot and the m\sqrt{m} factor disappears (Section 5).

Theorem 1.1 scales with KK rather than with n2n^2. Whether sparse instances are easier for every algorithm depends on one scalar of the weight, its central split leakage

λϕ,m=max⁡m/3≤t≤2m/3[ϕ(t−1m)+ϕ(m−tm)],\lambda_{\phi,m}=\max_{m/3\leq t\leq 2m/3}\left[\phi\Big(\frac{t-1}{m}\Big)+\phi\Big(\frac{m-t}{m}\Big)\right],

the largest weight a full-lifetime bar retains after one central snapshot is deleted and the bar breaks in two: the weight surviving on a decoy that an algorithm must tell apart from a full bar.

Theorem 1.3 (Informal; Theorem 6.2). Let 256n≤K≤Bn/8256n \leq K \leq B_n/8 and 1/n≤ε≤1/81/n \leq \varepsilon \leq 1/8, and let ϕ\phi satisfy the leakage promise λϕ,mBn≤εn/64\lambda_{\phi,m}B_n \leq \varepsilon n/64. Under the promise Fϕ(G)≤KF_\phi(\mathbf{G}) \leq K, additive-εn\varepsilon n estimation has quantum query complexity Θ~(mK/ε)\widetilde{\Theta}(\sqrt{mK}/\varepsilon) and randomized query complexity Θ~(mmin⁡{n2,K/ε2})\widetilde{\Theta}(m\min\{n^2,K/\varepsilon^2\}).

The promise is a property of the weight, enters only the lower bound, and is met at logarithmic degree by the power weight xrx^r and the binomial weight x((1+x)/2)sx((1+x)/2)^s (Corollaries 7.1 and 7.2). Small leakage lets an adversary hide Θ(n2)\Theta(n^2) decoy split bars inside the promise, so an algorithm must still locate the Θ(εn)\Theta(\varepsilon n) full bars that separate two answers among Θ(K)\Theta(K) candidates, each verifiable only by a m\sqrt{m}-cost search. For fixed rr the leakage is a constant and the decoys break the promise; whether fixed-power statistics are easier on sparse instances is our main open question. Finally, fewer than mm statistics of this kind with rational weights cannot determine even the histogram of positive bar lifetimes (Theorem 8.1), so the problem is not a disguised barcode computation.

Contributions. (i) A sampling representation of nonlinear persistence statistics, identity (1), valid for every finite zigzag module. (ii) Quantum and classical estimators whose cost scales with the statistic's value, without spectral, state-preparation, or memory assumptions. (iii) Matching lower bounds on the statistic itself, in both models, in a dense and in a leakage-controlled sparse regime; the randomized bounds hold against fully adaptive querying through an analyst-only censoring device. (iv) Split leakage as the governing parameter: a choice made for statistical reasons, the suppression of short bars, has a query-complexity consequence. The summaries and the quantum primitives are established; our contribution is the representation, the algorithms, and the classification.

Scope and organization. The m\sqrt{m} factor and the lower bounds are statements about snapshot access: with an explicit update stream or a searchable edge-lifetime index the complete barcode is computable in near-linear time [19], and a stored bit tensor is not a coherent unit-cost oracle. Our results are query classifications; gate work, depth, workspace, and output are reported separately. Section 2 fixes the model, Sections 3 to 8 state the results with proof sketches, and Sections 9 and 10 give related work and open problems. Complete proofs are in Appendices A to E, grouped by section; Appendix F summarizes the finite sanity checks used during proof verification.

References (58)