---
title: Quantum Leverage Score Approximation
url: https://www.emergentmind.com/topics/quantum-leverage-score-approximation
type: topic
---

# Quantum Leverage Score Approximation

Quantum leverage score approximation studies how to estimate, approximate, or sample the statistical leverage structure of a matrix by exploiting either gate-based quantum linear-algebra primitives or classical dequantized sampling schemes. For a matrix $A=UDV^\intercal$ of numerical rank $r$, the row leverage scores are $\ell_{R,i}(A)=\|U_{i,\bullet}\|_2^2$ and the column leverage scores are $\ell_{C,j}(A)=\|V_{j,\bullet}\|_2^2$; in the full-column-rank case, they are equivalently $\ell_i=a_i^\top(A^\top A)^{-1}a_i$. These quantities define importance-sampling distributions, can be encoded into quantum states, and appear as algorithmic primitives in low-rank approximation, regression, John ellipsoid computation, and QAOA parameter estimation [2301.06107][2408.14018].

## 1. Definitions and core geometric quantities

Let $A\in\mathbb R^{m\times n}$ have singular value decomposition $A=U_A\Sigma_A V_A^T$, where $U_A\in\mathbb R^{m\times r}$ and $V_A\in\mathbb R^{n\times r}$ are orthonormal and $\Sigma_A\in\mathbb R^{r\times r}$ is diagonal with singular values $\sigma_1\ge\cdots\ge\sigma_r>0$. The $i$th statistical leverage score is
$$
\ell_i=\|(U_A)_{i,:}\|_2^2=e_i^T U_AU_A^T e_i,
$$
and the matrix coherence is
$$
c=\max_{i\in[m]}\ell_i.
$$
The coherence measures how “spiky” the row-space basis $U_A$ is [2111.08915].

Equivalent formulations are central in both randomized linear algebra and quantum algorithms. For a full-column-rank matrix $A\in\mathbb R^{n\times d}$ with row vectors $a_i^\top$, the leverage scores satisfy
$$
\ell_i=a_i^\top(A^\top A)^{-1}a_i
=\max_{x\in\mathbb R^d}\frac{(a_i^\top x)^2}{\|Ax\|_2^2},
$$
with $0\le \ell_i\le 1$ and $\sum_i \ell_i=d$ [2408.14018]. In truncated form, if
$$
A_r=U_r\Sigma_rV_r^\top,\qquad U_r\in\mathbb R^{N\times r},
$$
then the rank-$r$ leverage scores are
$$
\ell_i=\|U_r(i,:)\|_2^2,\qquad p_i=\frac{\ell_i}{r},\qquad \sum_i\ell_i=r.
$$
This rank-restricted variant is the form used in subspace embeddings and in the Hamiltonian-Guided Leverage Embedding pipeline [2606.07814].

Quantum formulations repackage the leverage distribution as a state. The quantum leverage-score states are
$$
\ket{\mathcal L_R}=\frac1{\sqrt r}\sum_{i=1}^m\sqrt{\ell_{R,i}(A)}\,\ket{i},
\qquad
\ket{\mathcal L_C}=\frac1{\sqrt r}\sum_{j=1}^n\sqrt{\ell_{C,j}(A)}\,\ket{j}.
$$
Measuring $\ket{\mathcal L_R}$ or $\ket{\mathcal L_C}$ yields an index according to the corresponding leverage-score distribution [2301.06107].

## 2. Access models and algorithmic primitives

The computational model is decisive. In the quantum-inspired classical setting, the matrix is not accessed entry-by-entry in the usual RAM model. Instead, one assumes query and sampling access to $A$ through data structures supporting column-norm sampling,
$$
P_j=\frac{\|A_{:,j}\|_2^2}{\|A\|_F^2},
$$
and entrywise sampling inside a chosen column,
$$
D_{A_{:,j}}(i)=\frac{|A_{i,j}|^2}{\|A_{:,j}\|_2^2}.
$$
Under a binary-tree data structure, any entry $A_{i,j}$ can be queried or updated in $O(\log mn)$ time, any row or column norm can be computed, and sampling from any row or column is available in polylogarithmic time [2111.08915].

Gate-based quantum algorithms usually assume oracle or QRAM access and then build block-encodings. One formulation uses an oracle
$$
O_A:\ket{i}\ket{j}\ket{0}\mapsto \ket{i}\ket{j}\ket{A_{ij}},
$$
from which one can construct, in $O(1)$ queries plus $O(\log n+\log d)$ overhead, a unitary $U_A$ that is an $(\alpha,\log n+\log d,0)$ block-encoding of $A$ when $\|A\|\le \alpha$ [2408.14018]. A more abstract version assumes an $(\alpha,a,\varepsilon)$ block-encoding of $A$ available at cost $O(T)$, so that the top-left corner of the unitary approximates $A/\alpha$ [2301.06107].

