betaFeedback

WorksPhysics and Astronomy

Quantum Tsallis Entropy Estimation: Near-Optimal Bounds and High-Precision Improvements

Abstract

Estimating statistical properties of probability distributions is a fundamental problem in statistics and theoretical computer science. We develop quantum algorithms for estimating the qq-Tsallis entropy HqTsa(P)=∑i=1npiq−11−q\mathrm{H}_q^{\mathrm{Tsa}}(P) =\frac{\sum_{i=1}^n p_i^q-1}{1-q} when 0<q<10<q<1, given purified quantum query access to a distribution PP on [n][n]. When 0<q≤120<q\leq \frac{1}{2}, we provide a quantum algorithm with query complexity \widetilde{O}\rbra{\left(\frac{n}{\varepsilon}\right)^{\frac{1}{2q}}}, which is optimal up to polylogarithmic factors. When 12<q<1\frac{1}{2}<q<1, we introduce a two-stage simultaneous probability estimation procedure, yielding a quantum algorithm with query complexity O~(n12+12qε12q+n1−qε)\widetilde{O}\left(\frac{n^{\frac12+\frac{1}{2q}}}{\varepsilon^{\frac{1}{2q}}}+\frac{n^{1-q}}{\varepsilon}\right), which improves the result given by Chen et al. (ICALP 2026) when \varepsilon=O\rbra{n^{1-2q}}.

Introduction

Estimating numerical properties of an unknown probability distribution is a fundamental problem in statistics and theoretical computer science. An important family of such properties is given by the power sums

Fq(P)=∑i=1npiqF_q(P)=\sum_{i=1}^{n}p_i^q

which determine both the Tsallis entropy [26] and the Rényi entropies [23]. In this paper, we study quantum algorithms for estimating the qq-Tsallis entropy

HqTsA(P)=Fq(P)−11−q(1)H_q^{\mathrm{TsA}}(P)=\frac{F_q(P)-1}{1-q} \tag*{(1)}

for 0<q<10<q<1, given purified quantum query access to a distribution P=(p1,…,pn)P=(p_1,\ldots,p_n) on [n][n].

The regime 0<q<10<q<1 presents a particular challenge: small probabilities can contribute substantially to Fq(P)F_q(P) even though they account for little probability mass. Indeed, the ratio piq/pi=piq−1p_i^q/p_i=p_i^{q-1} increases as pip_i decreases. Moreover, the derivative qxq−1qx^{q-1} diverges as xx approaches zero, making the resulting power-sum estimate sensitive to errors in small probabilities. An effective algorithm must therefore control the estimation error across different probability scales.

Quantum algorithms for distribution testing and entropy estimation have been studied extensively [3, 2, 21, 11, 20, 5, 18, 32]. Most closely related to our work, [CGL+26] introduced a multilevel framework for estimating functionals of discrete distributions. Their framework partitions the probabilities pip_i into intervals and applies quantum singular value transformation (QSVT) [12, 22] separately within each interval. For 0<q<10<q<1, it yields a Tsallis entropy estimator with query complexity O~(n1q−12ε1q)\widetilde{O}\left(\frac{n^{\frac{1}{q}-\frac{1}{2}}}{\varepsilon^{\frac{1}{q}}}\right), while the lower bounds are Ω~((nε)12q)\widetilde{\Omega}\left(\left(\frac{n}{\varepsilon}\right)^{\frac{1}{2q}}\right) for 0<q≤120<q\le\frac{1}{2} and O~((nε)12q+n1−qε)\widetilde{O}\left(\left(\frac{n}{\varepsilon}\right)^{\frac{1}{2q}}+\frac{n^{1-q}}{\varepsilon}\right) for 12<q<1\frac{1}{2}<q<1. A gap remains between this upper bound and the lower bounds, both in the dependence on the distribution size nn and in the dependence on the additive error ε\varepsilon. This raises the following question:

Can we improve the quantum query complexity of Tsallis entropy estimation for 0<q<10<q<1?

We address this question using different estimators for 0<q≤120<q\le\frac{1}{2} and 12<q<1\frac{1}{2}<q<1, obtaining optimal query complexity up to polylogarithmic factors in the former regime and improved bounds at high precision in the latter.

Main results

We use the purified quantum query access model. The input is a unitary oracle UPU_P satisfying

UP∣0⟩A∣0⟩B=∑i=1npi∣ϕi⟩A∣i⟩B,(2)U_P\lvert0\rangle_A\lvert0\rangle_B=\sum_{i=1}^{n}\sqrt{p_i}\lvert\phi_i\rangle_A\lvert i\rangle_B, \tag*{(2)}

where each ∣ϕi⟩\lvert\phi_i\rangle is an arbitrary normalized state. Query complexity counts applications of UPU_P, UP†U_P^\dagger, and their controlled versions. Throughout, we assume n≥2n\ge2 and 0<ε≤10<\varepsilon\le1. Our results address the regimes 0<q≤120<q\le\frac{1}{2} and 12<q<1\frac{1}{2}<q<1 separately.

Optimal estimation for 0<q≤120<q\le\frac{1}{2}. By adapting the multilevel framework of Chen et al. [CGL+26], we obtain the following result.

Theorem 1.1 (Tsallis entropy estimation for 0<q≤1/20<q\le1/2). Let P=(p1,…,pn)P=(p_1,\ldots,p_n) be a probability distribution over [n][n], and suppose that purified quantum access UPU_P to PP is available. For any 0<q≤1/20<q\le1/2 and 0<ε≤10<\varepsilon\le1, there exists a quantum algorithm that outputs an estimate H^\widehat{H} satisfying ∣H^−HqTsa(P)∣≤ε\left|\widehat{H}-H_q^{\mathrm{Tsa}}(P)\right|\le\varepsilon with probability at least 2/32/3, using

O~((nε)12q)\widetilde{O}\left(\left(\frac{n}{\varepsilon}\right)^{\frac{1}{2q}}\right)

queries to UPU_P and UP†U_P^\dagger.

This bound matches the known lower bound up to polylogarithmic factors. Our construction uses uniform initialization and modifies the local QSVT polynomials, while retaining the discriminators and amplitude estimation routine of the existing framework.

Improved estimation for 12<q<1\frac{1}{2}<q<1. For this regime, we combine a two-stage simultaneous probability estimation procedure with quantum mean estimation [21, 15, 17].

Theorem 1.2 (Tsallis entropy estimation for 12<q<1\frac{1}{2}<q<1). Let 12<q<1\frac{1}{2}<q<1 and 0<ε≤10<\varepsilon\le1. Given purified quantum query access to a distribution PP on [n][n], there exists a quantum algorithm that outputs an estimate H^\widehat{H} satisfying ∣H^−HqTsa(P)∣≤ε\left|\widehat{H}-H_q^{\mathrm{Tsa}}(P)\right|\le\varepsilon with probability at least 2/32/3, using

O~(n12+12qε12q+n1−qε)\widetilde{O}\left(\frac{n^{\frac{1}{2}+\frac{1}{2q}}}{\varepsilon^{\frac{1}{2q}}}+\frac{n^{1-q}}{\varepsilon}\right)

queries to UPU_P and UP†U_P^\dagger.

The first term accounts for constructing estimates of the probabilities, and the second for quantum mean estimation. Compared with the bound O~(n1q−12ε1q)\widetilde{O}\left(\frac{n^{\frac{1}{q}-\frac{1}{2}}}{\varepsilon^{\frac{1}{q}}}\right) of Chen et al. [CGL+26], our bound improves the dependence on ε\varepsilon, at the cost of a larger exponent of nn in the first term. Ignoring polylogarithmic factors, it gives an improvement when ε=O(n1−2q)\varepsilon=O\left(n^{1-2q}\right).

Table 1 summarizes our query bounds and compares them with existing results.

Existing resultsThis work
0<q≤1/20 < q \le1/2Upper boundO~(n1q−12ε1q)\widetilde{O}\left(\frac{n^{\frac{1}{q}-\frac{1}{2}}}{\varepsilon^{\frac{1}{q}}}\right) [CGL+26]O~((nε)12q)\widetilde{O}\left(\left(\frac{n}{\varepsilon}\right)^{\frac{1}{2q}}\right) (Theorem 1.1)
Lower boundΩ~((nε)12q)\widetilde{\Omega}\left(\left(\frac{n}{\varepsilon}\right)^{\frac{1}{2q}}\right) [16]–
1/2<q<11/2 < q < 1Upper boundO~(n1q−12ε1q)\widetilde{O}\left(\frac{n^{\frac{1}{q}-\frac{1}{2}}}{\varepsilon^{\frac{1}{q}}}\right) [CGL+26]O~(n12+12qε12q+n1−qε)\widetilde{O}\left(\frac{n^{\frac{1}{2}+\frac{1}{2q}}}{\varepsilon^{\frac{1}{2q}}}+\frac{n^{1-q}}{\varepsilon}\right) (Theorem 1.2)
Lower boundΩ~((nε)12q+n1−qε)\widetilde{\Omega}\left(\left(\frac{n}{\varepsilon}\right)^{\frac{1}{2q}}+\frac{n^{1-q}}{\varepsilon}\right) [16]–

Table 1. Comparison of quantum query complexities for estimating the qq-Tsallis entropy to additive error ε\varepsilon under purified quantum access.

Techniques overview

To outline the main technical ideas, we consider two parameter regimes separately. We first explain how the multilevel framework yields a query complexity that is optimal up to polylogarithmic factors for 0<q≤120 < q \le\frac{1}{2}, and why it incurs a higher query cost for 12<q<1\frac{1}{2} < q < 1. We then present the key ingredients of our algorithm and analysis for 12<q<1\frac{1}{2} < q < 1, showing how they lead to an improved query complexity.

Proof techniques for 0<q≤120 < q \le\frac{1}{2}

We adapt the multilevel framework of [CGL+26] through uniform reweighting, which yields the optimal query bound for 0<q≤120 < q \le\frac{1}{2}. We then discuss why this approach incurs a higher query cost when 12<q<1\frac{1}{2} < q < 1.

Uniform reweighting for 0<q≤120 < q \le\frac{1}{2}. A natural starting point is that

Fq(P)=∑i=1npipiq−1.F_q(P) = \sum_{i=1}^{n} p_i p_i^{q-1}.

With distribution-weighted initialization, a QSVT-based estimator encodes a normalized approximation of piq−1p_i^{q-1} in the amplitudes. Since the corresponding singular value is proportional to pi\sqrt{p_i}, the required polynomial approximates a function proportional to xq−1x^{q-1}. For 0<q<10 < q < 1, this function diverges at the origin, whereas a QSVT polynomial must remain bounded on [−1,1][-1,1]. The multilevel framework of [CGL+26] handles this difficulty by applying separate transformations at different probability scales. However, the normalization required at small scales introduces rescaling factors that amplify the estimation error.

Our observation is that changing the input weights changes the function that QSVT must approximate. We replace distribution-weighted initialization with the uniform state

∣u⟩=1n∑i=1n∣ℓi⟩.|u\rangle= \frac{1}{\sqrt{n}}\sum_{i=1}^{n}|\ell_i\rangle.

