Manuscript Offprint
arXiv:2609.05813Quantum Query Complexity of Persistence Statistics in Graph Zigzags
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 on labeled vertices, let be the snapshot lifetime of a degree-one bar of the intersection zigzag. For a probability generating function , the statistic includes normalized degree- total persistence and the mean generalized rank over a uniform time window. Our starting point is an exact identity: sample , then uniform time indices; the expected generalized rank of the window between their minimum and maximum equals . 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 and queries when a bound is supplied, against classically, and an adaptive quantum variant with the same instance dependence. These estimators are optimal in two regimes. For every fixed power weight , , and for the uniform-window mean, the worst-case complexities are quantum and classical. On sparse instances, under an explicit split-leakage promise met by power and binomial weights of logarithmic degree and the promise , they are and . The classical lower bounds hold against fully adaptive algorithms, and fewer than 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 of adjacency snapshots on 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 snapshots is a search over bits.
The statistics. The intersection zigzag has a degree-one barcode whose bars have snapshot lifetimes . For a probability generating function with we study . The family contains normalized degree- total persistence , obtained from , and the mean generalized rank over a uniformly random time window, obtained from a two-point law on . The task is to output a number within additive error of , for , with bounded failure probability.
The key idea. Sample , then independent uniform times, and let be the window between the smallest and the largest of them. A bar of lifetime contains exactly when all samples fall inside the bar, which has probability ; averaging over gives . Summing over bars,
where , the generalized rank of the window, is the number of bars containing (Theorem 3.1); the window law does not depend on the input. For graphs the rank is the circuit rank of the intersection graph (Lemma 2.1), so , an average edge count plus an average component count. Each is a sublinear estimation problem, and testing whether an edge survives is a search for a missing snapshot, which costs quantum queries and classical ones. No barcode is ever computed.
Results. Let , the largest circuit rank of an -vertex graph, so ; and hide factors polylogarithmic in , , , and the failure probability.
Theorem 1.1 (Informal; Theorems 4.1, 4.2, and 4.3). Let be supplied. An additive- estimate of can be computed with quantum and randomized snapshot queries. Without a supplied bound, a quantum algorithm attains the same expression with replaced by , in expectation and with high probability, under a deterministic cap of .
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 with , and for the uniform-window mean, additive- estimation has quantum query complexity and randomized query complexity .
No randomized algorithm improves on reading a constant fraction of the input, even with error ; for constant the quantum bound is the square root of the randomized one, a Grover-type advantage that is provably no larger. The threshold is genuine: for the window is one snapshot and the factor disappears (Section 5).
Theorem 1.1 scales with rather than with . Whether sparse instances are easier for every algorithm depends on one scalar of the weight, its central split leakage
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 and , and let satisfy the leakage promise . Under the promise , additive- estimation has quantum query complexity and randomized query complexity .
The promise is a property of the weight, enters only the lower bound, and is met at logarithmic degree by the power weight and the binomial weight (Corollaries 7.1 and 7.2). Small leakage lets an adversary hide decoy split bars inside the promise, so an algorithm must still locate the full bars that separate two answers among candidates, each verifiable only by a -cost search. For fixed 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 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 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.
queried coherently by a quantum algorithm and bit by bit by a classical one. No adjacency list, update list, edge-lifetime index, component oracle, or QRAM is supplied, and graph-dependent preprocessing is charged for its queries. Query complexity counts calls to (2); gate work, depth, workspace, and output are reported separately, with and the gate cost and depth of one oracle call.
Intersection zigzag and window rank. Regard every as a one-dimensional simplicial complex over an arbitrary fixed field and define . For , the window contains the snapshot nodes and all intervening intersection nodes; put and for the restricted zigzag.
Lemma 2.1 (Window-rank identity). For every field and every window ,
where isolated vertices are included in c.
Cycle spaces of graphs are subspaces of the edge-chain space of the union graph, so a compatible limit vector is one cycle supported in every snapshot of the window and the canonical map is injective on it (Appendix A).
Bar lifetimes and persistence statistics. A finite type-A zigzag representation over a field has an interval decomposition. For an interval summand of , let be the number of snapshot nodes in its support; intersection nodes do not count, and bars supported only on junction nodes have .
Definition 2.2 (PGF-weighted persistence statistic). Let be an input-independent random variable supported on , with probabilities summing to one. Its probability generating function is , . The associated graph-zigzag persistence statistic is .
In the power case , is normalized degree- total persistence [18, 9], a linear representation whose weight depends only on persistence [35, 59]. The algorithm receives reversible classical and coherent samplers for with declared gate cost , depth , and workspace . Since is an expectation of a cycle rank, .
Definition 2.3 (Estimation problem). Given and oracle access to , output one classical number such that . The main regime is .
3 Persistence Statistics from Random Windows
Theorem 3.1 (Random-extrema identity). Let be any finite type-A zigzag module over a field, with distinguished snapshot nodes and interval-summand snapshot lifetimes . Sample ; conditional on , sample independently and uniformly from . Let
with all zigzag nodes between these snapshots. Then
In particular, for ,
Proof sketch. An interval summand contributes one to the generalized rank of exactly when the window lies in its support, that is, when all sampled indices fall among the bar's contiguous snapshot nodes, an event of probability ; generalized rank is additive under direct sums, so average over and apply Lemma 2.1.
Appendix A records two consequences: a nonnegative polynomial weight with coefficient sum is times a PGF weight, so every bound below applies with in place of (Corollary A.1), and the uniform-window mean over the nonempty windows is the PGF weight , that is, with probability and otherwise (Corollary A.2).
4 Quantum and Classical Estimators
We use quantum approximate counting [8, 4] and search with an unknown number of solutions [5], which implements the intersection-edge bit of a window of length at most with snapshot queries; nested calls are amplified and uncomputed so that a hybrid argument applies (Appendix B).
Theorem 4.1 (Supplied-density quantum estimator). Let be supplied by efficient classical and coherent sampling circuits, and suppose a number is supplied. For and , there is a quantum algorithm that uses
snapshot queries and returns an additive- estimate with probability at least . This is a deterministic worst-case query budget once is supplied.
Proof sketch. With and , and , so amplitude estimation of the marked probability of a uniform potential edge paired with a sampled window reaches error with evaluations of the survival predicate. For components, ; at dyadic scale a reversible exploration halting after discoveries costs adjacency queries while the precision needed there is proportional to , so each of the scales costs (Proposition B.2); every adjacency query of is a search for a missing snapshot, charged snapshot queries.
Theorem 4.2 (Adaptive quantum estimator). No upper bound on need be supplied. There is a quantum algorithm with success probability at least , deterministic cap
expected snapshot-query complexity
and the same instance-sensitive bound outside an event of probability .
Proof sketch. Append known marked dummies, so the marked mass satisfies ; amplitude-estimation iterations then give a constant-factor estimate of with failure , which fixes the budget of the final estimator, capped by the dense budget.
Theorem 4.3 (Supplied-density randomized estimator). Under the assumptions of Theorem 4.1, there is a randomized classical algorithm using
snapshot queries and returning an additive- estimate with probability at least .
Proof sketch. Bernstein sampling with variance bound needs samples of at most bits each; the component term uses the dyadic decomposition with a breadth-first search stopped after discoveries and Hoeffding sampling (Proposition B.1); or read all bits. A dummy-density bootstrap gives the same bound with in place of in expectation (Proposition B.3).
5 Matching Bounds in the Dense Regime
For put , and let be the uniform-window mean.
Theorem 5.1 (Dense lifetime-moment classification). Let , , and . For every fixed integer , estimating either or to additive error has bounded-error query complexities
in the coherent and randomized raw-snapshot models, respectively.
Proof sketch. Upper bounds: Theorems 4.1 and 4.3 with . Both lower bounds use one gadget: a spanning star in every snapshot and one optional chord per leaf pair, giving independent temporal rows; an all-one row is a bar of lifetime , and a row with one zero at a central time , , is two bars retaining at most 5/9 of a full bar's weight for every , , and for . Quantum: erasing zeros from inputs with all-one rows changes the output by more than , and the adversary lemma for real-valued outputs with pairwise-disjoint acceptance intervals (Proposition C.1) gives from the relation degrees. Randomized: rows independently all-one with probability separate the means by against variance , while a fresh central query in a row contributes only to the transcript divergence, so Pinsker's inequality forces queries (Appendix C).
For the window is a single snapshot, the estimators run with window length one at cost with no factor, and a central split removes only of a bar's weight, so the construction yields no lower bound: the threshold is genuine.
6 Matching Bounds under a Low-Density Leakage Promise
Definition 6.1 (Central split leakage). For a probability-generating weight function and , define . It is the largest weighted mass retained when a full bar is split by one missing central snapshot.
The leakage promise below enters only the lower bounds; the upper bound of Theorem 4.1 holds for every weight. The constants are conservative.
Theorem 6.2 (Leakage-controlled low-density classification). Assume
and let be an integer satisfying
Let be a coherently and classically sampleable probability-generating weight function satisfying
On the promise , additive- estimation has query complexities, up to polylogarithmic factors,
and
The upper bounds are worst-case bounds because is supplied. The adaptive no-K result remains the separate statement of Theorem 4.2; it is not part of this minimax equality.
Proof sketch. Upper bounds: Theorems 4.1 and 4.3 with . Quantum lower bound: the gadget of Theorem 5.1 with all-one rows and every other row split; by (3) the split population contributes at most , so all related inputs satisfy , and the same relation with gives . Randomized lower bound: rows independently all-one with probabilities and , ; Chebyshev's inequality places both distributions, up to probability , on promise inputs whose statistics lie more than from a common threshold. Because is small, late queries in a row are ill-conditioned; Proposition D.1 censors each row after one-answers by handing the analysis transcript, but not the algorithm, the row's type, and bounds the divergence of any adaptive Q-query transcript by , , so Pinsker's inequality yields (Appendix D).
7 Weight Functions and Resources
Corollary 7.1 (Logarithmic power weights). For , . Consequently the leakage promise (3) holds whenever . The simpler sufficient choice follows from .
Let , with probability generating function ; it smoothly emphasizes bars close to full lifetime and uses at most time samples.
Corollary 7.2 (Binomial soft-long-bar weight). For , . Thus (3) holds whenever
Both follow because a central split leaves two pieces of normalized length at most 2/3. Window preparation for either weight uses gates and qubits with no graph data. The supplied- quantum algorithm has gate work for the oracle calls plus for window preparation and list membership, polylogarithmic live workspace beyond the qubits of the explicit discovered list, depth at most its gate work, and an -bit output (Appendix E).
8 Limits of Recovering the Positive-Lifetime Histogram
All statistics considered here discard the positions of bars and retain only their lifetimes. Write for the histogram of bars with a positive snapshot lifetime. Bars with zero snapshot lifetime are invisible to every PGF weight used here. Even this positive-lifetime histogram requires many independent weighted statistics.
Theorem 8.1 (Fewer than rational PGF weights do not determine the positive-lifetime histogram). Fix and rational-coefficient probability-generating weight functions with . There exist two graph snapshot sequences, possibly on a larger common vertex set, whose zigzag barcodes have different positive-lifetime histograms but satisfy
The sequences may be chosen with a common spanning star in every snapshot.
Proof sketch. The matrix has a nonzero integer kernel vector with entries of both signs, since all entries of are positive; gives two distinct positive-lifetime histograms with , each realized by a spanning star with one chord per requested bar present on a contiguous block of the requested length (Appendix E).
9 Related Work
Persistence, zigzags, and scalar summaries. Persistent homology was founded in [38, 60] (modern treatment: [29]); zigzag persistence and its connection to time-varying data in [13, 14], with efficient matrix algorithms in [52]. Landscapes, silhouettes, persistence curves, and linear representations give broad families of barcode summaries [9, 15, 17, 35, 59], and total persistence is a standard lifetime aggregate [18, 9]; our statistics are scalar linear representations whose weights depend only on persistence, not new invariants.
Algorithms for zigzag and multiparameter persistence. The graph zigzag barcode is computable in near-linear time from an explicit update sequence [19], with faster general algorithms in [20]; related work treats barcode updates, absolute and relative zigzags, optimal persistent cycles, graph-persistence updates, and representatives [21, 22, 23, 24, 25, 26]. These are the comparators when an update stream is supplied; our snapshot-bit lower bounds do not apply there. Multiparameter modules admit bottleneck-distance computation, rectangular approximation, and decomposition [30, 31, 32, 33]; generalized-rank information serves vectorization and learning [57, 58, 55]; a recent preprint proposes an unfolding from generalized ranks to zigzag persistence [34], on which no theorem here depends; and the two-parameter generalized-rank invariant is computed via zigzags, with its diagrams, sparsification, and size studied in [28, 48, 11, 49]. Output-sensitive persistence [16], clearing and chunk compression [6], streaming towers [46], nested dissection [47], multiparameter decomposition [27], and matrix-multiplication-time persistence [54] give a stronger classical context than generic reduction; our comparator is the strongest algorithm under the same raw oracle and output contract.
Quantum algorithms for topological data analysis and query primitives. Quantum TDA began with Betti-number estimation [50], whose hidden costs were identified in [39]; later work studies persistent Betti numbers, quantum persistent homology, and routes to provable advantage [43, 2, 40], dequantization and complexity-theoretic analyses delimit when such advantages are possible [3, 56, 7], and recent algorithms reduce qubits or obtain speedups under explicit topological and spectral promises [51, 41, 44]. Our target and access contract differ: one additive scalar from a temporal graph, with no spectral-gap, homology-state, or QRAM assumption. Static circuit rank can be estimated in the adjacency-matrix model [36]; our upper bounds use established search and counting machinery [5, 8, 4, 42], related quantum graph algorithms study connectivity under adjacency access [37, 45], and the lower-bound ingredients are established [1, 10]. Quantum frequency moments concern powers of item frequencies in a different input model with a relative-error objective [53]. To our knowledge, neither the random-extrema representation nor a query classification of a persistence statistic under snapshot access appears in prior work; the nearest results are [36], the update-stream algorithms [19, 20], and the persistence-curve frameworks [17, 35], which contain the invariant family but do not address query complexity.
10 Discussion and Open Problems
The algorithms output one additive scalar, not a barcode, representatives, a bottleneck approximation, or a guarantee retaining each rare long bar; an allowance can hide one full-length bar, and conversely Theorem 8.1 shows that a few scalars cannot reconstruct the barcode. The static identity and the quantum subroutines are established; what is specific here is the random-extrema identity, the split-bar reduction that changes the averaged output directly, the leakage theorem tying instance-sensitive optimality to the weight's response to broken bars, and the randomized bound against fully adaptive probing. Two questions would substantially extend these results.
-
For with fixed and , is the complexity , or do constant-leakage weights admit faster algorithms on sparse instances?
-
Lemma 2.1 uses the absence of two-dimensional faces; is there a sampling representation of degree- statistics of simplicial zigzags with a sublinear estimator?
A Proofs for Sections 2 and 3
Proof of Lemma 2.1. All graph cycle spaces are literal subspaces of the edge-chain space of the union graph, because there are no degree-two boundaries. A compatible vector in the limit is therefore one cycle supported in every snapshot of the window, equivalently a cycle of . Conversely, every such cycle is a compatible family. Its image in the colimit is nonzero whenever the cycle is nonzero: the maps into the common ambient edge-chain space agree on the zigzag and factor the canonical map. Hence the canonical map is injective on the common cycle space. The last equality is Euler's formula for a graph.
Proof of Theorem 3.1. Fix an interval summand and condition on . Its contribution to the generalized rank of is one exactly when the entire sampled window lies in its support. Since an interval support is contiguous, this is equivalent to all sampled snapshot indices lying among the snapshot nodes of the bar. The probability is . If , the probability is zero because . Generalized rank is additive under direct sums, so
Averaging over proves the first identity. The graph statement follows from Lemma 2.1.
Corollary A.1 (Nonnegative polynomials and normalization). Let with and . Put . Then
Thus additive error for the unnormalized statistic requires additive error for : every bound below applies with replaced by , so terms scale by , terms scale by , and the precision regime becomes . A constant term is excluded: it would count all bars, including bars that contain no sampled snapshot, and is not represented by a nonempty random window.
Corollary A.2 (Uniform windows give a PGF-weighted statistic). Let be uniform over the nonempty snapshot windows. Then
where
Equivalently, with probability and with probability .
Proof of Corollary A.2. A bar supported on consecutive snapshot nodes contains exactly nonempty snapshot windows. The polynomial identity follows from .
B Proofs for Section 4
B.1 Dyadic reciprocal-size decomposition and proofs of the estimators
For a graph and vertex , let . Then
This reciprocal-component identity and its use with bounded local exploration are established in sublinear minimum-spanning-tree estimation [12]; we adapt the implementation to adjacency-bit access and coherent mean estimation. Put
Then
A reversible exploration that halts once vertices are discovered costs adjacency queries. Estimating to error by amplitude estimation [8] makes the factors cancel. Summing the levels gives
adjacency queries for additive component error. The sampler is a fixed reversible circuit whose output expectation differs from the ideal one by at most the budgeted failure probability of its internal searches, and the analysis estimates the mean of this actual circuit.
Proof of Theorem 4.1. Sample the random-extrema window I coherently. Write
By Lemma 2.1 and Theorem 3.1,
Amplitude-estimate the marked probability of a uniform potential edge paired with the sampled window. The variance-sensitive counting bound gives ideal intersection-edge queries for additive error . Apply the dyadic component estimator to the joint distribution of a window and a uniform vertex. Equation (5) gives ideal intersection-edge queries and component error below . Every intersection-edge query is an AND over at most snapshot bits and is implemented in snapshot queries. The edge term absorbs the component term because . Allocate failure and clean-oracle approximation budgets across all calls and combine .
Proof of Theorem 4.2. Let and append n known marked dummy labels to the potential-edge domain. On a sampled window, mark a real edge when it survives the window. The resulting average marked mass is
It need not be an integer; amplitude estimation acts on its success probability . Since , amplitude-estimation iterations give a constant-factor estimate. Median amplification reduces the total bootstrap failure, including implementation error, to . From the estimate construct a clipped bound such that on the good event and always . Run the final edge estimator with its budget chosen from , add the dyadic component estimator, and cap by the dense budget. On the good event the cost has the stated dependence on ; on every branch it has the dense cap. Multiplying the cap by makes the bad-event contribution negligible in expectation. The bootstrap's total circuit error must be ; constant simulation error would invalidate the instance-sensitive expected bound.
Proposition B.1 (Classical dyadic component estimation). Let be an input-independent window distribution supported on windows of length at most . The mean component count can be estimated to additive error , with failure at most , using
raw snapshot queries.
Proof of Proposition B.1. Use (4) jointly over a sampled window and a uniform vertex. For level , perform an ordinary breadth-first search but stop after discovering vertices. In the adjacency-matrix model this scans at most rows, hence uses intersection-edge queries; evaluating each such bit uses at most snapshot queries. The returned variable lies in . Hoeffding estimation to error uses samples. The level cost is therefore
Since , the total has the claimed order. The sum of the estimation errors after division by , plus the tail in (4), is below after adjusting constants.
Proof of Theorem 4.3. Sample a window and a uniform potential edge. The corresponding Bernoulli mean is , and . Bernstein's inequality gives samples for additive edge-count error ; the usual additive Bernstein term is absorbed because and . Each sample costs at most snapshot queries. Proposition B.1 handles components. Alternatively, read all bits. Take the cheaper branch.
B.2 Full proof of quantum component estimation
Proposition B.2 (Coherent dyadic component estimator). Given coherent adjacency-bit access to an -vertex graph , one can estimate to additive error with failure at most using adjacency queries, for .
Proof. Use the decomposition (4). For level , explore the component of a uniform vertex, halting as soon as vertices have been discovered: a -th discovery certifies , whereas an exhausted queue below the cap determines exactly. Process discovered vertices in queue order. To process , repeatedly use bounded-error quantum search over for an edge whose second endpoint is not in the explicit discovered list. Verify returned candidates. There are at most successful discoveries and terminating failed searches, so a padded fixed circuit uses adjacency queries.
If the exploration finishes with size , output a reversible coin with mean ; otherwise output zero. The ideal mean is . Choose
Set the complete bounded-exploration and arithmetic expectation bias to at most , and amplitude-estimate the actual circuit's output mean to additive error , with failure at most . This takes calls to the sampler and its inverse. The query cost at level is therefore
There are levels, absorbed by the tilde. On the joint success event,
and the tail is at most . Adjusting the fixed constants leaves error below . The circuit estimates its actual reversible sampler, and failed internal searches enter only as expectation bias.
For a superposition of windows of length at most , replace each ideal graph edge query by a coherently amplified search for a missing snapshot. Compile its clean compute/copy/uncompute implementation to operator error , where is the deterministic ideal-query cap. A hybrid argument then multiplies the query bound by and changes the total failure by only the allocated amount.
B.3 Classical density bootstrap without a supplied bound
Proposition B.3 (Adaptive classical average-density estimator). For a classically sampleable input-independent window law of maximum length , let . There is a randomized estimator with success at least , deterministic cap , expected query cost
and the same instance-sensitive bound outside an event of probability .
Proof. As in Theorem 4.2, augment the potential-edge labels by known marked dummies. A uniform window/index sample has marked probability , where and . Since , standard Bernoulli sampling gives a constant-factor estimate of using samples. Reduce the bootstrap failure to and form the same clipped constant-factor upper bound .
On the good event, Bernstein edge estimation uses samples, and Proposition B.1 uses additional ideal intersection queries. Every sample costs at most snapshot queries. Cap the procedure by reading all relevant bits. The bad-event contribution to expectation is , absorbed by the good-event bound because and . The same good bootstrap event yields the stated high-probability cost.
C Proofs for Section 5
C.1 Metric-output adversary lemma
Proposition C.1 (Biregular adversary for real-valued approximation). Let be finite sets of bit strings and let be biregular, with degrees . For each query position , suppose every has at most related differing at , and every has at most related differing at . Let denote the set of classical outputs accepted as correct on input . If for every , then every quantum algorithm that outputs an element of with probability at least 2/3 on every input uses
queries. The unions and may overlap.
Proof. Let be the rectangular adjacency matrix of , and let be the uniform unit vectors on . Biregularity gives : the displayed singular value follows from the uniform vectors, while the row-sum/column-sum norm bound gives the reverse inequality. Purify the algorithm and define after queries
Initially . Input-independent unitaries do not alter it.
Fix a related pair. Let be the final measurement event that the output lies in . Its probability is at least 2/3 on and at most 1/3 on , because and the algorithm is correct on . Splitting the inner product across and its complement gives
Therefore .
Let retain the related pairs that differ at query position . If is the norm of the query-index- component immediately before a query, a bit query changes the inner product of a pair by at most . Put and . Then
Both sums of squared norms equal one. The row/column degree bounds give . A constant fraction of must therefore be removed at rate at most per query, proving the claim.
C.2 Proof of Theorem 5.1
Proof of Theorem 5.1. The upper bounds follow from Theorems 4.1 and 4.3 with ; the classical bound may also read the complete input.
For the lower bounds, keep a spanning star at every time and associate one optional leaf-to-leaf edge with each of temporal rows. A row is either all one or has one zero at a time
The star plus one optional edge is a fundamental cycle independent of all other optional edges. Hence an all-one row gives one bar of lifetime , whereas a zero at time gives two bars of lifetimes and . For its contribution is at most ; for the lost mass is at least . We use the common loss lower bound .
For the quantum bound, let , , and . Relate inputs with a all-one rows to inputs with b all-one rows by erasing the zeros in d rows. Every related output pair differs by more than . The relation degrees are
and a fixed query position changes at most
related neighbors. The positive adversary progress bound for pairwise disjoint acceptable output intervals gives
The event defining the acceptable output interval may depend on the related pair; a global Boolean threshold separating all X and Y values is not needed.
For the classical bound, independently make each row all one with probability , and otherwise place its unique zero uniformly in . Let be the split-row contribution and . The two statistic means lie on opposite sides of at distance at least 4n, while the total variance is at most . A pointwise-correct estimator, after constant median amplification, therefore distinguishes the two distributions with constant advantage.
After distinct one-answers in one unresolved row, the probability that a fresh central query returns zero is
For , one has , , and . The conditional Bernoulli KL divergence of one informative query is therefore . Queries after discovering the zero, repeated queries, and fixed bits contribute zero. The transcript chain rule and Pinsker's inequality imply queries.
D Proofs for Section 6
Quantum upper bound of Theorem 6.2. Theorem 4.1 gives queries. Since , this is .
Quantum lower bound of Theorem 6.2. Put . Use the star construction from the proof of Theorem 5.1. Every optional temporal row is either all one or has one zero at a central time. Set
The parameter assumptions imply , , and . Let contain inputs with exactly all-one rows and inputs with exactly all-one rows. Relate to when is obtained by erasing the unique zero in exactly split rows.
All related inputs satisfy the promise. Indeed, an input in Y has statistic at most
Moreover, (3) and imply . Hence every related pair satisfies
Their additive-error output intervals are disjoint.
The relation parameters are
The metric-output adversary argument used in Theorem 5.1 therefore gives
because , , , and .
Proposition D.1 (Adaptive censored-row information bound). Fix . A temporal row is all one with probability and otherwise contains one zero at a uniformly random position in . Rows are independent. Let , put , and assume . For every possibly randomized adaptive algorithm making at most bit queries, if and are its complete transcripts under the two product distributions, then
Proof of Proposition D.1. Include the algorithm's random coins in the transcript. Conditional on them, the query policy is deterministic, so it suffices to prove the claim for a deterministic policy and then average.
Augment the recorded transcript, without revealing any extra information to the algorithm, as follows. When the original query process has accumulated distinct one-answers in a row, append the latent row type and, for a nonfull row, its zero location to the analysis transcript. The algorithm continues to follow its original policy and does not see this extra record. The original transcript is the projection of the augmented one, so data processing permits us to upper-bound its KL divergence by that of the augmented transcript.
Before a reveal, suppose distinct queried positions in a row have all returned one. A fresh query is zero with conditional probability
Since and ,
Using , each ordinary informative answer contributes at most , which is at most .
Now consider a reveal. Put . Conditional on h one-answers, the posterior probability of an all-one row is
The zero location conditional on a nonfull row is uniform among the unqueried positions under both hypotheses, so the reveal KL is exactly the KL between and . Since , , and , this is at most . Every reveal consumes at least previous queries, so at most 4Q/L reveals occur. Their total KL is at most .
After a zero or a reveal, the row is resolved and subsequent queries add no information. The transcript chain rule adds the ordinary-query and reveal contributions, giving the stated constant 128.
Randomized classical lower bound for Theorem 6.2. Let , , and let be the split-row contribution. Define product input distributions and : independently for each of the optional rows, make it all one with probability
and otherwise put one zero at a uniform central time. The numerical assumptions imply
Let be the contribution of row , let , and put . The means are
so
Moreover,
The last inequality uses and .
Let
Chebyshev gives . Every input in either good event satisfies the promise: using ,
Let . On the two good events, the distance from to is at least
Thus thresholding any additive- estimate distinguishes the two conditioned, promise-supported distributions with error at most . Their output-transcript total variation is at least .
Let be the unconditioned transcripts. Conditioning changes each input distribution, and hence each transcript distribution, by total variation at most . Therefore
Pinsker gives . Proposition D.1, with , now implies
For positive ; hence
This gives a direct randomized information lower bound. Equivalently, the equal mixture of the two conditioned distributions is a valid Yao hard distribution: pointwise correctness is used only on their promise-supported good events, while the information bound is applied to the original independent product distributions.
Randomized classical upper bound for Theorem 6.2. Theorem 4.3 and give
Together with the lower bound, this completes the proof.
E Proofs for Sections 7 and 8
Corollary E.1 (Logarithmic power weights). For ,
Consequently the leakage promise (3) holds whenever
The simpler sufficient choice follows from .
Proof of Corollary 7.1. For a central split, both normalized piece lengths are at most 2/3. Monotonicity of gives the leakage bound; rearrange it to obtain the stated degree.
Corollary E.2 (Binomial soft-long-bar weight). For ,
Thus (3) holds whenever
and it is sufficient to take .
Proof of Corollary 7.2. For , . Sum the two split pieces and rearrange.
E.1 Resource accounting
For a fixed power , prepare independent uniform time registers and compute their minimum and maximum by a reversible comparator tree. For the binomial weight, prepare Hadamard control bits, one mandatory time register, and conditionally active uniform time registers. The active count is exactly. With not a power of two, an input-independent reversible rejection or amplitude-amplification circuit prepares a uniform label in to any desired accuracy using polylogarithmic gates; no graph data or QRAM is involved.
A window-law total-variation error changes the target expectation by at most . It therefore suffices to compile the sampling distribution to . Inside amplitude estimation, each coherent subroutine is compiled to operator error inverse-polynomial in the deterministic total-use cap so that a hybrid bound fits the allocated failure budget.
For both explicit weights, one window preparation uses
gates and qubits; a parallel comparator tree has depth at the cost of those registers. For the supplied- quantum algorithm, a conservative gate-work bound is
The last term is the explicit-list membership overhead in the dyadic component sampler. A straightforward implementation uses live data space
qubits, in addition to oracle workspace. The sequential depth is at most the gate-work bound; no parallel-depth separation is claimed. Since , the classical scalar output needs bits.
Proof of Theorem 8.1. Let have . Since , choose a nonzero rational vector and scale it to a nonzero integer vector. Every entry of every column of is positive because the weights have no constant term and . Hence has both positive and negative entries. Write with distinct nonnegative integer vectors . Then , so these two positive-lifetime histograms give identical weighted-statistic vectors.
Realize either histogram by keeping a spanning star at every time and assigning one distinct optional leaf-to-leaf edge to each requested bar. To realize a bar of lifetime , make its optional edge present on one contiguous block of snapshots and absent elsewhere. Fundamental cycles for distinct optional edges are independent, and the intersection junctions make each such cycle an interval summand on exactly that block. Choose enough vertices to provide all required optional edges. The two resulting positive-lifetime histograms are different but have equal weighted statistics.
Exact power moments do determine the positive-lifetime histogram by Vandermonde inversion. This does not yield a useful free recovery theorem: it requires scalar outputs, exact or sufficiently high-precision values, and still cannot recover bar positions from lifetimes alone.
F Finite Sanity Checks
As a guard against indexing, normalization, and promise-support mistakes, we carried out the following exact-rational or conservative numerical checks:
-
For , direct enumeration of all -tuples of time samples agrees with , and the uniform-window weight agrees exactly with .
-
For , all central split weights for and the uniform-window weight are at most 5/9; the integer-rounding endpoints in the logarithmic-degree bounds for power and binomial weights were checked separately.
-
At boundary values , , and , the inequalities , , , promise support, mean separation, and the Chebyshev budget in Theorem 6.2 all hold.
-
A dense grid of values satisfies the numerical KL upper bounds before reveal and at reveal in Proposition D.1.
-
The dyadic reciprocal-size expansion has nonnegative tail at most for all and the precision values used in the component estimator.
These checks are not substitutes for the proofs; they only provide finite sanity tests for the parameter ranges stated above.
References
[1] A. Ambainis. Quantum lower bounds by quantum arguments. STOC, 2000. https://arxiv.org/abs/quant-ph/0002066.
[2] J. Ameneyro, V. Maroulas, and G. Siopsis. Quantum persistent homology. Journal of Applied and Computational Topology 8:1961–1980, 2024. https://doi.org/10.1007/s41468-023-00160-7.
[3] S. Apers, S. Gribling, S. Sen, and D. Szabó. A (simple) classical algorithm for estimating Betti numbers. Quantum 7:1202, 2023. https://quantum-journal.org/papers/q-2023-12-07-1202/.
[4] S. Aaronson and P. Rall. Quantum approximate counting, simplified. SOSA, pages 24–32, 2020. https://doi.org/10.1137/1.9781611976014.5.
[5] M. Boyer, G. Brassard, P. Høyer, and A. Tapp. Tight bounds on quantum searching. Fortschritte der Physik 46(4-5):493–505, 1998. https://arxiv.org/abs/quant-ph/9605034.
[6] U. Bauer, M. Kerber, and J. Reininghaus. Clear and compress: Computing persistent homology in chunks. In Topological Methods in Data Analysis and Visualization III, pages 103–117, 2014. https://arxiv.org/abs/1303.0477.
[7] D. W. Berry, Y. Su, C. Gyurik, R. King, J. Basso, A. Del Toro Barba, A. Rajput, N. Wiebe, V. Dunjko, and R. Babbush. Analyzing prospects for quantum advantage in topological data analysis. PRX Quantum 5:010319, 2024. https://doi.org/10.1103/PRXQuantum.5.010319.
[8] G. Brassard, P. Høyer, M. Mosca, and A. Tapp. Quantum amplitude amplification and estimation. Contemporary Mathematics 305:53–74, 2002. https://arxiv.org/abs/quant-ph/0005055.
[9] P. Bubenik. Statistical topological data analysis using persistence landscapes. JMLR 16:77–102, 2015. https://jmlr.org/papers/v16/bubenik15a.html.
[10] M. Bun, R. Kothari, and J. Thaler. Quantum algorithms and approximating polynomials for composed functions with shared inputs. Quantum 5:543, 2021. https://quantum-journal.org/papers/q-2021-09-16-543/.
[11] M. Carrière, S. Kim, and W. Kim. Sparsification of the generalized persistence diagrams for scalability through gradient descent. LIPIcs SoCG 332, Article 29:1–29:17, 2025. https://doi.org/10.4230/LIPIcs.SoCG.2025.29.
[12] B. Chazelle, R. Rubinfeld, and L. Trevisan. Approximating the minimum spanning tree weight in sublinear time. SIAM Journal on Computing 34(6):1370–1379, 2005. https://doi.org/10.1137/S0097539702403244.
[13] G. Carlsson and V. de Silva. Zigzag persistence. Foundations of Computational Mathematics 10:367–405, 2010. https://doi.org/10.1007/s10208-010-9066-0.
[14] G. Carlsson, V. de Silva, and D. Morozov. Zigzag persistent homology and real-valued functions. SoCG, pages 247–256, 2009. https://doi.org/10.1145/1542362.1542408.
[15] F. Chazal, B. Fasy, F. Lecci, A. Rinaldo, and L. Wasserman. Stochastic convergence of persistence landscapes and silhouettes. Journal of Computational Geometry 6(2):140–161, 2015. https://jocg.org/index.php/jocg/article/view/2982.
[16] C. Chen and M. Kerber. An output-sensitive algorithm for persistent homology. Computational Geometry 46(4):435–447, 2013. https://doi.org/10.1016/j.comgeo.2012.02.010.
[17] Y.-M. Chung and A. Lawson. Persistence curves: A canonical framework for summarizing persistence diagrams. Advances in Computational Mathematics 48:6, 2022. https://arxiv.org/html/1904.07768v4.
[18] D. Cohen-Steiner, H. Edelsbrunner, J. Harer, and Y. Mileyko. Lipschitz functions have -stable persistence. Foundations of Computational Mathematics 10(2):127–139, 2010. https://doi.org/10.1007/s10208-010-9060-6.
[19] T. K. Dey and T. Hou. Computing zigzag persistence on graphs in near-linear time. LIPIcs SoCG 189, Article 30:1–30:15, 2021. https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.SoCG.2021.30.
[20] T. K. Dey and T. Hou. Fast computation of zigzag persistence. LIPIcs ESA 244, Article 43:1–43:15, 2022. https://doi.org/10.4230/LIPIcs.ESA.2022.43.
[21] T. K. Dey and T. Hou. Updating barcodes and representatives for zigzag persistence. arXiv:2112.02352, 2021. https://arxiv.org/abs/2112.02352.
[22] T. K. Dey and T. Hou. On association between absolute and relative zigzag persistence. arXiv:2110.06315, 2021. https://arxiv.org/abs/2110.06315.
[23] T. K. Dey and T. Hou. Computing optimal persistent cycles for levelset zigzag on manifold-like complexes. arXiv:2105.00518, 2021. https://arxiv.org/abs/2105.00518.
[24] T. K. Dey, T. Hou, and S. Parsa. Revisiting graph persistence for updates and efficiency. WADS, pages 371–385, 2023. https://doi.org/10.1007/978-3-031-38906-1_24.
[25] T. K. Dey, T. Hou, and D. Morozov. Apex representatives. LIPIcs SoCG 332, Article 40:1–40:16, 2025. https://doi.org/10.4230/LIPIcs.SoCG.2025.40.
[26] T. K. Dey, T. Hou, and D. Morozov. A fast algorithm for computing zigzag representatives. Algorithmica 88, Article 36, 2026. https://doi.org/10.1007/s00453-026-01386-4.
[27] T. K. Dey, J. Jendrysiak, and M. Kerber. Decomposing multiparameter persistence modules. LIPIcs SoCG 332, Article 41:1–41:19, 2025. https://doi.org/10.4230/LIPIcs.SoCG.2025.41.
[28] T. K. Dey, W. Kim, and F. Mémoli. Computing generalized rank invariant for 2-parameter persistence modules via zigzag persistence and its applications. Discrete & Computational Geometry 71(1):67–94, 2024. https://doi.org/10.1007/s00454-023-00584-z.
[29] T. K. Dey and Y. Wang. Computational Topology for Data Analysis. Cambridge University Press, 2022. https://doi.org/10.1017/9781009099950.
[30] T. K. Dey and C. Xin. Computing bottleneck distance for 2-D interval decomposable modules. LIPIcs SoCG 99, Article 32:1–32:15, 2018. https://doi.org/10.4230/LIPIcs.SoCG.2018.32.
[31] T. K. Dey and C. Xin. Computing bottleneck distance for multi-parameter interval decomposable persistence modules. arXiv:1803.02869, 2019. https://arxiv.org/abs/1803.02869.
[32] T. K. Dey and C. Xin. Rectangular approximation and stability of 2-parameter persistence modules. arXiv:2108.07429, 2021. https://arxiv.org/abs/2108.07429.
[33] T. K. Dey and C. Xin. Generalized persistence algorithm for decomposing multiparameter persistence modules. Journal of Applied and Computational Topology 6(3):271–322, 2022. https://doi.org/10.1007/s41468-022-00087-5.
[34] T. K. Dey and C. Xin. Computing generalized ranks of persistence modules via unfolding to zigzag modules. arXiv:2403.08110, 2025. https://arxiv.org/abs/2403.08110.
[35] V. Divol and W. Polonik. On the choice of weight functions for linear representations of persistence diagrams. Journal of Applied and Computational Topology 3(3):249–283, 2019. https://doi.org/10.1007/s41468-019-00032-z.
[36] K. DeLorenzo, S. Kimmel, and R. T. Witter. Applications of the quantum algorithm for st-connectivity. LIPIcs TQC 135, Article 6:1–6:14, 2019. https://drops.dagstuhl.de/en/tities/document/10.4230/LIPIcs.TQC.2019.6.
[37] C. Dürr, M. Heiligman, P. Hoyer, and M. Mhalla. Quantum query complexity of some graph problems. SIAM Journal on Computing 35(6):1310–1328, 2006. https://doi.org/10.1137/050644719.
[38] H. Edelsbrunner, D. Letscher, and A. Zomorodian. Topological persistence and simplification. Discrete & Computational Geometry 28:511–533, 2002. https://doi.org/10.1007/s00454-002-2885-2.
[39] S. Gunn and N. Kornerup. Review of a quantum algorithm for Betti numbers. arXiv:1906.07673, 2019. https://arxiv.org/abs/1906.07673.
[40] C. Gyurik, C. Cade, and V. Dunjko. Towards quantum advantage via topological data analysis. Quantum 6:855, 2022. https://doi.org/10.22331/q-2022-11-10-855.
[41] C. Gyurik, A. Schmidhuber, R. King, V. Dunjko, and R. Hayakawa. Provable quantum speedups for computing persistence in topological data analysis. PRX Quantum 7:020361, 2026. https://doi.org/10.1103/gvys-h18h.
[42] Y. Hamoudi and F. Magniez. Quantum Chebyshev's inequality and applications. LIPIcs ICALP 132, Article 69:1–69:16, 2019. https://doi.org/10.4230/LIPIcs.ICALP.2019.69.
[43] R. Hayakawa. Quantum algorithm for persistent Betti numbers and topological data analysis. Quantum 6:873, 2022. https://doi.org/10.22331/q-2022-12-07-873.
[44] R. Hayakawa, K.-C. Chen, and M.-H. Hsieh. Quantum walks on simplicial complexes and harmonic homology: Application to topological data analysis with superpolynomial speedups. Quantum 10:2138, 2026. https://doi.org/10.22331/q-2026-06-15-2138.
[45] M. Jarret, S. Jeffery, S. Kimmel, and A. Piedrafita. Quantum algorithms for connectivity and related problems. LIPIcs ESA 112, Article 49:1–49:13, 2018. https://doi.org/10.4230/LIPIcs.ESA.2018.49.
[46] M. Kerber and H. Schreiber. Barcodes of towers and a streaming algorithm for persistent homology. Discrete & Computational Geometry 61:852–879, 2019. https://doi.org/10.1007/s00454-018-0030-0.
[47] M. Kerber, D. Sheehy, and P. Skraba. Persistent homology and nested dissection. SODA, pages 1234–1245, 2016. https://doi.org/10.1137/1.9781611974331.ch86.
[48] W. Kim and F. Mémoli. Generalized persistence diagrams for persistence modules over posets. Journal of Applied and Computational Topology 5(4):533–581, 2021. https://doi.org/10.1007/s41468-021-00075-1.
[49] D. Kim, W. Kim, and W. Lee. Super-polynomial growth of the generalized persistence diagram. LIPIcs SoCG 332, Article 64:1–64:20, 2025. https://doi.org/10.4230/LIPIcs.SoCG.2025.64.
[50] S. Lloyd, S. Garnerone, and P. Zanardi. Quantum algorithms for topological and geometric analysis of data. Nature Communications 7:10138, 2016. https://doi.org/10.1038/ncomms10138.
[51] S. McArdle, A. Gilyén, and M. Berta. A streamlined quantum algorithm for topological data analysis with exponentially fewer qubits. Quantum 10:2058, 2026. https://doi.org/10.22331/q-2026-04-10-2058.
[52] N. Milosavljević, D. Morozov, and P. Skraba. Zigzag persistent homology in matrix multiplication time. SoCG, pages 216–225, 2011. https://doi.org/10.1145/1998196.1998229.
[53] A. Montanaro. The quantum complexity of approximating the frequency moments. Quantum Information and Computation 16:1169–1190, 2016. https://arxiv.org/abs/1505.00113.
[54] D. Morozov and P. Skraba. Persistent (co)homology in matrix multiplication time. LIPIcs SoCG 332, Article 68:1–68:16, 2025. https://doi.org/10.4230/LIPIcs.SoCG.2025.68.
[55] S. Mukherjee, S. N. Samaga, C. Xin, S. Oudot, and T. K. Dey. D-GRIL: End-to-end topological learning with 2-parameter persistence. LIPIcs SoCG 367, Article 79:1–79:17, 2026. https://doi.org/10.4230/LIPIcs.SoCG.2026.79.
[56] A. Schmidhuber and S. Lloyd. Complexity-theoretic limitations on quantum algorithms for topological data analysis. PRX Quantum 4:040349, 2023. https://doi.org/10.1103/PRXQuantum.4.040349.
[57] C. Xin, S. Mukherjee, S. N. Samaga, and T. K. Dey. GRIL: A 2-parameter persistence based vectorization for machine learning. Proceedings of Machine Learning Research 221:313–333, 2023. https://proceedings.mlr.press/v221/xin23a.html.
[58] C. Xin, F. Xu, X. Ding, J. Gao, and J. Ding. TopInG: Topologically interpretable graph learning via persistent rationale filtration. Proceedings of Machine Learning Research 267:68847–68869, 2025. https://proceedings.mlr.press/v267/xin25b.html.
[59] W. Wu, J. Kim, and A. Rinaldo. On the estimation of persistence intensity functions and linear representations of persistence diagrams. Proceedings of Machine Learning Research 238:3610–3618, 2024. https://proceedings.mlr.press/v238/wu24f.html.
[60] A. Zomorodian and G. Carlsson. Computing persistent homology. Discrete & Computational Geometry 33(2):249–274, 2005. https://doi.org/10.1007/s00454-004-1146-y.
AI Disclosure
We used ChatGPT and Claude to assist with literature review, brainstorming, proof checking, and language polishing (Sections 1, 4, 9, and 10, and Appendices A–E). The authors independently determined the research direction and final presentation, verified all mathematical arguments and references, and take full responsibility for the correctness, originality, and final content.