Three primitives recur across the literature. Quantum Singular-Value Transformation is used to implement matrix polynomials and, in particular, sign- or inverse-like spectral filters. Amplitude amplification raises the success probability of post-selection steps, and amplitude estimation converts amplitudes into additive numerical estimates. In inversion-based constructions, QRAM is also used to prepare normalized row states
$$
\ket{a_i}=\frac1{\|a_i\|}\sum_{j=1}^d A_{ij}\ket{j}
$$
in $O(\log d)$ time [2408.14018].

## 3. Quantum-inspired classical approximation

A prominent dequantized approach is the two-stage procedure of "A quantum-inspired algorithm for approximating statistical leverage scores" [2111.08915]. The method separates subspace recovery from score evaluation. Algorithm 1, QiSVD, builds a succinct low-rank representation $\widetilde U\in\mathbb R^{m\times k}$ approximating $U_A$. Algorithm 2, QiSLS, estimates $\ell_i=\|(U_A)_{i,:}\|^2$ by first estimating $\widetilde U_{i,:}$ and then taking its squared norm.

QiSVD samples $p$ columns according to $P_j=\|A_{:,j}\|_2^2/\|A\|_F^2$, forms a sketch matrix $S\in\mathbb R^{m\times p}$ with rescaled sampled columns, then samples $p$ rows from the mixture distribution
$$
P'_i=\frac1p\sum_{t=1}^p D_{A_{:,j_t}}(i),
$$
and forms a second sketch $W\in\mathbb R^{p\times p}$. After computing the top $k$ singular values $\sigma_1,\dots,\sigma_k$ of $W$ and the corresponding right singular vectors $v_1,\dots,v_k$, the algorithm outputs
$$
\widetilde U=S V\Sigma^{-1},
$$
where $V=[v_1\ \cdots\ v_k]$ and $\Sigma=\operatorname{diag}(\sigma_1,\dots,\sigma_k)$. QiSLS then estimates the inner products $S_{i,:}\cdot V_{:,j}$ by inner-product sampling, assembles an approximation to $\widetilde U_{i,:}$, and returns
$$
\widetilde \ell_i=\|\hat u_i\|_2^2.
$$

The analysis is organized around concentration and perturbation bounds. Column sampling ensures $\mathbb E[SS^T]=AA^T$, and with $p=O(1/\theta^2)$ one has
$$
\|AA^T-SS^T\|_F\le \theta\|A\|_F^2
$$
with probability at least $1-\delta$. The analogous row-sampling step gives
$$
\|S^TS-W^TW\|_F\le \theta\|S\|_F^2.
$$
Because $W^TW\approx S^TS$, the top $k$ right singular vectors of $W$ approximate those of $S$. The resulting projector estimate satisfies
$$
\|\widetilde U\widetilde U^T-U_AU_A^T\|<\frac{\epsilon}{2},
$$
and the final leverage-score estimator satisfies
$$
|\ell_i-\widetilde \ell_i|<\epsilon
$$
with probability at least $1-\delta$ [2111.08915].

The same work gives explicit complexity bounds. Step 5, the SVD of $W$, costs $O(p^3\log^c(mn))$, and the overall running time is
$$
O\!\bigl((k\kappa/\epsilon)^{O(1)}\,\operatorname{poly}(\|A\|_F/\|A\|,1/\delta)\,\log^{O(1)}(mn)\bigr).
$$
The theoretical analysis therefore yields dependence polynomial in $k$, the condition number $\kappa$, and logarithmic in matrix size. Numerical experiments on synthetic low-rank matrices up to thousands-by-hundreds showed that even for moderate sampling size $p\ll$ theory, the leverage-score estimates track the true $\ell_i$ closely, the errors stabilize below prescribed $\epsilon$ in repeated trials, and practical $p$ can be much smaller than worst-case bounds [2111.08915].

A frequent misconception is that this line of work requires quantum hardware. It does not: the approach is fully classical, and its claimed advantage is obtained under the sample-and-query data-structure model rather than a gate-based model [2111.08915].

## 4. Gate-based quantum algorithms

Gate-based quantum leverage-score algorithms follow two main patterns: direct preparation of a leverage-score state, and direct estimation of quadratic forms involving $(A^\top A)^{-1}$.