Each label now receives weight 1/n1/n, so the local transformations need only approximate a normalized version of xqx^q. More precisely, within the jj-th probability interval, we choose a polynomial QjQ_j and a rescaling factor Λj\Lambda_j such that ΛjQj((pi/2)2)≈piq\Lambda_j Q_j\left((\sqrt{p_i}/2)^2\right) \approx p_i^q. Unlike xq−1x^{q-1}, the function xqx^q is bounded and vanishes at the origin. Uniform initialization also assigns greater weight to labels with pi<1/np_i < 1/n, allowing their contribution to the power sum to be resolved more efficiently.

Let tjt_j denote the geometrically decreasing probability scales. The resulting query cost is bounded by

O~(nε∑j=1mtjq−1/2).\widetilde{O}\left(\frac{n}{\varepsilon}\sum_{j=1}^{m}t_j^{q-1/2}\right).

We choose the finest scale as tm=Θ((εn)1/q)t_m = \Theta\left(\left(\frac{\varepsilon}{n}\right)^{1/q}\right), so that probabilities below this scale contribute only O(ε)O(\varepsilon) to the power sum. For q≤12q \le\frac{1}{2}, the geometric sum is dominated by its finest scale; for q=12q = \frac{1}{2}, it contributes only the number of levels. This gives the query bound

O~((nε)12q).(3)\widetilde{O}\left(\left(\frac{n}{\varepsilon}\right)^{\frac{1}{2q}}\right). \tag*{(3)}

The limitation of uniform reweighting for q>1/2q > 1/2. Uniform initialization also introduces a cost: converting an expectation under the uniform distribution into the power sum requires multiplication by nn, which amplifies the estimation error. For q>1/2q > 1/2, the geometric sum above is no longer dominated by the finest scale. A more refined analysis that accounts for the acceptance probabilities gives O~(n3/2−qε)\widetilde{O}\left(\frac{n^{3/2-q}}{\varepsilon}\right).

This bound is a factor of n\sqrt{n} larger than n1−qε\frac{n^{1-q}}{\varepsilon}. Thus, removing the singular QSVT transformation does not by itself give the desired dependence on the accuracy in this regime. This motivates a different approach: first construct classical estimates of the probabilities, and then use them in quantum mean estimation.

Proof techniques for 1/2<q<11/2 < q < 1

The limitations of uniform reweighting motivate a different algorithm for this regime. Our approach combines estimates of each probability pip_i with quantum mean estimation. We outline its main components and analysis below, beginning with a two-stage simultaneous probability estimation procedure.

Two-stage simultaneous probability estimation. Our probability estimation procedure builds on multidimensional amplitude estimation [27]. A single global additive accuracy does not account for the different precision requirements at different probability scales. We therefore use two stages: the first obtains coarse estimates and groups probabilities of comparable magnitude, while the second refines the estimates within each group. The resulting guarantee is summarized below.

Theorem 1.3 (Two-stage simultaneous probability estimation, informal version of Theorem 4.1). Let T≥nT \ge\sqrt{n}. Given purified quantum query access to a distribution PP on [n][n], there exists a quantum algorithm that uses O~(nT)\widetilde{O}(\sqrt{n}T) queries and outputs a classical vector r=(r1,…,rn)r=(r_1,\ldots,r_n) such that, with probability at least 2/32/3, the following bounds hold simultaneously for every ii:

∣ri−pi∣={O(piT),pi≥T−2,O(T−2),pi<T−2.\lvert r_i-p_i\rvert= \begin{cases} O\left(\frac{\sqrt{p_i}}{T}\right), & p_i \ge T^{-2},\\ O(T^{-2}), & p_i < T^{-2}. \end{cases}

Moreover,

ri=Ω(T−2),pi≤2ri,∑i=1nri=O(1),r_i=\Omega(T^{-2}), \qquad p_i \le2r_i, \qquad\sum_{i=1}^{n}r_i=O(1),

and

∑i=1n(pi−ri)2ri=O(nT2).\sum_{i=1}^{n}\frac{(p_i-r_i)^2}{r_i}=O\left(\frac{n}{T^2}\right).

The parameter TT controls both the query cost and the precision. For probabilities above the cutoff T−2T^{-2}, the additive error scales as pi/T\sqrt{p_i}/T. Below the cutoff, an additive error of order T−2T^{-2} suffices. We also impose a floor of this order on the estimates, which controls the negative powers of rir_i used in the entropy estimator. The vector rr need not be a normalized probability distribution.

Estimating a correction under the input distribution. For 1/2<q<11/2 < q < 1, we use the probability estimates in a first-order approximation, inspired by the approach of [7]. Expanding each piqp_i^q around rir_i gives

piq≈riq+qriq−1(pi−ri).p_i^q \approx r_i^q+qr_i^{q-1}(p_i-r_i).

Summing over ii yields

Fq(P)≈(1−q)∑i=1nriq+q∑i=1npiriq−1.F_q(P)\approx(1-q)\sum_{i=1}^{n}r_i^q+q\sum_{i=1}^{n}p_i r_i^{q-1}.

The first term can be computed classically. The second is an expectation under the original distribution:

∑i=1npiriq−1=Ei∼P[riq−1].\sum_{i=1}^{n}p_i r_i^{q-1}=\mathbb{E}_{i\sim P}\left[r_i^{q-1}\right].

which we estimate using quantum mean estimation. The guarantees of the probability estimation procedure control both the approximation error and the cost of estimating this expectation. In particular, the approximation error satisfies

0≤(1−q)∑i=1nriq+q∑i=1npiriq−1−Fq(P)≤O(nT2q).0 \le(1-q)\sum_{i=1}^{n} r_i^q + q\sum_{i=1}^{n} p_i r_i^{q-1} - F_q(P) \le O\left(\frac{n}{T^{2q}}\right).

Choosing

T=Θ((nε)12q)T = \Theta\left(\left(\frac{n}{\varepsilon}\right)^{\frac{1}{2q}}\right)

makes this error sufficiently small. The cost of constructing rr is therefore

O~(n12+12qε12q).\widetilde{O}\left(\frac{n^{\frac{1}{2}+\frac{1}{2q}}}{\varepsilon^{\frac{1}{2q}}}\right).

Furthermore, the bounds pi≤2rip_i \le2r_i and ∑iri=O(1)\sum_i r_i = O(1) imply

Var⁡I∼P(rIq−1)=O(n2−2q).\operatorname{Var}_{I\sim P}\left(r_I^{q-1}\right) = O\left(n^{2-2q}\right).

Quantum mean estimation consequently uses O(n1−qε)O\left(\frac{n^{1-q}}{\varepsilon}\right) queries. Combining the two costs gives

O~(n12+12qε12q+n1−qε),\widetilde{O}\left(\frac{n^{\frac{1}{2}+\frac{1}{2q}}}{\varepsilon^{\frac{1}{2q}}}+\frac{n^{1-q}}{\varepsilon}\right),

as stated in Theorem 1.2. Here, the conversion from power-sum error to Tsallis entropy error is absorbed into the constants depending on qq.

Related work

Quantum distribution testing includes algorithms for uniformity testing, closeness testing and testing similar means [3, 2, 21, 11, 20, 5, 14]. These results establish quantum advantages for learning global properties of distributions under suitable oracle access. A related task is to estimate numerical functionals of a distribution to a prescribed additive accuracy.

Under purified quantum query access, prior work on distributions includes estimators for Rényi entropy [18, 32], Shannon entropy [10, 25], and Tsallis entropy of integer orders [28] and non-integer orders greater than two [19], as well as the multilevel framework of [CGL+26]. Entropy estimation of quantum states has also been investigated in terms of query complexity [24, 30, 9] and sample complexity [1 WZ25, 13, 8, 6]. Our focus is on estimating the Tsallis entropy of classical distributions for 0<q<10 < q < 1 under purified quantum query access. For a unified treatment, we refer readers to [29].

Preliminaries

Notations

For a positive integer nn, write [n]={1,…,n}[n] = \{1,\ldots,n\}. Let P=(p1,…,pn)P = (p_1,\ldots,p_n) denote a probability distribution on [n][n], where pi≥0p_i \ge0 and ∑i=1npi=1\sum_{i=1}^{n} p_i = 1. For a vector xx, let ∥x∥2\lVert x\rVert_2 and ∥x∥∞\lVert x\rVert_\infty denote its Euclidean and maximum norms, respectively. For a matrix AA, let ∥A∥\lVert A\rVert denote its operator norm and A†A^\dagger its adjoint. We use O~\widetilde{O} to suppress polylogarithmic factors in the relevant problem parameters; a subscript qq indicates that the implicit constants may depend on qq.

Definition 2.1 (Purified quantum access). A probability distribution P=(p1,…,pn)P = (p_1,\ldots,p_n) is accessible through purified quantum access if we are given a unitary UPU_P satisfying

UP∣0⟩G∣0⟩I=∑i=1npi∣ϕi⟩G∣i⟩I,(4)U_P |0\rangle_G |0\rangle_I = \sum_{i=1}^{n} \sqrt{p_i}|\phi_i\rangle_G |i\rangle_I, \tag*{(4)}

where GG is an auxiliary register, II is the outcome register, and each ∣ϕi⟩|\phi_i\rangle is a normalized quantum state.

Throughout this paper, query complexity counts applications of UPU_P, UP†U_P^\dagger, and their controlled versions.

Definition 2.2 (Hermitian dilation). Let UU be a unitary, and let Π\Pi and Π~\widetilde{\Pi} be orthogonal projectors such that

Π~UΠ=A=∑i=1dσi∣ψ~i⟩⟨ψi∣,\widetilde{\Pi}U\Pi= A = \sum_{i=1}^{d} \sigma_i |\widetilde{\psi}_i\rangle\langle\psi_i|,

where d=rank⁡(A)d = \operatorname{rank}(A), σi>0\sigma_i > 0, and ∣ψi⟩|\psi_i\rangle and ∣ψ~i⟩|\widetilde{\psi}_i\rangle are the corresponding right and left singular vectors.

Introduce an auxiliary qubit hh and define

UH=∣0⟩⟨1∣h⊗U+∣1⟩⟨0∣h⊗U†,U_H = |0\rangle\langle1|_h \otimes U + |1\rangle\langle0|_h \otimes U^\dagger,
ΠH=∣0⟩⟨0∣h⊗Π~+∣1⟩⟨1∣h⊗Π.\Pi_H = |0\rangle\langle0|_h \otimes\widetilde{\Pi} + |1\rangle\langle1|_h \otimes\Pi.

Then UHU_H is a Hermitian unitary, and its compression by ΠH\Pi_H is the Hermitian dilation of AA:

ΠHUHΠH=[0AA†0].\Pi_H U_H \Pi_H = \begin{bmatrix} 0 & A\\ A^\dagger& 0 \end{bmatrix}.

For each i∈[d]i \in[d] and ν∈{−1,+1}\nu\in\{-1,+1\}, define

∣χi,ν⟩=12(∣0⟩h∣ψ~i⟩+ν∣1⟩h∣ψi⟩).|\chi_{i,\nu}\rangle= \frac{1}{\sqrt{2}}\left(|0\rangle_h|\widetilde{\psi}_i\rangle+ \nu|1\rangle_h|\psi_i\rangle\right).

These states satisfy

ΠHUHΠH∣χi,ν⟩=νσi∣χi,ν⟩.\Pi_H U_H \Pi_H |\chi_{i,\nu}\rangle= \nu\sigma_i|\chi_{i,\nu}\rangle.

Consequently,

ΠHUHΠH=∑i=1d∑ν∈{−1,+1}νσi∣χi,ν⟩⟨χi,ν∣,\Pi_H U_H \Pi_H = \sum_{i=1}^{d}\sum_{\nu\in\{-1,+1\}} \nu\sigma_i|\chi_{i,\nu}\rangle\langle\chi_{i,\nu}|,

with any remaining eigenvectors having eigenvalue zero.

Quantum subroutines

We recall the quantum subroutines used in our algorithms. We begin with subset multidimensional amplitude estimation, which allows us to estimate several probabilities simultaneously and serves as the main building block of our two-stage procedure.

Lemma 2.3 (Subset multidimensional amplitude estimation, Theorem 9 in [27]). Let PP be a distribution on [n][n] with the purified quantum access UPU_P. Let S⊆[n]S \subseteq[n] and M≥∑i∈SpiM \ge\sum_{i\in S}p_i with 0<M≤10 < M \le1. Let 0<ϵ,δ<10 < \epsilon,\delta< 1. There exists a quantum algorithm SubsetEst⁡(UP,S,M,ϵ,δ)\operatorname{SubsetEst}(U_P,S,M,\epsilon,\delta) that outputs a distribution P~\widetilde{P} such that ∥P~−P∥∞≤ϵ\|\widetilde{P}-P\|_\infty\le\epsilon with failure probability at most δ\delta using

O(Mln⁡1ϵδϵ)(5)O\left(\frac{\sqrt{M}\ln\frac{1}{\epsilon\delta}}{\epsilon}\right) \tag*{(5)}

queries to UPU_P.

Once the probability estimates have been constructed, our entropy estimator reduces the remaining computation to estimating an expectation under the input distribution. For this step, we use the following quantum mean estimation result.

Lemma 2.4 (Quantum mean estimation, Theorem 1.1 in [17]). Let OΩO_\Omega and OXO_X be the quantum codes of a random variable XX on a finite probability space such that

OΩ∣0⃗⟩=∑ω∈Ωp(ω)∣ω⟩∣ψω⟩,O_\Omega|\vec{0}\rangle= \sum_{\omega\in\Omega}\sqrt{p(\omega)}|\omega\rangle|\psi_\omega\rangle,
OX∣ω⟩∣0⃗⟩=∣ω⟩∣xω⟩∣0⃗⟩,O_X|\omega\rangle|\vec{0}\rangle= |\omega\rangle|x_\omega\rangle|\vec{0}\rangle,

where Ω\Omega is the domain of the probability distribution of XX, p:Ω→[0,1]p:\Omega\to[0,1] is the probability distribution of XX and {∣ψω⟩}\{|\psi_\omega\rangle\} are arbitrary normalized quantum states. Given ϵ,δ∈(0,1)\epsilon,\delta\in(0,1), there exists a quantum algorithm that outputs an estimate μ~\widetilde{\mu} such that Pr⁡[∣μ~−μ∣≥σϵ]≤δ\Pr[|\widetilde{\mu}-\mu|\ge\sigma\epsilon]\le\delta, where μ=E[X]\mu=\mathbb{E}[X] and σ\sigma are the mean and standard deviation of XX, respectively. The algorithm O(log⁡1δϵ)O\left(\frac{\log\frac{1}{\delta}}{\epsilon}\right) applications of OXO_X and OX†O_X^\dagger.

We also recall the following amplitude estimation guarantee.

Lemma 2.5 (Quantum amplitude estimation, Corollary 2.2 in [CGL+26]). Let AA be a unitary and let PP be a projector such that A∣0⟩=a∣Ψ0⟩+1−a∣Ψ1⟩A|0\rangle= \sqrt{a}|\Psi_0\rangle+ \sqrt{1-a}|\Psi_1\rangle, where a∈[0,1]a \in[0,1] and P∣Ψ0⟩=∣Ψ0⟩P|\Psi_0\rangle= |\Psi_0\rangle, P∣Ψ1⟩=0P|\Psi_1\rangle= 0. For ϵ,δ∈(0,1)\epsilon,\delta\in(0,1), there exists a quantum algorithm that outputs a^\hat{a} satisfying

Pr⁡[∣a^−a∣≤ϵ]≥1−δ.(6)\Pr[|\hat{a}-a|\leq\epsilon]\geq1-\delta. \tag*{(6)}

The algorithm uses O((aϵ+1ϵ)log⁡1δ)O\left(\left(\frac{\sqrt{a}}{\epsilon}+\frac{1}{\sqrt{\epsilon}}\right)\log\frac{1}{\delta}\right) applications of AA and PP.

The following lemma gives a procedure for distinguishing singular values separated by a prescribed gap.

Lemma 2.6 (Singular value discrimination, Theorem 3.1 in [CGL+26]). Let Π~UΠ=A=∑i=1dσi∣ψ~i⟩⟨ψi∣\widetilde{\Pi}U\Pi=A=\sum_{i=1}^{d}\sigma_i|\widetilde{\psi}_i\rangle\langle\psi_i| be a singular value decomposition of AA with ∥A∥≤1/2\|A\|\leq1/2, and let ∣ϕi,ν⟩|\phi_{i,\nu}\rangle denote the corresponding eigenvector of the Hermitian dilation of AA, where ν∈{−1,1}\nu\in\{-1,1\}. For any ϵ1,ϵ2∈(0,1]\epsilon_1,\epsilon_2\in(0,1] and any threshold γ∈(0,1/2)\gamma\in(0,1/2), there exists a unitary DD that, up to precision ϵ1\epsilon_1, implements D(∣++⟩ab∣0⟩c∣ϕi,ν⟩s)=∣++⟩ab∣ξi,ν⟩c∣ϕi,ν⟩sD(|++\rangle_{ab}|0\rangle_c|\phi_{i,\nu}\rangle_s)=|++\rangle_{ab}|\xi_{i,\nu}\rangle_c|\phi_{i,\nu}\rangle_s for every i∈[d]i\in[d] and ν∈{−1,1}\nu\in\{-1,1\}. Moreover, ∣ξi,ν⟩|\xi_{i,\nu}\rangle satisfies

{∥∣ξi,ν⟩−ν∣0⟩∥≤ϵ2,if σi∈[γ,1),∥∣ξi,ν⟩−i∣1⟩∥≤ϵ2,if σi∈[0,γ2].\begin{cases} \bigl\||\xi_{i,\nu}\rangle-\nu|0\rangle\bigr\|\leq\epsilon_2, & \text{if }\sigma_i\in[\gamma,1),\\ \bigl\||\xi_{i,\nu}\rangle-i|1\rangle\bigr\|\leq\epsilon_2, & \text{if }\sigma_i\in\left[0,\frac{\gamma}{2}\right]. \end{cases}

The unitary DD can be implemented using O(log⁡(1ϵ1)+1γlog⁡(1ϵ2))O\left(\log\left(\frac{1}{\epsilon_1}\right)+\frac{1}{\gamma}\log\left(\frac{1}{\epsilon_2}\right)\right) queries to controlled versions of UU and U†U^\dagger.

We next state a quantum singular value transformation result for bounded polynomials of definite parity.

Lemma 2.7 (Corollary 11 in [12]). Let P∈R[x]P\in\mathbb{R}[x] be a polynomial of degree mm. Suppose that PP has parity m mod 2m\mathbin{\bmod}2, meaning that P(−x)=(−1)mP(x)P(-x)=(-1)^mP(x), and that ∣P(x)∣≤1|P(x)|\leq1 for every x∈[−1,1]x\in[-1,1]. Then there exists a unitary UP(SV)U_P^{(\mathrm{SV})} such that

P(SV)(Π~UΠ)={(⟨+∣⊗Π~)UP(SV)(∣+⟩⊗Π),if m is odd,(⟨+∣⊗Π)UP(SV)(∣+⟩⊗Π),if m is even.P^{(\mathrm{SV})}(\widetilde{\Pi}U\Pi)= \begin{cases} (\langle+|\otimes\widetilde{\Pi})U_P^{(\mathrm{SV})}(|+\rangle\otimes\Pi), & \text{if }m\text{ is odd},\\ (\langle+|\otimes\Pi)U_P^{(\mathrm{SV})}(|+\rangle\otimes\Pi), & \text{if }m\text{ is even}. \end{cases}

The unitary UP(SV)U_P^{(\mathrm{SV})} can be implemented using O(m)O(m) elementary gates, controlled applications of the reflections I−2ΠI-2\Pi and I−2Π~I-2\widetilde{\Pi}, and O(m)O(m) queries to controlled versions of UU and U†U^\dagger.

Finally, we recall a polynomial approximation result for positive power functions.

Lemma 2.8 (Polynomial approximation of positive power functions, Lemma 6 in [32]). Let c>0c>0, β∈(0,1)\beta\in(0,1), ν∈(0,β)\nu\in(0,\beta), and η∈(0,1/2)\eta\in(0,1/2). Define g(x)=2−c−1β−cxcg(x)=2^{-c-1}\beta^{-c}x^c. Then there exists an efficiently computable even polynomial S=Sc,ν,β,η∈R[x]S=S_{c,\nu,\beta,\eta}\in\mathbb{R}[x] of degree O((c+1)ν−1log⁡(1/(βνη)))O((c+1)\nu^{-1}\log(1/(\beta\nu\eta))) such that

∣S(x)∣≤2g(x),for every x∈[0,ν],∣g(x)−S(x)∣≤η,for every x∈[ν,β],∣S(x)∣≤1,for every x∈[−1,1].\begin{aligned} |S(x)|&\leq2g(x), &&\text{for every }x\in[0,\nu],\\ |g(x)-S(x)|&\leq\eta, &&\text{for every }x\in[\nu,\beta],\\ |S(x)|&\leq1, &&\text{for every }x\in[-1,1]. \end{aligned}

An optimal estimator for 0<q≤120<q\leq\frac{1}{2}

We adapt the multilevel framework of Chen et al. (Section 3 of [CGL+26]) by changing the input state and the local QSVT polynomials. Uniform initialization assigns weight 1/n1/n to each label, so the required transformation approximates a normalized positive power xqx^q. The discriminators and amplitude-estimation routine remain unchanged. We present the quantum algorithm in Algorithm 1 and prove its correctness and query complexity in the remainder of this section.

exists a quantum algorithm that outputs an estimate H^\widehat{H} satisfying ∣H^−HqTs′a(P)∣≤ε\left|\widehat{H}-H_q^{\mathrm{Ts'a}}(P)\right|\leq\varepsilon with probability at least 2/32/3. The algorithm uses

O~((nε)12q)\widetilde{O}\left(\left(\frac{n}{\varepsilon}\right)^{\frac{1}{2q}}\right)

queries to UPU_P and UP†U_P^\dagger.

Uniform initialization and local transformations

Set η=(1−q)ε\eta=(1-q)\varepsilon. It suffices to estimate Fq(P)=∑ipiqF_q(P)=\sum_i p_i^q to additive error η\eta. We first encode σi=pi/2\sigma_i=\sqrt{p_i}/2 as singular values with explicitly preparable left singular vectors. Let R∣0⟩=12∣0⟩+32∣1⟩R|0\rangle=\frac{1}{2}|0\rangle+\frac{\sqrt{3}}{2}|1\rangle, and define

U=IL⊗UP†⊗R†,U=I_L\otimes U_P^\dagger\otimes R^\dagger,
Π~=IL⊗∣0⟩⟨0∣G⊗∣0⟩⟨0∣I⊗∣0⟩⟨0∣r,\widetilde{\Pi}=I_L\otimes|0\rangle\langle0|_G\otimes|0\rangle\langle0|_I\otimes|0\rangle\langle0|_r,
Π=∑i=1n∣i⟩⟨i∣L⊗IG⊗∣i⟩⟨i∣I⊗∣0⟩⟨0∣r.(7)\Pi=\sum_{i=1}^{n}|i\rangle\langle i|_L\otimes I_G\otimes|i\rangle\langle i|_I\otimes|0\rangle\langle0|_r. \tag*{(7)}

Then

Π~UΠ=A=∑i=1nσi∣ℓi⟩⟨vi∣,∣ℓi⟩=∣i,0,0,0⟩,∣vi⟩=∣i,ϕi,i,0⟩.\widetilde{\Pi}U\Pi=A=\sum_{i=1}^{n}\sigma_i|\ell_i\rangle\langle v_i|,\qquad|\ell_i\rangle=|i,0,0,0\rangle,\qquad|v_i\rangle=|i,\phi_i,i,0\rangle.

Use the Hermitian dilation (UH,ΠH)(U_H,\Pi_H) from Definition 2.2, with the system register s=(h,L,G,I,r)s=(h,L,G,I,r). Its eigenvectors can be chosen as

∣χi,ν⟩=∣0⟩h∣ℓi⟩+ν∣1⟩h∣vi⟩2,ν∈{−1,1},|\chi_{i,\nu}\rangle=\frac{|0\rangle_h|\ell_i\rangle+\nu|1\rangle_h|v_i\rangle}{\sqrt{2}},\qquad\nu\in\{-1,1\},

with eigenvalues νσi\nu\sigma_i. Let

Uin∣0⟩=∣Ψin⟩=∣++⟩ab∣00⟩cd⊗(∣0⟩h⊗1n∑i=1n∣ℓi⟩)s=∣++⟩ab∣00⟩cd⊗12n∑i,ν∣χi,ν⟩s.(8)\begin{aligned} U_{\mathrm{in}}|0\rangle=|\Psi_{\mathrm{in}}\rangle=|++\rangle_{ab}|00\rangle_{cd}\otimes\left(|0\rangle_h\otimes\frac{1}{\sqrt{n}}\sum_{i=1}^{n}|\ell_i\rangle\right)_s \\ &=|++\rangle_{ab}|00\rangle_{cd}\otimes\frac{1}{\sqrt{2n}}\sum_{i,\nu}|\chi_{i,\nu}\rangle_s. \tag*{(8)} \end{aligned}

Observe that UinU_{\mathrm{in}} makes no queries to UPU_P. The discriminators use work qubits a,ba,b and flag qubits c,dc,d; QSVT acts on aa and the system register ss. For the probability scales and error parameters, set

tj=4−j,Cq=24q+2,m=min⁡{k≥1:n(1+Cq)tkq≤η/4},ξ=η1024mn(1+Cq).t_j=4^{-j},\qquad C_q=2^{4q+2},\qquad m=\min\{k\geq1:n(1+C_q)t_k^q\leq\eta/4\},\qquad\xi=\frac{\eta}{1024mn(1+C_q)}.

At level jj, define

Ij=(tj/4,4tj],Λj=Cqtjq,αj=min⁡{1/4,ξ/(4Λj)}.I_j=(t_j/4,4t_j],\qquad\Lambda_j=C_qt_j^q,\qquad\alpha_j=\min\{1/4,\xi/(4\Lambda_j)\}.

By Lemma 2.8, the even polynomial

Qj=Sq,tj/4,tj,αjQ_j=S_{q,\sqrt{t_j}/4,\sqrt{t_j},\alpha_j}

is bounded by one on [−1,1][-1,1] and approximates

gj(x)=2−q−1tj−q/2xqg_j(x)=2^{-q-1}t_j^{-q/2}x^q

to error αj\alpha_j on [tj/4,tj][\sqrt{t_j}/4,\sqrt{t_j}]. The normalization is chosen so that

Λjgj(p/2)2=pq.\Lambda_jg_j(\sqrt{p}/2)^2=p^q.

Consequently, for p∈Ij∩[0,1]p\in I_j\cap[0,1],

∣ΛjQj(p/2)2−pq∣≤2Λjαj≤ξ.(9)\left|\Lambda_jQ_j(\sqrt{p}/2)^2-p^q\right|\leq2\Lambda_j\alpha_j\leq\xi. \tag*{(9)}

Thus each level approximates pqp^q on its local interval; the discriminators select the appropriate levels.

Algorithm 1 Uniform-input multilevel estimation of Tsallis entropy

Require: Purified quantum access UPU_P to P=(pi)i=1nP=(p_i)_{i=1}^n, 0<q≤1/20<q\leq1/2, and 0<ε≤10<\varepsilon\leq1.

Ensure: An estimate H^\widehat{H} satisfying ∣H^−HTsaq(P)∣≤ε|\widehat{H}-H_{\mathrm{Tsa}}^q(P)|\leq\varepsilon with probability at least 2/32/3.

  1. Set η←(1−q)ε\eta\leftarrow(1-q)\varepsilon, Cq←24q+2C_q\leftarrow2^{4q+2}, and tj←4−jt_j\leftarrow4^{-j} for j≥0j\geq0.

  2. Choose the smallest m≥1m\geq1 such that n(1+Cq)tmq≤η/4n(1+C_q)t_m^q\leq\eta/4.

  3. Set ξ←η/(1024mn(1+Cq))\xi\leftarrow\eta/(1024mn(1+C_q)) and S←0S\leftarrow0.

  4. Construct UHU_H, ΠH\Pi_H, and UinU_{\mathrm{in}} as described in Eqs. (7) and (8), where Uin∣0⟩=∣Ψin⟩U_{\mathrm{in}}|0\rangle=|\Psi_{\mathrm{in}}\rangle.

  5. Set D0←ID_0\leftarrow I. For each k∈[m]k\in[m], specify DkD_k for (ΠH,ΠH,UH)(\Pi_H,\Pi_H,U_H) with threshold γk=tk/2\gamma_k=\sqrt{t_k}/2, implementation precision ξ/2n\xi/\sqrt{2n}, and flag precision ξ\xi.

  6. for j=1,…,mj=1,\ldots,m do

  7. Set Λj←Cqtjq\Lambda_j\leftarrow C_qt_j^q, δj←η/(2mnΛj)\delta_j\leftarrow\eta/(2mn\Lambda_j), and a^j←0\widehat{a}_j\leftarrow0.

  8. if δj<1\delta_j<1 then

  9. Set αj←min⁡{1/4,ξ/(4Λj)}\alpha_j\leftarrow\min\{1/4,\xi/(4\Lambda_j)\} and Qj←Sq,tj/4,tj,αjQ_j\leftarrow S_{q,\sqrt{t_j}/4,\sqrt{t_j},\alpha_j}.

  10. Construct the QSVT unitary WjW_j for QjQ_j on (a,s)(a,s), with operator-norm error at most ξ\xi.

  11. Let Vj=(Wj)as(Dj)abds(Dj−1)abcsV_j=(W_j)_{as}(D_j)_{abds}(D_{j-1})_{abcs}, where Dj−1D_{j-1} is instantiated with flag qubit cc and DjD_j with flag qubit dd.

  12. Set the acceptance projector to

Mj={∣+⟩⟨+∣a⊗Ibc⊗∣0⟩⟨0∣d⊗ΠH,j=1,∣+⟩⟨+∣a⊗Ib⊗∣10⟩⟨10∣cd⊗ΠH,j≥2.M_j= \begin{cases} |+\rangle\langle+|_a\otimes I_{bc}\otimes|0\rangle\langle0|_d\otimes\Pi_H,&j=1,\\ |+\rangle\langle+|_a\otimes I_b\otimes|10\rangle\langle10|_{cd}\otimes\Pi_H,&j\geq2. \end{cases}
  1. Apply amplitude estimation to Vj∣Ψin⟩V_j|\Psi_{\mathrm{in}}\rangle and MjM_j, obtaining an estimate a^j\widehat{a}_j of aj=∥MjVj∣Ψin⟩∥2a_j=\lVert M_jV_j|\Psi_{\mathrm{in}}\rangle\rVert^2 with additive error δj\delta_j and failure probability at most 1/(3m)1/(3m).

  2. end if

  3. S←S+nΛja^jS\leftarrow S+n\Lambda_j\widehat{a}_j.

  4. end for

  5. return H^=(S−1)/(1−q)\widehat{H}=(S-1)/(1-q).

Correctness and query complexity

Discriminator weights. Ignoring implementation error, DjD_j preserves ∣χi,ν⟩|\chi_{i,\nu}\rangle and outputs a normalized flag state ∣zi,j,ν⟩|z_{i,j,\nu}\rangle. Let

fi,j,ν=∣⟨0∣zi,j,ν⟩∣2.f_{i,j,\nu}=|\langle0|z_{i,j,\nu}\rangle|^2.

The discriminator guarantee gives

fi,j,ν≥1−ξ2if pi≥tj,fi,j,ν≤ξ2if pi≤tj/4.f_{i,j,\nu}\geq1-\xi^2\quad\text{if }p_i\geq t_j,\qquad f_{i,j,\nu}\leq\xi^2\quad\text{if }p_i\leq t_j/4.

Set fi,0,ν=0f_{i,0,\nu}=0 and define

bi,j,ν=(1−fi,j−1,ν)fi,j,ν,wi,j=12∑ν∈{−1,1}bi,j,ν.b_{i,j,\nu}=(1-f_{i,j-1,\nu})f_{i,j,\nu},\qquad w_{i,j}=\frac{1}{2}\sum_{\nu\in\{-1,1\}}b_{i,j,\nu}.

Since QjQ_j is even, the ideal acceptance probability is

aj⋆=1n∑i=1nwi,jQj(pi2)2.(10)a_j^\star=\frac{1}{n}\sum_{i=1}^{n}w_{i,j}Q_j\left(\frac{\sqrt{p_i}}{2}\right)^2. \tag*{(10)}

The weights satisfy two properties. First, they are localized:

pi∉Ij⟹wi,j≤ξ2.(11)p_i\notin I_j\quad\Longrightarrow\quad w_{i,j}\leq\xi^2. \tag*{(11)}

Indeed, below IjI_j, fi,j,νf_{i,j,\nu} is at most ξ2\xi^2; above IjI_j, (1−fi,j−1,ν)(1-f_{i,j-1,\nu}) is at most ξ2\xi^2. For j=1j=1, pi∉I1p_i\notin I_1 means that pi≤1/4p_i\leq1/4, and thus fi,j,νf_{i,j,\nu} is at most ξ2\xi^2.

Second, the relevant weights approximately sum to one. For pi>tmp_i>t_m, choose the unique k∈[m]k\in[m] with tk<pi≤tk−1t_k<p_i\leq t_{k-1}, and let Ki={k−1,k}∩[m]K_i=\{k-1,k\}\cap[m]. Then

1−ξ2≤∑j∈Kiwi,j≤1.(12)1-\xi^2\leq\sum_{j\in K_i}w_{i,j}\leq1. \tag*{(12)}

For k=1k=1, this is the guarantee for fi,1,νf_{i,1,\nu}. For k≥2k \ge2, suppress the indices i,νi,\nu and observe that

bk−1+bk=(1−fk−2)fk−1+(1−fk−1)fk.b_{k-1}+b_k=(1-f_{k-2})f_{k-1}+(1-f_{k-1})f_k.

Here fk−2≤ξ2f_{k-2}\le\xi^2 (including f0=0f_0=0) and fk≥1−ξ2f_k\ge1-\xi^2, so the expression lies in [1−ξ2,1][1-\xi^2,1]. Averaging over ν\nu proves Eq. (12). All other levels satisfy Eq. (11).

Approximation and implementation errors. Define

Bi=∑j=1mΛjwi,jQj(σi)2,n∑jaj∗=∑iBi.B_i=\sum_{j=1}^{m}\Lambda_j w_{i,j}Q_j(\sigma_i)^2,\qquad n\sum_j a_j^*=\sum_i B_i.

For pi>tmp_i>t_m, Eqs. (9), (11), and (12), together with Λj≤Cq\Lambda_j\le C_q, imply

∣Bi−piq∣≤ξ+ξ2+mCqξ2.|B_i-p_i^q|\le\xi+\xi^2+mC_q\xi^2.

For pi≤tmp_i\le t_m, every level j<mj<m has weight at most ξ2\xi^2, while the last contributes at most Λm\Lambda_m. Hence

∣Bi−piq∣≤mCqξ2+(1+Cq)tmq.|B_i-p_i^q|\le mC_q\xi^2+(1+C_q)t_m^q.

Summing over labels yields

∣n∑jΛjaj∗−Fq(P)∣≤nξ+n(1+mCq)ξ2+n(1+Cq)tmq.\left|n\sum_j\Lambda_j a_j^*-F_q(P)\right|\le n\xi+n(1+mC_q)\xi^2+n(1+C_q)t_m^q.

Each discriminator contributes at most ξ2n\frac{\xi}{\sqrt{2n}} to the state error on the uniform superposition: its error on each of the 2n2n branches is at most ξ/2n\xi/\sqrt{2n}. Including QSVT, the total state error at a level is at most 3ξ3\xi, so ∣aj−aj∗∣≤6ξ|a_j-a_j^*|\le6\xi. Therefore,

∣n∑jΛjaj−Fq(P)∣≤8nm(1+Cq)ξ+n(1+Cq)tmq≤η128+η4<η2.\begin{aligned} \left|n\sum_j\Lambda_j a_j-F_q(P)\right|\le8nm(1+C_q)\xi+n(1+C_q)t_m^q \\ &\le\frac{\eta}{128}+\frac{\eta}{4}<\frac{\eta}{2}. \end{aligned}

Estimation error. By a union bound, all non-skipped estimates satisfy ∣a^j−aj∣≤δj|\widehat a_j-a_j|\le\delta_j simultaneously with probability at least 2/32/3. The same inequality holds deterministically at skipped levels because aj∈[0,1]a_j\in[0,1] and δj≥1\delta_j\ge1. On this event,

∣S−n∑jΛjaj∣≤n∑jΛjδj=η2.\left|S-n\sum_j\Lambda_j a_j\right|\le n\sum_j\Lambda_j\delta_j=\frac{\eta}{2}.

Combining the two error bounds gives ∣S−Fq(P)∣≤η|S-F_q(P)|\le\eta, and hence ∣H^−HqTsA(P)∣≤ε|\widehat H-H_q^{\mathrm{TsA}}(P)|\le\varepsilon.

Query complexity. The choice of the finest level gives

tm=Θ((ηn)1q),m=O(log⁡nη).t_m=\Theta\left(\left(\frac{\eta}{n}\right)^{\frac{1}{q}}\right),\qquad m=O\left(\log\frac{n}{\eta}\right).

At level jj, the polynomial degree is

deg⁡Qj=O(q+1tjlog⁡4tjαj)=O~(tj−12).\deg Q_j=O\left(\frac{q+1}{\sqrt{t_j}}\log\frac{4}{t_j\alpha_j}\right)=\widetilde O\left(t_j^{-\frac{1}{2}}\right).

The discriminator at threshold γj\gamma_j also costs O~(tj−12)\widetilde O(t_j^{-\frac{1}{2}}) queries. Thus one application of VjV_j or Vj†V_j^\dagger costs O~(tj−12)\widetilde O(t_j^{-\frac{1}{2}}) queries. Amplitude estimation to error δj<1\delta_j<1 uses O(ajδj+1δj)=O(1δj)O\left(\frac{\sqrt{a_j}}{\delta_j}+\frac{1}{\sqrt{\delta_j}}\right)=O\left(\frac{1}{\delta_j}\right) applications, with an additional O(log⁡(3m))O(\log(3m)) factor to reduce the failure probability to 13m\frac{1}{3m}. Consequently, the total query cost is

O~(∑j:δj<1tj−12δj)≤O~(nη∑j=1mtjq−12).\widetilde{O}\left(\sum_{j:\delta_j<1}\frac{t_j^{-\frac{1}{2}}}{\delta_j}\right)\leq\widetilde{O}\left(\frac{n}{\eta}\sum_{j=1}^{m}t_j^{q-\frac{1}{2}}\right).

For q<12q<\frac{1}{2}, the geometric sum is O(tmq−12)O\left(t_m^{q-\frac{1}{2}}\right), giving

O~(nηtmq−12)=O~((nη)12q).\widetilde{O}\left(\frac{n}{\eta}t_m^{q-\frac{1}{2}}\right)=\widetilde{O}\left(\left(\frac{n}{\eta}\right)^{\frac{1}{2q}}\right).

For q=12q=\frac{1}{2}, the sum equals mm, so the cost is O~(nη)\widetilde{O}\left(\frac{n}{\eta}\right). Since η=(1−q)ε\eta=(1-q)\varepsilon, both cases give the claimed bound.

Remark 3.2. For 1/2<q<11/2<q<1, the same cost formula gives

O~(n32−qε).(13)\widetilde{O}\left(\frac{n^{\frac{3}{2}-q}}{\varepsilon}\right). \tag*{(13)}

Proof. For 12<q<1\frac{1}{2}<q<1, let Nj=min⁡{n,4tj}N_j=\min\{n,\frac{4}{t_j}\}. Localization gives aj≤Njn+O(ξ)a_j\leq\frac{N_j}{n}+O(\xi), where ξ=O(δj)\xi=O(\delta_j). Thus amplitude estimation yields a total cost

O~(nη∑j=1mNjtjq−12+nη∑j=1mtjq−1).\widetilde{O}\left(\frac{\sqrt{n}}{\eta}\sum_{j=1}^{m}\sqrt{N_j}t_j^{q-\frac{1}{2}}+\sqrt{\frac{n}{\eta}\sum_{j=1}^{m}t_j^{q-1}}\right).

Splitting at tj=1nt_j=\frac{1}{n} gives

∑jNjtjq−12≤n∑tj<1ntjq−12+2∑tj≥1ntjq−1=O(n1−q).\sum_j\sqrt{N_j}t_j^{q-\frac{1}{2}}\leq\sqrt{n}\sum_{t_j<\frac{1}{n}}t_j^{q-\frac{1}{2}}+2\sum_{t_j\geq\frac{1}{n}}t_j^{q-1}=O(n^{1-q}).

Also, tm=Θ((ηn)1q)t_m=\Theta\left(\left(\frac{\eta}{n}\right)^{\frac{1}{q}}\right) implies

nη∑jtjq−1=O((nη)12q).\sqrt{\frac{n}{\eta}\sum_j t_j^{q-1}}=O\left(\left(\frac{n}{\eta}\right)^{\frac{1}{2q}}\right).

Since (nη)12q≤n32−qη\left(\frac{n}{\eta}\right)^{\frac{1}{2q}}\leq\frac{n^{\frac{3}{2}-q}}{\eta}, the cost is

O~(n32−qη)=O~(n32−qε).\widetilde{O}\left(\frac{n^{\frac{3}{2}-q}}{\eta}\right)=\widetilde{O}\left(\frac{n^{\frac{3}{2}-q}}{\varepsilon}\right).

Two-stage simultaneous probability estimation

We now develop the two-stage simultaneous probability estimation outlined in Theorem 4.1. The first stage uses coarse estimates to group probabilities by magnitude, and the second refines the estimates within each group at a precision determined by its scale. This separation allows us to adapt the estimation accuracy to the individual probabilities while controlling the total query cost.

Main algorithm

The following theorem collects the guarantees needed for the entropy estimator in § 5. In addition to coordinatewise accuracy, we require a positive lower bound on the estimates, control of their total mass, and a bound on their weighted squared error. These properties allow the estimates to serve as reference values for approximating the power sum.

Theorem 4.1 (Two-stage simultaneous probability estimation). Let PP be a distribution on [n][n] with the purified quantum access UPU_P. Let T≥nT \ge\sqrt{n}. Then there exists a quantum algorithm that outputs a classical vector r=(r1,r2⋯rn)r=(r_1,r_2\cdots r_n) using O~(nT)\widetilde{O}(\sqrt{n}T) queries to UPU_P such that the following properties hold:

  1. For every i∈[n]i\in[n], ri≥2T2r_i\ge\frac{2}{T^2} and pi≤2rip_i\le2r_i.

  2. For every i∈[n]i\in[n], ∣ri−pi∣≤pi8T|r_i-p_i|\le\frac{\sqrt{p_i}}{8T} if pi>94T2p_i>\frac{9}{4T^2}, and ∣ri−pi∣≤2T2|r_i-p_i|\le\frac{2}{T^2} if pi≤94T2p_i\le\frac{9}{4T^2}.

  3. ∑i∈[n](pi−ri)2ri≤2nT2\sum_{i\in[n]}\frac{(p_i-r_i)^2}{r_i}\le\frac{2n}{T^2}.

  4. ∑i∈[n]ri≤4\sum_{i\in[n]}r_i\le4.

Algorithm 2 implements the two stages using the subset-estimation subroutine from Lemma 2.3. In Stage I, RjR_j contains the labels that remain unassigned at level jj, and SjS_j contains those selected at scale ϵj\epsilon_j. As the scale decays geometrically, progressively tighter upper bounds on the residual probability mass can be obtained, which in turn lowers the cost of subsequent calls. In Stage II, each selected group is estimated to accuracy eje_j, proportional to ϵj/T\sqrt{\epsilon_j}/T. Finally, a floor of 2τ2\tau ensures that every output coordinate is positive, including those corresponding to labels left unassigned after Stage I.

1:Input: Purified quantum access UPU_P to a distribution PP on [n][n], and T≥nT\ge\sqrt{n}.
2:Output: A vector r=(r1,…,rn)r=(r_1,\ldots,r_n).
3:Set J←log⁡2T2J\leftarrow\log_2 T^2, τ←1T2\tau\leftarrow\frac{1}{T^2}, and δ0←1/(24J)\delta_0\leftarrow1/(24J).
4:Stage I: probability grouping.
5:Initialize R0←[n]R_0\leftarrow[n] and S0←∅S_0\leftarrow\varnothing.
6:for j=0,…,J−1j=0,\ldots,J-1 do
7:Set ϵj←2−j\epsilon_j\leftarrow2^{-j}.
8:if Rj≠∅R_j\ne\varnothing then
9:Set Mj←min⁡{1,2nϵj}M_j\leftarrow\min\{1,2n\epsilon_j\}.
10:Obtain P~(j)←SubsetEst(UP,Rj,Mj,ϵj/8,δ0)\widetilde{P}^{(j)}\leftarrow\textbf{SubsetEst}(U_P,R_j,M_j,\epsilon_j/8,\delta_0).
11:Set Sj←{i∈Rj:p~i(j)≥ϵj/2}S_j\leftarrow\{i\in R_j:\widetilde{p}^{(j)}_i\ge\epsilon_j/2\}.
12:end if
13:Set Rj+1←Rj∖SjR_{j+1}\leftarrow R_j\setminus S_j.
14:end for
15:Stage II: higher-precision probability estimation.
16:Initialize ri←2τr_i\leftarrow2\tau for every i∈[n]i\in[n].
17:for j=0,…,J−1j=0,\ldots,J-1 do
18:if Sj≠∅S_j\ne\varnothing then
19:Set Nj←∣Sj∣N_j\leftarrow|S_j|, ej←ϵj16Te_j\leftarrow\frac{\sqrt{\epsilon_j}}{16T}, and Mj′←min⁡{1,2Njϵj}M'_j\leftarrow\min\{1,2N_j\epsilon_j\}.
20:Obtain P^(j)←SubsetEst(UP,Sj,Mj′,ej,δ0)\widehat{P}^{(j)}\leftarrow\textbf{SubsetEst}(U_P,S_j,M'_j,e_j,\delta_0).
21:for i∈Sji\in S_j do
22:Set ri←max⁡{p^i(j),2τ}r_i\leftarrow\max\{\widehat{p}^{(j)}_i,2\tau\}.
23:end for
24:end if
25:end for
26:Return rr.

Table 2. Two-stage Simultaneous Probability Estimation

Proof of Theorem 4.1

Proof. Let T≥nT\ge\sqrt{n}, T2=2JT^2=2^J, and τ=T−2=2−J\tau=T^{-2}=2^{-J}. We first bound the probability that all subset-estimation calls succeed. On this event, we establish an invariant for Stage I and use it to verify the four stated properties. We then bound the query cost of each stage.

Success probability. Assign failure probability at most 1/(24J)1/(24J) to each subset-estimation call. There are at most JJ calls in each stage. Applying a union bound gives Pr⁡[at least one call fails]≤2J⋅124J=112\Pr[\text{at least one call fails}]\le2J\cdot\frac{1}{24J}=\frac{1}{12}.

Thus all calls succeed simultaneously with probability at least 11/12. In the correctness analysis, we condition on this event.

Correctness. The key invariant is that every label remaining at level jj has probability at most twice the current scale. Specifically, we prove by induction that, for every i∈Rji \in R_j,

pi≤2ϵj.(14)p_i \le2\epsilon_j. \tag*{(14)}

The base case j=0j=0 follows from pi≤1p_i \le1 and ϵ0=1\epsilon_0 = 1. Suppose the invariant holds at level jj. Then the probability mass of RjR_j satisfies

∑i∈Rjpi≤min⁡{1,2∣Rj∣ϵj}≤Mj.\sum_{i \in R_j} p_i \le\min\{1, 2|R_j|\epsilon_j\} \le M_j.

With Lemma 2.3, every selected label i∈Sji \in S_j satisfies

3ϵj8≤p~i(j)−ϵj8≤pi≤2ϵj.(15)\frac{3\epsilon_j}{8} \le\widetilde{p}_i^{(j)} - \frac{\epsilon_j}{8} \le p_i \le2\epsilon_j. \tag*{(15)}

Conversely, every unselected label i′′∈Rj+1i^{\prime\prime} \in R_{j+1} satisfies

pi′′≤p~i′′(j)+ϵj8<5ϵj8≤2ϵj+1.p_{i^{\prime\prime}} \le\widetilde{p}_{i^{\prime\prime}}^{(j)} + \frac{\epsilon_j}{8} < \frac{5\epsilon_j}{8} \le2\epsilon_{j+1}.

This completes the induction. The same argument at the final level, where ϵJ−1=2τ\epsilon_{J-1} = 2\tau, shows that the remaining labels satisfy pi<5τ4p_i < \frac{5\tau}{4} for every i∈RJi \in R_J.

Having localized the probabilities in each selected group, we turn to the refinement step. For each nonempty SjS_j, let Nj=∣Sj∣N_j = |S_j|. Equation (15) ensures that Mj′=min⁡{1,2Njϵj}M'_j = \min\{1, 2N_j\epsilon_j\} is a valid upper bound on its probability mass. Applying Lemma 2.3 with accuracy ej=ϵj16Te_j = \frac{\sqrt{\epsilon_j}}{16T} yields estimates that satisfy ∣p^i−pi∣≤ej|\widehat{p}_i - p_i| \le e_j for all i∈Sji \in S_j. Here and below, we suppress the superscript (j)(j) on the refined estimates. The algorithm then sets

ri={max⁡{p^i,2τ},i∈⋃j=0J−1Sj,2τ,i∈RJ.(16)r_i = \begin{cases} \max\{\widehat{p}_i,2\tau\}, & i \in\bigcup_{j=0}^{J-1} S_j,\\ 2\tau, & i \in R_J. \end{cases} \tag*{(16)}

We now verify the four properties in Theorem 4.1.

Claim 1: lower bounds on the estimates. ri≥2T2r_i \ge\frac{2}{T^2} holds by construction. To prove pi≤2rip_i \le2r_i, first consider i∈Sji \in S_j. We have

ejpi≤ϵj16T83ϵj=16Tϵj≤162,(17)\frac{e_j}{p_i} \le\frac{\sqrt{\epsilon_j}}{16T}\frac{8}{3\epsilon_j} = \frac{1}{6T\sqrt{\epsilon_j}} \le\frac{1}{6\sqrt{2}}, \tag*{(17)}

where the first inequality follows from Eq. (15), and the last inequality follows from ϵj≥ϵJ−1=2/T2\epsilon_j \ge\epsilon_{J-1} = 2/T^2. Consequently, p^i≥pi−ej≥pi/2\widehat{p}_i \ge p_i - e_j \ge p_i/2, and hence pi≤2rip_i \le2r_i. For i∈RJi \in R_J, this inequality follows from pi≤5τ4p_i \le\frac{5\tau}{4} and ri=2τr_i = 2\tau.

Claim 2: coordinatewise error. For a label i∈Sji \in S_j with p^i≥2τ\widehat{p}_i \ge2\tau, pi≥158τp_i \ge\frac{15}{8}\tau. Therefore, the scale bound in Eq. (15) relates the refinement accuracy to the probability pip_i as follows:

∣pi−ri∣=∣pi−p^i∣≤ej=ϵj16T≤8pi/316T≤pi8T.(18)|p_i-r_i| = |p_i-\widehat{p}_i| \le e_j = \frac{\sqrt{\epsilon_j}}{16T} \le\frac{\sqrt{8p_i/3}}{16T} \le\frac{\sqrt{p_i}}{8T}. \tag*{(18)}

For a label i∈Sji \in S_j with p^i<2τ\widehat{p}_i < 2\tau, pi≤178τp_i \le\frac{17}{8}\tau. Thus we have

∣pi−ri∣=∣pi−2τ∣≤2τ.|p_i-r_i| = |p_i-2\tau| \le2\tau.

For a remaining label i∈RJi \in R_J, we have pi<5τ4p_i < \frac{5\tau}{4} and ri=2τr_i = 2\tau, giving

∣pi−ri∣≤2τ=2T2.(19)|p_i-r_i| \le2\tau= \frac{2}{T^2}. \tag*{(19)}

Claim 3: weighted squared error. We distinguish two cases according to whether the floor is active.

If i∈Sji \in S_j and p^i≥2τ\widehat{p}_i \ge2\tau, then ri=p^i≥pi/2r_i=\widehat{p}_i\ge p_i/2, and hence

(pi−ri)2ri≤2ej2pi≤2ej256T23εj=τ48.(20)\frac{(p_i-r_i)^2}{r_i}\le\frac{2e_j^2}{p_i}\le\frac{2e_j}{256T^2 3\varepsilon_j}=\frac{\tau}{48}. \tag*{(20)}

If i∈Sji \in S_j and p^i<2τ\widehat{p}_i<2\tau, then ri=2τr_i=2\tau and pi≤2p^i<4τp_i\le2\widehat{p}_i<4\tau. Therefore,

(pi−ri)2ri=(pi−2τ)22τ≤2τ.(21)\frac{(p_i-r_i)^2}{r_i}=\frac{(p_i-2\tau)^2}{2\tau}\le2\tau. \tag*{(21)}

For i∈RJi\in R_J, the same bound follows from 0≤pi≤5τ/40\le p_i\le5\tau/4 and ri=2τr_i=2\tau. Summing over all labels yields

∑i=1n(pi−ri)2ri≤2nτ.(22)\sum_{i=1}^{n}\frac{(p_i-r_i)^2}{r_i}\le2n\tau. \tag*{(22)}

Claim 4: total mass. For this calculation, write ei=eje_i=e_j when i∈Sji\in S_j and ei=0e_i=0 when i∈RJi\in R_J. The refinement error and the floor give ri≤pi+ei+2τr_i\le p_i+e_i+2\tau, while Eq. (15) gives ei≤pi/(8T)e_i\le\sqrt{p_i}/(8T). Summing over all labels and applying the Cauchy–Schwarz inequality together with T≥nT\ge\sqrt{n} yields

∑i=1nri≤1+∑i=1nei+2nτ\sum_{i=1}^{n}r_i\le1+\sum_{i=1}^{n}e_i+2n\tau
≤1+18T∑i=1npi+2nT2\le1+\frac{1}{8T}\sum_{i=1}^{n}\sqrt{p_i}+\frac{2n}{T^2}
≤1+n8T+2nT2≤4.(23)\le1+\frac{\sqrt{n}}{8T}+\frac{2n}{T^2}\le4. \tag*{(23)}

Query complexity. It remains to bound the cost of constructing these estimates. In Stage I, the mass bound MjM_j decreases with the scale once 2nεj<12n\varepsilon_j<1. Splitting the sum at this threshold and applying Lemma 2.3, we obtain a query count of

O(∑j=0J−1ln⁡1εjδ0min⁡{1,2nεj}εj)=O(∑j:εj≥12nln⁡1εjδ0εj+∑j:εj<12nln⁡1εjδ02nεj)=O(nln⁡n+nTln⁡T)=O~(nT).(24)\begin{aligned} O\left(\sum_{j=0}^{J-1}\frac{\ln\frac{1}{\varepsilon_j\delta_0}\sqrt{\min\{1,2n\varepsilon_j\}}}{\varepsilon_j}\right) \\ &=O\left(\sum_{j:\varepsilon_j\ge\frac{1}{2n}}\frac{\ln\frac{1}{\varepsilon_j\delta_0}}{\varepsilon_j}+\sum_{j:\varepsilon_j<\frac{1}{2n}}\frac{\ln\frac{1}{\varepsilon_j\delta_0}\sqrt{2n}}{\sqrt{\varepsilon_j}}\right) \\ &=O\left(n\ln n+\sqrt{n}T\ln T\right)=\widetilde{O}\left(\sqrt{n}T\right). \tag*{(24)} \end{aligned}

For Stage II, the mass bound and the target accuracy both depend on the group scale. Their ratio yields the following cost for each nonempty group SjS_j:

O(ln⁡1εjδ0Mjεj)≤O~(2Njεjεj/16T)=O~(TNj).(25)O\left(\frac{\ln\frac{1}{\varepsilon_j\delta_0}\sqrt{M_j}}{\varepsilon_j}\right)\le\widetilde{O}\left(\frac{\sqrt{2N_j\varepsilon_j}}{\sqrt{\varepsilon_j}/16T}\right)=\widetilde{O}\left(T\sqrt{N_j}\right). \tag*{(25)}

The sets SjS_j are disjoint, so ∑jNj≤n\sum_jN_j\le n. Applying the Cauchy–Schwarz inequality across the groups gives

∑j=0J−1Nj≤J∑j=0J−1Nj≤Jn,(26)\sum_{j=0}^{J-1}\sqrt{N_j}\le\sqrt{J\sum_{j=0}^{J-1}N_j}\le\sqrt{Jn}, \tag*{(26)}

and hence Stage II also uses O~(nT)\widetilde{O}(\sqrt{n}T) queries. The notation O~\widetilde{O} absorbs factors depending logarithmically on TT and the inverse per-call failure probability. Combining the costs of the two stages gives the stated bound of O~(nT)\widetilde{O}(\sqrt{n}T) queries.

Improved Tsallis entropy estimation for 1/2<q<11/2<q<1

We now apply the two-stage estimation procedure to estimate the qq-Tsallis entropy for 1/2<q<11/2<q<1. Recall that

Fq(P)=∑i=1npiq,HqTs(P)=Fq(P)−11−q.F_q(P)=\sum_{i=1}^{n}p_i^q,\qquad H_q^{\mathrm{Ts}}(P)=\frac{F_q(P)-1}{1-q}.

Thus, an additive error of η=(1−q)ϵ\eta=(1-q)\epsilon in the power sum suffices for an additive error of ϵ\epsilon in the entropy.

Our estimator uses the classical vector rr from Theorem 4.1 as the expansion point for a first-order approximation to Fq(P)F_q(P). The resulting expression consists of a term computable from rr and an expectation under PP, which we estimate using quantum mean estimation. The weighted squared-error guarantee for rr controls the approximation remainder, while the bounds pi≤2rip_i\le2r_i and ∑iri≤4\sum_i r_i\le4 control the variance of the random variable used in mean estimation. We analyze these two contributions separately before combining them into the complete estimator.

A first-order approximation with controlled remainder

For 0<q<10<q<1, concavity gives the tangent-line bound

xq≤yq+qyq−1(x−y)=(1−q)yq+qxyq−1,x≥0,y>0.x^q\le y^q+qy^{q-1}(x-y)=(1-q)y^q+qxy^{q-1},\qquad x\ge0,\quad y>0.

To apply this approximation, we require a quantitative bound on the remainder that remains valid at x=0x=0. The following scalar inequality provides such a bound. It is inspired by the bias-control argument in Lemma 2.6 of [7]. For completeness, we provide a direct proof.

Lemma 5.1 (Concave power remainder). For 0<q<10<q<1, x≥0x\ge0, and y>0y>0,

0≤(1−q)yq+qxyq−1−xq≤yq−2(x−y)2.(27)0\le(1-q)y^q+qxy^{q-1}-x^q\le y^{q-2}(x-y)^2. \tag*{(27)}

Proof. Set z=x/yz=x/y and g(z)=(1−q)+qz−zqg(z)=(1-q)+qz-z^q. After dividing by yqy^q, it suffices to show that 0≤g(z)≤(z−1)20\le g(z)\le(z-1)^2 for z≥0z\ge0. Nonnegativity follows from concavity. Since g(1)=g′(1)=0g(1)=g'(1)=0 and g′′(t)=q(1−q)tq−2g''(t)=q(1-q)t^{q-2} for t>0t>0, Taylor’s integral formula gives, for z≥1z\ge1,

g(z)=q(1−q)∫1z(z−t)tq−2 dt≤12q(1−q)(z−1)2.g(z)=q(1-q)\int_1^z(z-t)t^{q-2}\,dt\le\tfrac{1}{2}q(1-q)(z-1)^2.

For 0<z<10<z<1, the same formula gives

g(z)=q(1−q)∫z1(t−z)tq−2 dt.g(z)=q(1-q)\int_z^1(t-z)t^{q-2}\,dt.

With the substitution t=z+(1−z)ut=z+(1-z)u, we have t≥ut\ge u. Because q−2<0q-2<0, it follows that

g(z)=q(1−q)(1−z)2∫01u(z+(1−z)u)q−2 du≤q(1−q)(1−z)2∫01uq−1 du=(1−q)(1−z)2≤(z−1)2.\begin{aligned} g(z)=q(1-q)(1-z)^2\int_0^1u\bigl(z+(1-z)u\bigr)^{q-2}\,du \\ &\le q(1-q)(1-z)^2\int_0^1u^{q-1}\,du \\ &=(1-q)(1-z)^2\le(z-1)^2. \end{aligned}

The case z=0z=0 follows by continuity. Multiplying by yqy^q proves the claim.

Using the estimates {ri}\{r_i\} produced by the algorithm in Theorem 4.1, define

G(r,P)=(1−q)∑i=1nriq+q∑i=1npiriq−1.(28)G(r,P)=(1-q)\sum_{i=1}^{n}r_i^q+q\sum_{i=1}^{n}p_i r_i^{q-1}. \tag*{(28)}

Lemma 5.1 and Theorem 4.1 imply

0≤G(r,P)−Fq(P)≤∑i=1nriq−2(pi−ri)2=∑i=1nriq−1(pi−ri)2ri≤(2τ)q−1(2nτ)=2qnτq≤2nT2q.(29)\begin{aligned} 0\le G(r,P)-F_q(P)\le\sum_{i=1}^{n}r_i^{q-2}(p_i-r_i)^2 \\ &= \sum_{i=1}^{n} r_i^{q-1}\frac{(p_i-r_i)^2}{r_i} \le(2\tau)^{q-1}(2n\tau)=2^q n\tau^q\le\frac{2n}{T^{2q}}. \tag*{(29)} \end{aligned}

Here we used q−1<0q-1<0 to bound riq−1≤(2τ)q−1r_i^{q-1}\le(2\tau)^{q-1}. Thus, the floor on rir_i controls the growth of the derivative near zero, and the weighted squared-error bound controls the sum of the remainders. In particular, this argument also covers coordinates for which pi=0p_i=0.

Estimating the correction under the input distribution

Write

A(r)=(1−q)∑i=1nriq.A(r)=(1-q)\sum_{i=1}^{n}r_i^q.

This term can be computed classically once rr is available. For the remaining term in Eq. (28), define the variable WW as

Pr⁡[W=riq−1]=pi,μ=E[W]=∑i=1npiriq−1.(30)\Pr[W=r_i^{q-1}]=p_i,\qquad\mu=\mathbb{E}[W]=\sum_{i=1}^{n}p_i r_i^{q-1}. \tag*{(30)}

In particular, G(r,P)=A(r)+qμG(r,P)=A(r)+q\mu.

The cost of quantum mean estimation is governed by the standard deviation of WW. Using pi≤2rip_i\le2r_i, we obtain

E[W2]=∑i=1npiri2q−2≤2∑i=1nri2q−1≤2n2−2q(∑i=1nri)2q−1≤2⋅42q−1n2−2q.(31)\begin{aligned} \mathbb{E}[W^2]&=\sum_{i=1}^{n}p_i r_i^{2q-2}\\ &\le2\sum_{i=1}^{n}r_i^{2q-1}\\ &\le2n^{2-2q}\left(\sum_{i=1}^{n}r_i\right)^{2q-1}\\ &\le2\cdot4^{2q-1}n^{2-2q}. \tag*{(31)} \end{aligned}

The third line follows from the concavity of x2q−1x^{2q-1}, since 2q−1∈(0,1)2q-1\in(0,1). Consequently,

σW≤E[W2]≤Bqn1−q,Bq=2⋅42q−1.(32)\sigma_W\le\sqrt{\mathbb{E}[W^2]}\le B_q n^{1-q},\qquad B_q=\sqrt{2\cdot4^{2q-1}}. \tag*{(32)}

This bound is independent of TT: increasing the precision of the reference vector reduces the approximation bias without increasing the correction cost through this variance bound. The condition q>1/2q>1/2 enters precisely in the concavity step in Eq. (31).

Since rr is known classically, the value riq−1r_i^{q-1} can be evaluated without further queries to UPU_P. We can therefore apply Lemma 2.4 to WW, using UPU_P to prepare the distribution and Eq. (32) to bound its standard deviation. This yields an estimate μ^\hat{\mu} satisfying

∣μ^−μ∣≤η2q(33)|\hat{\mu}-\mu|\le\frac{\eta}{2q} \tag*{(33)}

with conditional probability at least 11/1211/12 for every fixed successful reference vector rr. The number of queries is

O(qBqn1−qη)=O(n1−qη).(34)O\left(\frac{qB_q n^{1-q}}{\eta}\right)=O\left(\frac{n^{1-q}}{\eta}\right). \tag*{(34)}

Complete estimator and query complexity

We now present the complete algorithm and prove its correctness and query complexity.

Algorithm 3 Tsallis entropy estimation for 1/2<q<11/2 < q < 1

  1. Input: Purified quantum query access UPU_P to a distribution PP on [n][n], 1/2<q<11/2 < q < 1, and 0<ε≤10 < \varepsilon\le1.

  2. Set η←(1−q)ε\eta\leftarrow(1-q)\varepsilon and T←(4nη)12qT \leftarrow\left(\frac{4n}{\eta}\right)^{\frac{1}{2q}}.

  3. Construct rr using Algorithm 2 with TT.

  4. Compute A(r)=(1−q)∑i=1nriqA(r) = (1-q)\sum_{i=1}^{n}r_i^q classically.

  5. Apply Lemma 2.4 to the variable WW defined in Eq. (30) to estimate μ\mu to additive error η/(2q)\eta/(2q) with failure probability at most 1/121/12, using the standard-deviation bound Bqn1−qB_q n^{1-q}. Call the result μ^\hat{\mu}.

  6. Set F^←A(r)+qμ^\hat{F} \leftarrow A(r) + q\hat{\mu}.

  7. Return H^=F^−11−q\hat{H} = \frac{\hat{F}-1}{1-q}.

Theorem 5.2 (Tsallis entropy estimation for 1/2<q<11/2 < q < 1). Let PP be a distribution on [n][n] with purified quantum query access UPU_P and n≥2n \ge2. For any q∈(1/2,1)q \in(1/2,1) and 0<ε≤10 < \varepsilon\le1, there exists a quantum algorithm that estimates HqTsa(P)H_q^{\mathrm{Tsa}}(P) to additive error ε\varepsilon with probability at least 5/65/6, using

O~(n12+12qε12q+n1−qε)(35)\widetilde{O}\left(\frac{n^{\frac{1}{2}+\frac{1}{2q}}}{\varepsilon^{\frac{1}{2q}}}+\frac{n^{1-q}}{\varepsilon}\right) \tag*{(35)}

queries to UPU_P, UP†U_P^\dagger, and their controlled versions.

Proof. Error bound. Condition on the success of both Algorithm 2 and quantum mean estimation, then

0≤G(r,P)−Fq(P)≤2nT2q≤η2.0 \le G(r,P)-F_q(P) \le\frac{2n}{T^{2q}} \le\frac{\eta}{2}.

Equation (33) bounds the contribution of mean estimation by q∣μ^−μ∣≤η/2q|\hat{\mu}-\mu| \le\eta/2. Combining the two error contributions gives

∣F^−Fq(P)∣≤q∣μ^−μ∣+∣G(r,P)−Fq(P)∣≤η2+η2=η.|\hat{F}-F_q(P)| \le q|\hat{\mu}-\mu| + |G(r,P)-F_q(P)| \le\frac{\eta}{2}+\frac{\eta}{2}=\eta.

Dividing by 1−q1-q gives an entropy estimate with error at most ε\varepsilon.

Success probability. The reference-vector construction fails with probability at most 1/121/12. For every successful output rr, the conditional failure probability of mean estimation is at most $1/12. Therefore,

Pr⁡[either required event fails]≤112+112=16.\Pr[\text{either required event fails}] \le\frac{1}{12}+\frac{1}{12}=\frac{1}{6}.

This argument does not require independence between the two stages.

Query complexity. The reference-vector construction uses O~(nT)\widetilde{O}(\sqrt{nT}) queries. Hence, the query cost of constructing the reference vector is

O~(n12+12qη12q).\widetilde{O}\left(\frac{n^{\frac{1}{2}+\frac{1}{2q}}}{\eta^{\frac{1}{2q}}}\right).

By Eq. (34), estimating the correction requires O(n1−qη)O\left(\frac{n^{1-q}}{\eta}\right) additional queries. The vector rr is constructed once and reused throughout mean estimation, so these two costs add. Substituting η=(1−q)ε\eta=(1-q)\varepsilon yields

O~(n12+12q((1−q)ε)12q+n1−q(1−q)ε),\widetilde{O}\left(\frac{n^{\frac{1}{2}+\frac{1}{2q}}}{((1-q)\varepsilon)^{\frac{1}{2q}}}+\frac{n^{1-q}}{(1-q)\varepsilon}\right),

which gives Eq. (35) for fixed q∈(1/2,1)q \in(1/2,1).

Discussion

We have presented two approaches to estimating the qq-Tsallis entropy for 0<q<10<q<1. For 0<q≤1/20<q\le1/2, uniform initialization within the multilevel framework of [CGL+26] yields the query complexity O~((nε)12q)\widetilde{O}\left(\left(\frac{n}{\varepsilon}\right)^{\frac{1}{2q}}\right), which is optimal up to logarithmic factors. For 1/2<q<11/2 < q < 1, the two-stage simultaneous probability estimation procedure provides probability estimates whose accuracy is adapted to the unknown magnitudes, and combining these estimates with quantum mean estimation yields the complexity

O~(n12+12qε12q+n1−qε).\widetilde{O}\left(\frac{n^{\frac{1}{2}+\frac{1}{2q}}}{\varepsilon^{\frac{1}{2q}}}+\frac{n^{1-q}}{\varepsilon}\right).

which is smaller than the bound of [CGL+26] in the high-precision regime ε=O(n1−2q)\varepsilon= O\left(n^{1-2q}\right).

Several questions remain open. For 1/2<q<11/2 < q < 1, closing the n\sqrt{n} gap between our first term and the lower bound would require a stronger reusable estimation primitive. It would also be of interest to determine whether the two-stage simultaneous probability estimation procedure can be applied to other problems, such as Rényi entropy estimation and ℓ1\ell_1-distance estimation.

Declaration of AI Use

The authors acknowledge the use of OpenAI’s language models in developing Theorem 4.1, as well as in editing and improving the presentation of the manuscript. All AI-assisted contributions were reviewed and verified by the authors, who take full responsibility for the correctness and integrity of the results presented in this paper.

References

  1. [1]Jayadev Acharya, Ibrahim Issa, Nirmal V Shende, and Aaron B Wagner. Estimating quantum entropy. IEEE Journal on Selected Areas in Information Theory, 1(2):454–468, 2020.DOI
  2. [2]Sergey Bravyi, Aram W Harrow, and Avinatan Hassidim. Quantum algorithms for testing properties of distributions. IEEE Transactions on Information Theory, 57(6):3971–3981, 2011.DOI
  3. [3]Sourav Chakraborty, Eldar Fischer, Arie Matsliah, and Ronald de Wolf. New results on quantum property testing. In IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science, pages 145–156, 2010.arxiv.org/abs/1005.0523
  4. [5]Clément L. Canonne, Robin Kothari, and Ryan O’Donnell. Uniformity testing when you have the source code. In 20th Conference on the Theory of Quantum Computation, Communication and Cryptography, volume abs/2411.04972, 2025.arxiv.org/abs/2411.04972
  5. [6]Kean Chen and Qisheng Wang. Improved sample upper and lower bounds for trace estimation of quantum state powers. In COLT, pages 1008–1028, 2025.
  6. [7]Kean Chen and Qisheng Wang. Nearly sample-optimal estimators for quantum r’\’enyi and tsallis entropies. arXiv preprint arXiv:2608.18070, 2026.arxiv.org/abs/2608.18070
  7. [8]Kean Chen, Qisheng Wang, Zhan Yu, and Zhicheng Zhang. Simultaneous estimation of nonlinear functionals of a quantum state. IEEE Transactions on Information Theory, 2026.DOI
  8. [9]Kean Chen, Qisheng Wang, and Zhicheng Zhang. A list of complexity bounds for property testing by quantum sample-to-query lifting. arXiv:2512.01971, 2025. https://arxiv.org/abs/2512.01971.
  9. [10]Tom Gur, Min-Hsiu Hsieh, and Sathyawageeswar Subramanian. Sublinear quantum algorithms for estimating von neumann entropy. arXiv preprint arXiv:2111.11139, 2021.arxiv.org/abs/2111.11139
  10. [11]András Gilyén and Tongyang Li. Distributional property testing in a quantum world. In 11th Innovations in Theoretical Computer Science Conference (ITCS 2020), pages 25–1, 2020.arxiv.org/abs/1902.00814
  11. [12]András Gilyén, Yuan Su, Guang Hao Low, and Nathan Wiebe. Quantum singular value transformation and beyond: exponential improvements for quantum matrix arithmetics. In Proceedings of the 51st annual ACM SIGACT symposium on theory of computing, pages 193–204, 2019.DOI
  12. [13]Minbo Gao and Qisheng Wang. Breaking the quadratic barrier for von neumann entropy estimation. arXiv preprint arXiv:2608.11151, 2026.
  13. [14]Chengshen Gao, Yongzhen Xu, Shenggen Zheng, and Lvzhou Li. Quantum speedups for testing similar means. arXiv preprint arXiv:2608.00741, 2026.arxiv.org/abs/2608.00741
  14. [15]Yassine Hamoudi. Quantum sub-gaussian mean estimator. In 29th Annual European Symposium on Algorithms (ESA 2021), pages 50–1. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2021.
  15. [16]Jiantao Jiao, Kartik Venkat, Yanjun Han, and Tsachy Weissman. Minimax estimation of functionals of discrete distributions. IEEE Transactions on Information Theory, 61(5):2835–2885, 2015.DOI
  16. [17]Robin Kothari and Ryan O’Donnell. Mean estimation when you have the source code; or, quantum monte carlo methods. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1186–1215. SIAM, 2023.arxiv.org/abs/2208.07544
  17. [18]Tongyang Li and Xiaodi Wu. Quantum query complexity of entropy estimation. IEEE Transactions on Information Theory, 65(5):2899–2921, 2018.
  18. [19]Yupan Liu and Qisheng Wang. On estimating the trace of quantum state powers. IEEE Transactions on Information Theory, 2026.
  19. [20]Jingquan Luo, Qisheng Wang, and Lvzhou Li. Succinct quantum testers for closeness and k-wise uniformity of probability distributions. IEEE Transactions on Information Theory, 70(7):5092–5103, 2024.DOI
  20. [21]Ashley Montanaro. Quantum speedup of monte carlo methods. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences, 471(2181):20150301, 2015.DOI
  21. [22]John M Martyn, Zane M Rossi, Andrew K Tan, and Isaac L Chuang. Grand unification of quantum algorithms. PRX quantum, 2(4):040203, 2021.DOI
  22. [23]Alfréd Rényi. On measures of entropy and information. In Proceedings of the fourth Berkeley symposium on mathematical statistics and probability, volume 1: contributions to the theory of statistics, volume 4, pages 547–562. University of California Press, 1961.
  23. [24]Sathyawageeswar Subramanian and Min-Hsiu Hsieh. Quantum algorithm for estimating α-renyi entropies of quantum states. Physical review A, 104(2):022428, 2021.
  24. [25]Myeongjin Shin and Kabgyun Jeong. Near optimal quantum algorithm for estimating shannon entropy. arXiv preprint arXiv:2509.07452, 2025.arxiv.org/abs/2509.07452
  25. [26]Constantino Tsallis. Possible generalization of boltzmann-gibbs statistics. Journal of statistical physics, 52(1):479–487, 1988.DOI
  26. [27]Joran van Apeldoorn. Quantum probability oracles & multidimensional amplitude estimation. In 16th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2021). Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2021.DOI
  27. [28]Qisheng Wang. Information-theoretic lower bounds for approximating monomials via optimal quantum tsallis entropy estimation. arXiv preprint arXiv:2509.03496, 2025.arxiv.org/abs/2509.03496
  28. [29]Qisheng Wang. A unified complexity framework for quantum property testing. arXiv preprint arXiv:2608.02600, 2026.arxiv.org/abs/2608.02600
  29. [30]Qisheng Wang, Ji Guan, Junyi Liu, Zhicheng Zhang, and Mingsheng Ying. New quantum algorithms for computing quantum entropies and distances. IEEE Transactions on Information Theory, 70(8):5653–5680, 2024.DOI
  30. [32]Xinzhao Wang, Shengyu Zhang, and Tongyang Li. A quantum algorithm framework for discrete probability distributions with applications to Rényi entropy estimation. IEEE Transactions on Information Theory, 70(5):3399–3426, 2024.DOI

Paper details

vlnc:W_g3vfkkxq
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

OpenAI’s language models

View statement
Looking for related papers…
Contents