The state-preparation approach constructs an approximation to the partial isometry $UV^\intercal$ by QSVT. Given an $(\alpha,a,\varepsilon)$ block-encoding of $A$, one can construct in time
$$
O\!\bigl((\alpha/\sigma_r)\,\operatorname{polylog}(1/\delta)\bigr)
$$
a unitary whose top-left block is an approximation $W\approx UV^\intercal$. Starting from the uniform superposition over column indices, post-selecting on the success ancilla, and then applying amplitude amplification for $O(\sqrt{n/r})$ repetitions yields a state close to
$$
\ket{\mathcal L_C}=\frac1{\sqrt r}\sum_{j=1}^n\sqrt{\ell_{C,j}(A)}\,\ket j.
$$
The main theorem gives preparation time
$$
\widetilde O\!\bigl((T\alpha/\sigma_r)\sqrt{\min(m,n)/r}\bigr),
$$
and for any fixed row or column index $k$, single-score estimation is available in
$$
\widetilde O\bigl(T\alpha/(\sigma_r\epsilon)\bigr)
$$
time with error
$$
|\widetilde \ell-\ell_k|\le \epsilon\sqrt{\ell_k}+\epsilon^2.
$$
The same work proves lower bounds showing that the speedup is at least quadratic and that the dependence on $\alpha/\sigma_r$ and $\sqrt{\min(m,n)/r}$ is nearly tight [2301.06107].

The inversion-based approach starts from a block-encoding of $A$ and uses QSVT to approximate the inverse map $\lambda\mapsto 1/\lambda$ on the spectrum of $(A/\alpha)^\top(A/\alpha)$. For condition number $\kappa(A)$, an even polynomial of degree
$$
\widetilde O\!\bigl(\kappa\log(1/\varepsilon)\bigr)
$$
approximates $1/\lambda$ on $[1/\kappa^2,1]$, yielding a block-encoding of $(A^\top A)^{-1}$. Combined with row-state preparation, a Hadamard test estimates
$$
\ell_i=\langle a_i,(A^\top A)^{-1}a_i\rangle,
$$
and amplitude estimation reduces the statistical error. In the all-scores setting, a theorem cited in the John-ellipsoid work gives multiplicative approximation
$$
\widetilde \sigma_i=(1\pm\epsilon)\ell_i,\qquad i=1,\dots,n,
$$
using
$$
\widetilde O\bigl(\epsilon^{-1}\sqrt{nd}\bigr)
$$
queries to $A$ and
$$
\widetilde O\bigl(\epsilon^{-1}\sqrt n\,d^{1.5}+\epsilon^{-2}d^\omega\bigr)
$$
total time, with success probability $1-1/\operatorname{poly}(n)$ [2408.14018].

These two patterns target different outputs. State-preparation algorithms directly sample according to leverage scores without explicitly materializing all of them, whereas inversion-based algorithms produce numerical estimates of individual or all scores. This suggests a division between sampling-centric and estimation-centric quantum subroutines, although both rely on the same block-encoding and QSVT toolkit.

## 5. Complexity, lower bounds, and scope of the speedups

The complexity landscape is best understood by keeping the access model explicit. In the sample-and-query classical setting, the dequantized algorithm achieves additive error $\epsilon$ in time polynomial in $k$, $\kappa$, $1/\epsilon$, $1/\delta$, and $\|A\|_F/\|A\|$, with only polylogarithmic dependence on $m$ and $n$ [2111.08915]. In the block-encoding model, quantum state preparation scales as
$$
\widetilde O\!\bigl((T\alpha/\sigma_r)\sqrt{\min(m,n)/r}\bigr),
$$
while full multiplicative approximation of all leverage scores can scale as
$$
\widetilde O\bigl(\epsilon^{-1}\sqrt n\,d^{1.5}+\epsilon^{-2}d^\omega\bigr)
$$
in total time [2301.06107][2408.14018].

The strongest positive claims are regime-dependent. For the dequantized algorithm, the summary narrative states an exponential speedup in $m,n$ compared with classical $O(mn^2)$ SVD when $m,n$ are large, the target rank satisfies $k\ll m,n$, and $A$ is well conditioned [2111.08915]. For leverage-score sampling on a quantum computer, the claimed speedup is at least quadratic and could be exponential for well-conditioned matrices, while for all-score approximation in the tall dense regime $n\gg d$, the quantum approach yields a quadratic speedup $n\to \sqrt{nd}$ provided $\epsilon^{-1}\sqrt{nd}\ll \operatorname{nnz}(A)$ [2301.06107][2408.14018].

Lower bounds materially constrain further improvement. In the entry-oracle model, any quantum algorithm that prepares $\ket{\mathcal L_R}$ must make
$$
\Omega(\sqrt{\min(m,n)/r})
$$
queries. In the block-encoding model, any such algorithm must invoke the block-encoding
$$
\Omega(\alpha/\sigma_r)
$$
times. Even estimating the largest leverage score up to constant relative error requires $\widetilde \Omega(\sqrt{n/r})$ entry-oracle queries when $n\gg r$ and $\Omega(\alpha/\sigma_r)$ block-encoding calls. These bounds are obtained by reductions to Grover search and are used to argue that the known quantum algorithms are close to optimal [2301.06107].

A second misconception is that leverage-score approximation automatically confers an end-to-end advantage. The papers are more specific. The condition number and precision dependence can be substantial: the classical quantum-inspired algorithm has polynomial overhead in $\kappa$ and $1/\epsilon$, which can be large in ill-conditioned or high-precision regimes, and its hidden constants in $p^3$ can be significant [2111.08915]. On the quantum side, the dependence on $\alpha/\sigma_r$ is stated to be unavoidable in QSVT-based constructions, and access assumptions such as efficient block-encodings or QRAM enter linearly through the cost parameter $T$ [2301.06107].

## 6. Applications and later developments

Leverage-score approximation is used as a subroutine rather than an endpoint in several later constructions. One application is quantum rigid regression with vector solution outputs. The quantum algorithm in [2301.06107] uses leverage-score sampling on the “rigid” scores of
$$
\widehat U=U_D(D^T D+\lambda^2I)^{-1/2}
$$
to form a sketch and then solve a smaller regression problem; the paper states that this achieves polynomial speedups over the best classical algorithm known.

Another application is the quantum algorithm for approximating the John ellipsoid. That work presents the first quantum algorithm for the problem, running in
$$
O(\sqrt n\,d^{1.5}+d^\omega)
$$
time by using recent advances in quantum algorithms for spectral approximation and leverage score approximation. In the tall matrix regime, the result is a quadratic speedup over the best classical algorithms cited there [2408.14018].

A hybrid variational-quantum application appears in "Hamiltonian-Guided Leverage Embedding: Robust Subspace Compression for Efficient QAOA Parameter Estimation" [2606.07814]. At each candidate $(\gamma,\beta)$, the method draws $N$ QAOA measurement shots, computes sample energies, chooses either uniform weights
$$
w_t=\frac1N
$$
or Boltzmann-type weights
$$
w_t\propto \exp\bigl(-\tau[E^{(t)}-E_{\min}]\bigr),
$$
builds a weighted Ising feature matrix
$$
A_{t,:}=\sqrt{w_t}\,\phi(s^{(t)})^\top,
$$
computes an approximate dominant $r$-dimensional column space in $O(Ndr)$ time, and samples
$$
m\ge C\,\frac{r\log(r/\delta)}{\varepsilon^2}
$$
rows according to leverage-score probabilities. The formal guarantees include $\varepsilon$-subspace embedding, rank preservation, a master inequality controlling energy approximation error through the residual fraction
$$
\kappa_r=\frac{\|(I-V_rV_r^\top)c\|_2}{\|c\|_2},
$$
and an argmin-shift bound
$$
F(\theta_r^*)-F(\theta^*)\le 2\,\kappa_r\,\|c\|_2\,B.
$$
Empirically, benchmarks on HamLib Max-Cut and Maximum Independent Set report that, without HGLE, optimizers vary widely, whereas with HGLE warm start all achieve $\mathrm{AR}\ge 0.98$ on both problems; the cross-optimizer variance on MIS collapses from $\gtrsim 0.40$ to $\le 0.02$ [2606.07814].

This application also clarifies the relation between “quantum” and “quantum-inspired” leverage methods. HGLE is a hybrid pipeline in which the quantum device generates measurement samples, but the leverage-score computation itself is classical randomized linear algebra on the induced feature matrix. A plausible implication is that leverage-score approximation has become a reusable compression primitive across both quantum linear-algebra algorithms and variational-quantum workflows.

The current literature also records several extension paths. The HGLE discussion lists approximate or quantum-accelerated leverage-score estimation, integration with classical shadows or compressed sensing of quantum states, application to other VQAs such as molecular VQE and hardware-efficient circuits, and heuristics that adapt $r$ and $\tau$ on the fly based on spectral decay [2606.07814]. Together with the lower-bound and dequantization results, these directions place quantum leverage score approximation at the intersection of randomized numerical linear algebra, quantum algorithms for spectral problems, and hybrid optimization.

Source: https://www.emergentmind.com/topics/quantum-leverage-score-approximation