WorksPhysics and Astronomy
A Realistic End-to-End Runtime Crossover Estimation for Quantum-Enhanced Training of Large-Scale Machine Learning Models
Abstract
Machine Learning (ML) is one promising application domain for Quantum Computing (QC) speedups, but asymptotic complexity considerations often mask the actual engineering costs of actual end-to-end workflows. For the use case of training a linearized Neural Network with a Quantum Linear Solver, a provably favorable quantum scaling has been suggested. We present realistic resource estimates for this problem, accounting for data access, computation, and readout. Our analysis examines three increasingly complex benchmarking scenarios, under distinct sparsity-scaling assumptions, thereby enabling progressively more realistic resource estimates. We identify crossover regimes relative to classical methods and find that crossover points emerge only for very large problem sizes, long computation times, and highly restrictive output requirements. This work provides a blueprint for evaluating quantum-enhanced ML algorithms under realistic hardware constraints and help identifying the bottlenecks that must be overcome to approach industrial quantum utility.
Introduction
Training modern machine learning (ML) models and, in particular, large language models (LLMs) has become one of the most computationally demanding workloads in artificial intelligence. Publicly reported training runs illustrate this scale: the 65-billion-parameter LLaMA model was trained for approximately 1.032 million A100 GPU-hours (21 days on 2,048 A100 GPUs), while the full training run of DeepSeek-V3 is reported to require 2.788 million H800 GPU-hours [1, 2]. The resulting financial cost and time effort demand fundamentally more efficient training methods.
Fault-tolerant quantum computing may provide one such route. A growing body of theoretical work analyzes fault-tolerant quantum algorithms with provable asymptotic speedups for computationally demanding ML tasks [3], including training [4, 5], formal verification [6], and sampling [7]. Liu et al. [5] provide, to our knowledge, the first theoretical demonstration that quantum computing can exponentially accelerate the full training routine. This approach reformulates stochastic gradient descent (SGD) as a dissipative quadratic ordinary differential equation (ODE), applies Carleman linearization, and solves the resulting lifted-history system using a fault-tolerant quantum linear solver (QLS) algorithm such as HHL. Under its asymptotic assumptions (and certain simplifications we discuss in detail in this article), this construction promises a complexity that scales only polylogarithmically with the number of neural network (NN) parameters, in contrast to a linear scaling achieved by the best known classical algorithm.
However, an asymptotic speedup alone does not establish a practical quantum advantage. The analysis of Liu et al. [5] focuses on complexity arguments and does not provide an end-to-end quantitative estimate of the pipeline’s resource requirements. In particular, the costs of oracle queries, logical operations, tomography and classical preparation can substantially change the comparison with classical methods. Consequently, the crossover points (the problem scales at which the total cost of the quantum pipeline becomes favorable relative to classical baselines) remain undetermined.
Our work addresses this gap and provides a full end-to-end resource estimate that explicitly accounts for these components. We compare this complete quantum pipeline against both the direct classical counterpart (ODE solver) and a non-linearized standard training approach, namely SGD. This way, we consider three benchmarking scenarios of increasing realism, each based on different assumptions about sparsity scaling and implementation costs. By accounting for all relevant processing steps, our resource model is able to establish practically relevant crossover points between CPU and QPU1 scenarios in terms of wall-clock runtime and NN parameter size.
Our results show that a realistic quantum speedup requires several demanding conditions to be satisfied simultaneously, particularly concerning favorable sparsity scaling and low gradient construction overheads. On top of this challenge, the crossover points identified under our benchmark assumptions lie in resource regimes of very large compute times ( seconds) and NN model sizes ( parameters) for the full training pipeline. Based on those findings, we discuss, if such assumptions could be feasible for realistic training pipelines and near-future fault-tolerant quantum hardware. Our analysis therefore translates an asymptotic proposal into quantitative conditions for practical quantum advantage.
Related Work
Liu et al. [5] provide an explicit claim in which a QLS is used in certain steps of NN training. It reformulates SGD as a dissipative linear ordinary differential equation (ODE) and determine a complexity of in the model size , the number of training steps and allowed error . The proposed pipeline requires dissipativity, sparsity, and a sufficiently small learning rate. Our work extends [5] by pinpointing the regime in terms of , in which the proposed pipeline can surpass their (best) classical alternatives in terms of runtime.
With the recent advances in quantum hardware and a slow transition into Early Fault-Tolerant (EFT) era [8], more scientific inquiry has been directed towards practicality of (Fully) Fault-Tolerant (FFT) algorithms. Babbush et al. [9] show that quadratic speedups are unlikely to survive the required Quantum Error Correction (QEC) overhead when the classical alternative can be parallelized. In an end-to-end analysis of Quantum Interior-Point methods, Dalzell et al. [10] find that large prefactors, poor conditioning, and extracting the final state via tomography eliminate the advantage. Hoefler et al. [11] study the
crossover for a wide range of FFT algorithms and conclude that practical quantum advantage is not plausible for a many proposed FFT application without significant algorithmic improvements, particularly enforcing light-weight input and output subroutines and striving for superquadratic speedups. It is therefore essential to perform an end-to-end estimation of the FFT application to determine the conditions for a practical quantum advantage, which is the goal of this work.
Building on this, here we focus on QLS application, for which Scherer et al. [12] provided one of the earliest concrete resource estimates. An explicit end-to-end runtime estimate of the FFT algorithm against a classical ODE method was performed by Tu et al. [13]. Their analysis, however, considers a generic use-case, treats the condition number and sparsity as free parameters, and omits the costs of state preparation, oracle implementation, and output recovery. In contrast, our work builds on [13] but tailors the estimate to a specific use-case from [5], computing the full end-to-end cost and comparing it against both the classical ODE method and SGD costs.
The assumptions required for asymptotic speedups in quantum linear solvers have been discussed extensively. Aaronson [14] discusses the input and output, sparsity, and condition-number assumptions that determine whether the exponential speedup of HHL [15] can be retained. [16]
Background
Classical Pipeline
This section first describes the classical workflow that approximates the gradient descent training process as the solution of a linear equation, updating all parameters at once.
Carleman Linearization
Gradient-descent dynamics. Let be a loss function for a model with parameter vector . The starting point is the discrete gradient-descent update
Here, is the learning rate. Stochastic gradient descent (SGD) can be represented by allowing coefficients in the update rule in a training step to depend only on a single, randomly selected sample or a small batch of examples from the dataset, instead of the entire dataset. We denote as base SGD pipeline a workflow that uses the update in Eq. (1) for the time steps .
| Symbol | Meaning |
| Model parameter or state dimension. | |
| Carleman truncation order, at which a polynomial update of degree is cut off. | |
| Number of training-update intervals. | |
| Lifted dimension . | |
| Matrix dimension with history, . For the one-sparse Hamiltonian-simulation (HS1), we use . | |
| Maximum number of nonzero terms in one original update equation. | |
| Sparse-access complexity of a history matrix, e.g., for matrix or for the HS1 resource model. | |
| Condition-number input used in the HS1 resource model. | |
| Generic target error tolerance used in asymptotic complexity statements. | |
| are the blockwise and stacked Carleman-truncation errors. We use for the quantum-state error and the corresponding HS1 resource-model input. is the target error of the tomography/readout stage, and the relative error of the classical CGNE solution. | |
| SGD batch size. | |
| Number of nonzero entries in the parameter vector when preparing the initial state. | |
| Support of the normalized terminal output amplitudes, i.e., the largest amplitudes. | |
| Learning rate. |
Table 1. Overview of notation symbols used in this article.
A Carleman-linearized pipeline [5, 17] aims to map the above updates to a linear system of the form , where is some representation of the model parameters for the entire time sequence of steps. Hence, solving the resulting linear system is equivalent to solving the full gradient descent dynamics at once. Since is in general a highly non-linear function of , this linearization comes at the cost of truncation errors, which are controlled under certain conditions, e.g., related to the dissipation properties of the Carleman matrix (see § 1.4).
Polynomial form of the update. Let us define , . If the gradient update is a polynomial of degree in the parameters, or is approximated by such a polynomial, then Eq. (1) can be written as
Here, denotes the -fold tensor (Kronecker) product of with itself, i.e., , with components . For example, by convention, , while the second tensor power is . The coefficient tensors contain the polynomial coefficients of the gradient update. Explicitly, they are the Taylor coefficients of the gradient-update map expanded around a reference point (say ):
The leading terms are the first, and second derivatives, respectively, , and , where is the loss Hessian. The tensors contain higher derivatives of the loss, which in practice are typically small.
Carleman lift. The nonlinearity in Eq. (2) arises from the tensor powers . Carleman linearization promotes each tensor power to an independent coordinate. The resulting lifted system is
In Eq. (3), is the quantum Carleman matrix (QCM). For the -th block equation, Eq. (2) is inserted into each of the factors of . This produces linear couplings from tensor order to tensor orders .
The lifted system is formally infinite, so in practical settings it must be truncated at tensor order . The truncated lifted vector is defined as
while the dimension of the truncated QCM becomes
The omitted higher-order tensor powers produce the Carleman truncation error. In the strictly discrete setting, products of one-step increments also generate corrections scaling as [5]. The small-learning-rate assumption ensures that these corrections remain controlled.
Linear training system. Writing the truncated version of Eq. (3) as
the time slices can be stacked into one block lower-bidiagonal linear system:
Here,
The first block row fixes the initial condition, while each later block row implements one lifted gradient-descent step. For a time-dependent stochastic update, the corresponding and are used in the block row for time step . We have therefore transformed the problem into a linear system of the form
with , and . An HHL-type quantum linear-system solver can prepare an amplitude encoding of the solution to Eq. (5). Reading out the first block of elements in eventually gives the desired parameter vector, .
Quantum-enhanced pipeline
The quantum pipeline refers to the application of a quantum algorithm, here the HHL [15] solver used in [5] and adopted in our work, to produce a solution to this equation.
HHL fundamentals. In Eq. (6), is a non-Hermitian history matrix that requires a solver-compatible embedding, assumed structured-access parameter , and condition number . HHL prepares a quantum state proportional to the solution : a clock register is used for phase estimation to access the eigenvalues of , which a controlled rotation then inverts in the main register holding . Provided has structured access parameter and is efficiently simulable, this state is obtained to precision in time [15], an exponential speedup in over classical solvers such as the conjugate gradient method.
Liu et al. [5] describe their solver as a variant of the HHL algorithm [15], whose general form they take from [18]: given a sparse matrix oracle for and an oracle for , it produces the state to error using gate complexity , where .
If the Carleman matrix is fully dissipative, i.e. , they show that the condition number is linearly bounded by the number of iterations, , so that, together with the cost of the sparse matrix oracle for , the resulting gate complexity is .
This asymptotic statement carries no explicit constants. Query-count constants for such solvers exist [19], but no fault-tolerant, surface-code-level resource estimate has been published for the solver of [18]. The cost model of Section 4 therefore prices the phase-estimation solver of [13], which is the only quantum linear-system algorithm with a published estimate of that kind. That solver scales as rather than , so our estimates are conservative with respect to the algorithm Liu et al. invoke.
If instead contains divergent modes, i.e. eigenvalues with , this linear bound on no longer holds, and [5] instead deploys a truncated variant that reuses the ill-conditioned-eigenspace filtering technique from the discussion section of [15]: an auxiliary qubit separates eigenspaces with from those with , for a chosen effective condition number , and the state is postselected onto the well-conditioned branch. Choosing gives the gate complexity .
Oracle problem/input encoding. The gate complexities discussed above are stated relative to two oracles: a sparse matrix oracle for the history matrix , and an oracle for . Efficient preparation of the initial state is essential for applying HHL. In general, this may require QRAM [20], whose large-scale realization remains challenging. Under sparse training, this requirement is relaxed: since retains bounded support independent of the model size, it can instead be loaded without QRAM, using sparse-state-preparation circuits that load an -sparse vector of dimension with classical preprocessing and a quantum circuit of depth composed only of single-qubit and CNOT gates [21]. For the matrix oracle, Liu et al. relate the sparsity of the QCM to the underlying machine-learning architecture: pruning the network so as to reduce the number of non-zero terms in each gradient-update function correspondingly bounds the number of non-zero entries per row of the truncated . This provides the sparsity input required for the matrix oracle.
Tomography problem/readout. The solver returns the trained weights only as amplitudes of a normalized quantum state, so a dedicated readout stage is required, and its cost can dominate the solver itself. Liu et al. analyze this step explicitly via a two-stage sparse readout. First, the support of the significant weights is identified by computational-basis sampling, a weighted coupon-collector process requiring measurements, with a threshold caveat for vanishingly small weights. Second, the amplitudes, including phases, are recovered by a Clifford classical-shadow scheme at cost in -norm error , plus polynomial classical post-processing [5, 22]. The construction is efficient only if the output sparsity does not grow with the model size . For dense outputs the same scheme recovers the largest components, which the authors interpret as an intrinsic pruning step. Conversely, taken to the dense endpoint limit , the recovery cost becomes cubic in the output support, and even optimal full tomography requires copies [14], so full-vector readout would erase the solver’s polylog() advantage. The output sparsity and the readout tolerance therefore replace the Hilbert-space dimension as the scaling variables.
Dissipation and sparsity
Dissipation requirements Independently of the subsequent linear solver, the Carleman approximation is error-bound only under certain assumptions. As higher order gradients beyond are truncated in Eq. (2), it needs to be ensured that the remaining gradient terms drive a parameter trajectory that does not diverge from the original one, i.e., the accumulated errors are well-controlled and bounded over the considered training interval.
The truncation error can be defined blockwise by , , where is the th block of the order- truncated lifted system and is the corresponding tensor power of the exact nonlinear trajectory, and . Dissipativeness does not control the magnitude of the truncation terms themselves, but their propagation through the lifted dynamics. Following Liu et al., the linearization error satisfies , where contains the omitted tensor orders above the truncation boundary ([5], II.19). The coefficients determine both the QCM and the boundary forcing ; however, these quantities play distinct roles. The bound on quantifies the error newly injected by truncation, whereas determines whether errors injected at previous steps decay or are amplified. If the QCM is fully dissipative, , then the propagation is contractive and
Thus, a truncation produces an error that remains bounded uniformly in the number of training steps. Increasing the truncation order reduces the newly generated error while dissipativeness prevents its accumulation over time.
Full dissipation can be also phrased as the condition where are the individual eigenvalues of the QCM, . If all eigenvalues of are negative and small (), the system is fully dissipative. We can further map this to the eigenvalues of the Hessian, assuming that this is the dominant order and in the QCM: The diagonal QCM block at tensor order is then a Kronecker sum of copies of . It therefore has eigenvalues , where are the Hessian eigenvalues. Under the given assumptions, dissipation requires , or equivalently . This is for example given, if all eigenvalues of are positive, and the is sufficiently small.
In not fully dissipative systems, the truncation error can still be controlled over a finite time of steps , e.g. by eigenvalue engineering, adjusting the truncation order or the learning rate. For simplicity, however, we will consider only fully dissipative systems in this article.
Sparsity requirements Sparsity plays a critical role at several distinct stages of the overall Carleman-linearized workflow to preserve the polylogarithmic quantum speedup:
1) Gradient Calculation for the Carleman Matrix: For a dense model with parameters, explicitly constructing a Carleman system truncated at degree requires handling a lifted space of size . This scaling can only be avoided if the Carleman matrix is not constructed explicitly: instead, the original dynamics must be sparse, meaning that each update equation contains only a small number of nonzero terms, and these terms must be generated on demand by an efficient sparse-access oracle. Under this assumption, the truncated QCM has row sparsity rather than [5]Theorem V.1, Eq. (V.98). These assumptions are plausible for systems with local, bounded-degree interactions or compact rule-based descriptions, but they are strong for general NN: pruning weights alone does not guarantee efficient access to the remaining coefficients, and reading an arbitrary sparse model can still cost time. Hence, a potential quantum advantage additionally requires a compact oracle representation, sparse input and output weight vectors, sufficiently stable (dissipative) dynamics, and an efficient procedure for recovering the desired classical output.
2) State Preparation and Input Encoding: Uploading the initial sparse weight vector to the quantum device would normally require Quantum Random Access Memory (QRAM), which is a challenging hardware assumption. Because retains a bounded, sparse support independent of the model size , it can instead be loaded efficiently using sparse-state-preparation circuits of depth without requiring QRAM [5, 21].
3) Matrix Oracle and HHL Simulation: The HHL algorithm’s runtime scales polynomially with the row sparsity of the matrix oracle. By pruning the NN to reduce non-zero terms, the sparsity of the QCM is correspondingly bounded. This provides the critical sparse-access parameter required for the matrix oracle. If the QCM were dense, the query overhead would negate the exponential speedup in the matrix dimension.
4) Tomography and Readout: The quantum solver outputs the trained weights as amplitudes of a quantum state. Extracting the full dense state would require measurements, erasing the poly-logarithmic advantage [5, 23]. Instead, a two-stage sparse readout is used. First, the most significant weights are identified via computational-basis sampling. Second, their amplitudes are recovered via a classical-shadow scheme with a cost scaling as . This readout remains efficient only if the output sparsity does not grow with the model size , which intrinsically acts as a final pruning step.
Method
We develop a three-level cost comparison between quantum and classical approaches as defined in Figure 1, ordered by increasing scope and complexity. The cost computation for each component is described in § 2.1. The crossover computation is given in § 2.2, and the setup of the entire pipeline is described in § 2.4. The comparison is designed to make the bottlenecks of the pipeline more transparent as we can see how far a crossover point moves with increasing complexity.

Figure 1. Overview of the different training approaches of a NN considered in this work, including training with SGD (left in gray), Carleman linearized approach from [5] with a classical CGNE solver (right in gray) and with a quantum HHL solver (right in green). Overview of the scope of different benchmarking levels (Level I–III) are marked in blue.
Resource estimates
To estimate an algorithms wall-clock execution time in seconds, we must determine the total number of relevant operations and either the time required to execute each operation or the corresponding execution rate. As summarized in Table 2, for classical algorithms, we consider Floating Point Operations (FLOPs) and the corresponding processing rate on the classical system, while for the quantum algorithm, we consider the number of -gates within the quantum circuit and the gate times , since the -gate is the most expensive gate in universal fault-tolerant quantum computation.
| Classical | Quantum | |
| # of operations | (FLOPs) | (-gate count) |
| Time constants | (rate) | (gate time) |
| Time (seconds) |
Table 2. Estimation of the wall-clock execution time for classical and quantum algorithms. The classical time is obtained by dividing the total number of floating-point operations, , by the classical processing rate, , while the quantum time is estimated by multiplying the number of -gates, , by the time required to execute a single -gate, .
Classical training (SGD). We estimate the cost of training a NN with parameters by stochastic gradient descent. As the operational execution costs in terms of FLOPs depend on the model architecture, we have to make further assumptions. Following [5], we choose ResNet [24] as a representative architecture, where the convolutional layers dominate the costs. Those include forward pass, backward pass, and the optimizer update. We denote by the forward FLOPs per parameter and sample, and by the ratio of the training FLOPs, forward and backward pass, to the forward FLOPs. The backward pass costs approximately twice as much as the forward pass, so we assume [25]. The value of for the reference network is determined empirically in § 2.4. Each parameter update adds around 2 FLOPs. One window of steps with batch size thus requires
which is part of Level III benchmark (see Figure 1).
Classical pre-processing (Carleman Linearization). Within one window, the solver propagates all steps from a single linearization point. The gradient that enters the expansion of the update is therefore evaluated only once per window, whereas SGD evaluates a gradient at each of the steps. One such gradient evaluation costs
FLOPs. Those costs have to be considered when solving the full linearized training pipeline. Note that Eq. (7) and Eq. (8) are the only points in our analysis, where explicit assumptions about the NN architecture enter. Our scaling study can be applied to any other model architecture, by adjusting those steps accordingly.
Classical LS (CGNE). Here, we estimate the cost of solving the linear system with classical Conjugate Gradient on the Normal Equations (CGNE), following the approach in [13]. It solves the lifted system of dimension
One CGNE iteration performs two sparse matrix-vector products at FLOPs each, three vector summations at FLOPs each, and FLOPs for computing and , that is, FLOPs in total [13]. Following this, CGNE reaches the relative error after iterations [13]. We set . Hence
where carries the dependency in . This cost is part of Level I and Level II benchmarks (see Figure 1).
Quantum LS (HHL). Here, we estimate the cost of solving the linear system with HHL following the approach in [13]. It solves the lifted system of dimension Eq. (9) instead of performing classical training, similar to CGNE. To compute the number of required -gates, we follow the approach of [13]. Firstly, we determine the number of 1-sparse Hamiltonian simulation (HS1) for HHL with sparsity , condition number and required error rate as
We then multiply by the number of -gates per HS1 as [13]
which is part of Level I–III benchmarks (see Figure 1). Here, is the number of precision qubits. Since the history matrix is not Hermitian, the construction requires a Hermitian dilation.
The spectrum is , and the singular-value condition number is preserved. The compatible equation is [15]. We use later also the notation .
Quantum input (state-preparation). Here, we estimate the cost of state preparation for HHL. Let denote the -gate cost per query. Then the oracle cost is
which is part of the Level II–III benchmarks together with the cost of the HHL solver from Eq. (12) (see Figure 1) such as
Quantum readout (shadow tomography). Here, we estimate the cost of shadow tomography for HHL, which is part of the Level II–III benchmarks (see Figure 1). Each measurement destroys the state, so every copy requires a new run. Only the first-order block at the last step of the solution vector holds the weight update, so counts accepted copies, that is, measurements that land in this terminal block, and the rejected ones are not priced. The readout follows the two steps of [5]. Support discovery measures in the computational basis until all nonzero weights have been observed, a coupon collector’s problem with measurements in expectation. The amplitudes are then recovered with the Clifford-shadow scheme of [5, 22]. Together, this requires
which together with Eq. (15) result in the cost of full quantum solver of Level II–III benchmarks as
Solution pipelines scalings
In Level I, we only compare the core linear solvers in both the classical and the quantum pipelines, see Figure 1. On the quantum side, this means solving an already prepared linear equation in a single run. By Eq. (11), is proportional to , since the condition number and the precision do not depend on or and hence enter only as a constant [13] where . For large , , so that the sparsity grows quadratically with . The history register has qubits and thus contributes only a logarithmic factor. Therefore, the core solver requires a wall-clock time scaling as (with Eq. (12)),
The classical reference on this level is the CGNE linear solver from Eq. (10),
On this level, as expected [13], the HHL solver scales favorably compared to the classical baseline.
For Level II, we include additional steps the quantum solver requires in a more realistic picture. In particular, this concerns the transformation interfaces between the quantum state and the classical world, represented by the state preparation of the HHL input and the quantum tomography readout which requires running various copies of the core solver. While the state preparation can be done efficiently in (see Eq. (15)), the readout changes the scaling in . For large , the tomography term in Eq. (16) dominates and one has copies. The full quantum solver then achieves a wall-clock time of (see Eq. (17)),
The classical comparison is the same as in Eq. (19). The quantum window cost therefore still has a favorable scaling in , compared to the classical baseline, but the creates harsher constraints on the sparsity. If one assumes a sparsity that is a power fraction of the model parameters itself – meaning (see § 3) – a upper bound of is identified to protect the scaling in .
At Level III we compare the entire training pipeline. Most importantly, the gradients that form the linearized Carleman matrix have to be derived first, with costs proportional to , see Eq. (8). The quantum-supported linearized training pipeline then scales as
In comparison, the classical SGD baseline from Eq. (7) reads for Level III
The gradient preparation step ultimately leads to the same linear scaling in for both the quantum and the classical pipeline, thus erasing any large-scale quantum advantage. We discuss in § 4, in which scenarios the cost of gradient preparation might be alleviated and how intermediate crossover regimes might still be relevant for possible quantum speedups. The quantitative crossovers for the described concepts are derived in § 3.
Sparsity scaling
Since sparsity is one of the key assumptions of this approach (see § 1.4), each benchmarking scenario (Level I–III) is evaluated under different assumptions about the system’s sparsity . These range from a constant sparsity that is independent of the model size – such as , which constitutes a highly optimistic assumption – to more realistic scaling models in which the sparsity depends on the number of NN parameters . Examples include pruning the NN to 10% of its size, corresponding to , as well as alternative scaling laws such as and .
Experimental setup
Neural Network setup. Our representative architecture is a ResNet model [24], where most of the compute is attributed to convolutional layers. For the cost analysis of Eqs. (7) and (8) we use batch size and a time horizon of for this benchmark. A dense layer yields , whereas a convolutional layer has a larger value, because each kernel weight is reused at every output position. The reference ResNet has depth 32 and widen factor 4 [5]. Counting the FLOPs of its matrix products and convolutions for inputs gives . We find this value to be empirically stable also under architecture variations with different amounts of layers.
Classical computational rate. We set the classical computational rate to operations per second [13]. Counting FLOPs makes the classical cost independent of the hardware, but it does not capture memory access or hardware utilization [26]. The classical times are therefore estimates of the arithmetic work and not measured runtimes.
Quantum gate time. We assume that distilled magic states are available on demand and neglect their preparation time. The logical -gate time is set to , corresponding to a single cycle [13] which is the time required to implement the gate using a distilled magic state.
HHL setup. For the precisions . Further, we set , and the query cost is .
The cost model. We assume that the coefficient tensors can be computed analytically up to truncation order and that the weight vector remains sparse [5]. We grant dissipativity instead of verifying it, so that the pipeline is priced conditional on , which can be observed empirically in early training but is not guaranteed at every stage of training or for an arbitrary model [5]. From this assumption follows the condition-number bound [5]. As in [13], the oracle supplies the history matrix as a sum of one-sparse terms.
The quantum window returns normalized amplitudes of the weight update, while SGD returns all weights, so Level III compares neither equal outputs nor equal model quality. Both pipelines use the same dense gradient.
RESULTS
Realistic resource estimation
Level I: Solver Core Figure 2(left) isolates the quantum linear-system solver core against the classical CGNE algorithm applied to the lifted system of dimension . For , the HSI solver achieves a crossover with CGNE at approximately parameters and seconds. This crossover reflects the fundamental algorithmic advantage: the quantum solver scales as compared to CGNE’s scaling. Both exhibit proportional dependence on the matrix sparsity , but the exponential gap in dimension dominance emerges for sufficiently large systems. At and , the crossover occurs at the minimal admissible dimension , indicating that sparse-support constraints become the limiting factor rather than system dimension.

Figure 2. Level I – III for the constant sparsities (blue), (green) and (purple) at , , FLOP/s, ns. Solid curves are the quantum estimation, dashed curves the classical one, the colour gives , and a lower curve means a faster runtime. Level I (core solver): HHL vs CGNE solve of the lifted history system . The core grows only as , CGNE as , and both scale with , so the crossover point for , while for and the quantum core is already cheaper at the smallest admissible size . Level II (full solver): HHL with state preparation and tomography vs CGNE solve. Every copy repeats the run and grows as , so moves with . Level III (full pipeline): HHL with state preparation and tomography plus classical preprocessing vs steps of SGD (black). The quantum curves stay nearly flat until the one classical gradient calculation per window dominates.
Level II: Full Solver When accounting for repeated state preparation and destructive measurement (Figure 2(middle)), the quantum advantage erodes significantly. Here, grows as due to tomography requirements (Eq. (16)), while the per-run cost remains proportional to . The combined cost thus scales as . The crossover point now depends strongly on : for it occurs near and seconds, while for it shifts to and seconds. This -dependence reveals that readout becomes a severe bottleneck, amplifying the challenge of extracting quantum advantage. The readout overhead dominates the solver cost by multiple orders of magnitude.
Level III: Full Pipeline The most realistic comparison (Figure 2(right)) adds one classical gradient evaluation per window to the quantum costs and compares the result against steps of standard SGD on a CPU. Under the assumption of constant sparsity (), the crossover moves to . While the sparsity constraints in Level I/II shift the crossover points towards larger model and time horizons, they do not change the asymptotic scaling in . Classical pre-processing in the full Level III pipeline, however, adds a linear dependency in to the workflow (same as the classical SGD), which originates from the need to prepare the Carleman matrix with gradients calculated from the loss function for each parameter. This reduces the possible quantum advantage in this asymptotic regime to a mere off-set. In this scenario, only an intermediate crossover regime is left as an interesting window of practical speedups. However, this crossover occurs at compute times exceeding seconds ( years), well beyond any practical training regime.
Summary The central observation is that practical quantum advantage exists only under highly restrictive conditions. Level I shows that the solver core alone can outperform classical linear solvers at modest system sizes. However, once realistic readout costs are included (Level II), the required model size increases by more than three orders of magnitude. Finally, when the full training pipeline is considered (Level III), achieving advantage requires either extremely sparse outputs, extremely large models (), or extremely long training horizons ( s). These conditions are mutually impractical for NN training. However, note that this analysis assumes sequential processing; parallelization would significantly affect the estimated crossover, as discussed in § 4.
Effect of sparsity scaling
Figure 2 assumes that sparsity remains constant as the system dimension increases. This is a strong assumption, so in Figure 3 we investigate sparsity functions that depend on . The results show that a sparsity of is too demanding for HHL as under this scaling, neither the Level II nor the Level III comparison exhibits a crossover. Unlike the 10% scaling law, the other scaling laws exhibit similar behavior to one another, with crossover points at comparable positions. Their crossover points are more favorable than those in Figure 2, in particular for the Level II benchmark.
Figure 3. Level I – III for sparsity laws that grow with the model, and , and the fixed fraction as reference, at , , FLOP/s, ns. Line styles, markers and exclusions as in Figure 2. In the right panel, a crossover requires to grow slower than . The steps of the curve come from the integer support and the integer copy counts.
DISCUSSION
While many previous works make strong assumptions and predict substantial asymptotic improvements over classical routines, we constructed a complete end-to-end pipeline and evaluated its concrete performance. For the pipeline considered here, the current estimates indicate that the crossover point lies beyond practical limits. Nevertheless, these results provide a needed benchmark for future quantum software and hardware development in order to bring the crossover point within reach.
Bottlenecks
Bottlenecks. Within the described approach, we identify the two main obstacles for a practical quantum advantage.
First, the full quantum-supported training pipeline at Level III requires access to the polynomial coefficient tensors , which means calculating the loss function gradients for each parameter. This incurs a cost of order that erases the favorable scaling of the HHL core solver. This overhead could only be avoided if the update rule admits a compact, structured representation, for example, through locality, sparsity, parameter sharing, symmetries, or an analytically specified polynomial dynamics, that permits the required nonzero coefficients to be generated on demand by the matrix oracle. In such settings, gradients and higher-order coefficients need not be explicitly derived or stored as dense tensors. For generic dense NN losses, however, no such construction is available. A possible silver lining might be in intermediate regimes. Our findings in § 3 suggest that – accepting the long-tail linear-in- scaling at Level III – quantum support can still provide relevant quantitative speed-ups. For example, we see in Figure 2 that just beyond the crossover point follows a model size window with the maximum positive gap in wall-clock time. Depending on the configuration setting and sparsity, this regime may well save a few orders of magnitude in compute time, which is an opportunity in itself.
Second, a growing number of non-zero entries shifts the cross-over points to practically infeasible regimes, see § 3. Choosing small , however, defies the purpose of training large-scale models, as it means that a vast majority of trained network parameters are zero. The cost in is largely driven by the tomography step (). The approach therefore demands more efficient tomography methods, or alternatively, the classical pipeline around the quantum LS solver could be redesigned to process partial solutions, potentially eliminating the need for tomography.
Limitations and future work
Limitations and future work. Our analysis comes with a number of conceptual limitations, which should be stated explicitly.
ML training pipeline: We focus on the proposed ML training pipeline from [5] and therefore inherit its limitations. For example, the assumption of a fully dissipative model, required for the error and condition-number bounds used here, is highly restrictive. In this setting, the loss Hessian cannot have any negative or zero eigenvalues, an unnatural requirement for typical NNs that
necessitates special preparation. Additionally, the linearized pipeline relies on theoretically derived error bounds for parameter trajectories, but even small deviations in these trajectories could possibly imply significant differences in the trained network’s performance. It is out of scope for this work to evaluate the accuracy of models whose parameters are trained using the different pipelines. To add to that, we generally assume a training window of time steps. Generally, this will not be sufficient for a realistic training pipeline, which is why [5] describes a step-wise approach, where multiple Carleman bursts are performed in sequence, each with additional pre- and postprocessing. A possible speedup is expected only within a Carleman window.
Classical and quantum baselines: In this work, we focused on specific algorithms for cost estimation. However, CGNE may not be the most efficient classical solver for general linear systems [27]. Similarly, other QLS may offer more favorable scaling or relax demanding assumptions about sparsity or error bounds [28, 29], as well as other tomography methods [22, 30] may be more resource-efficient. In future work, we plan to investigate alternative baselines and assess how they affect the crossover point.
Cost model abstractions: To avoid excessive complexity, we make several abstractions. On the classical side, our cost model omits memory wall problem and hence intermediate operations such as memory allocation, data transfer, and data writing, as well as bandwidth bottlenecks. Additionally, we considered hypothetical NN sparsity functions. Investigating how sparsity scales in practice would help contextualize our findings. On the quantum side, it abstracts away magic state distillation, the effects of the specific QEC method, and differences between quantum hardware (e.g. between superconducting and ion-trap qubits). Additionally, the analysis counts only accepted copies in the terminal block. The fraction of accepted shots can be increased by appending idle steps to the linear system, which also increases the condition number, or by amplitude amplification [17, 31]. These steps, the rejected shots and the repetitions needed for the success probability of the HHL solver itself are not priced. Future work could incorporate these omitted steps to provide even more realistic crossover estimates.
Cost model parameters: We use estimates from [13], which assume a relatively pessimistic CPU speed ( FLOP/s) and an optimistic QPU speed ( ns per cycle), even for superconducting hardware.
Moreover, the CPU benchmark is not representative of typical real-world applications. We discuss parallelization below and leave the development of more realistic cost estimates to future work.
Parallelization. The reported crossover times seem prohibitively large, however, they must be interpreted as CPU estimates rather than as GPU or HPC2 wall-clock predictions. Efficient parallelization could drastically reduce the wall-clock time.
Such techniques are well established on the classical side. Classical SGD can exploit data, tensor/model, and pipeline parallelism, allowing GPU clusters to convert large aggregate computational costs into substantially shorter wall-clock times, subject to communication, synchronization, and load-balancing overheads. The large-scale LLM training runs discussed in the introduction illustrates it: the approximately GPU-hours used for LLaMA-65B correspond to about 21 days of elapsed time when distributed over hundreds of GPUs, a reduction in wall clock time of more than three orders of magnitude. With similar methods, the crossover times reported in this study could be reduced drastically.
On the quantum side, such a parallelization of quantum algorithms and distributed QC is an active research field [32, 33, 34]. However, its practical application particularly for QLS remains to be demonstrated. These challenges span several layers. Architecturally, modular fault-tolerant designs must support cross-module error correction and synchronization. At the hardware level, low-latency quantum interconnects are required. At the logical level, distributed logical operations and sufficiently high magic-state throughput are needed. At the software level, compilers and runtimes must be able to partition and schedule work across modules. Finally, the resulting resource overheads must not offset the gains from parallelization. Future research should focus on strongly parallelized implementations of QLS, which could realize scaling improvements analogous to those that have enabled the sustained progress of classical computing and shift the crossover point into a more practically relevant regime.
Conclusion
In this work, we present an end-to-end resource estimate for a quantum-enhanced ML training pipeline [5] with the resource model of [13] at three comparison levels. Our results indicate that at the solver core level (QLS vs classical ODE comparison) quantum-enhanced pipeline can outperform classical counterpart pipeline at approximately model size. That result does not, by itself, imply a training advantage, as the first comparison level neglects the cost of the rest of the pipeline. At the full pipeline level (entire preprocessing and QLS vs SGD) for a reference ResNet model, the crossover is estimated at model size and seconds of computation time and is highly dependent on the sparsity of the model.
More broadly, this work provides a blueprint for evaluating quantum-enhanced ML algorithms under realistic hardware constraints. By making the full cost structure of the pipeline explicit, it identifies the specific engineering and algorithmic advances, such as lightweight input and output subroutines, more efficient tomography, structured gradient representations, and parallelization in quantum algorithms, that must be realized to move the crossover point into a practically relevant regime. We hope these results serve as a quantitative benchmark against which future quantum software and hardware development can be measured.
ACKNOWLEDGEMENTS
The research is part of the Munich Quantum Valley, which is supported by the Bavarian state government with funds from the Hightech Agenda Bayern Plus.
References
- [1]Hugo Touvron et al. “LLaMA: Open and Efficient Foundation Language Models”. In: arXiv preprint arXiv:2302.13971 (2023). URL: https://arxiv.org/abs/2302.13971.
- [2]DeepSeek-AI. “DeepSeek-V3 Technical Report”. In: arXiv preprint arXiv:2412.19437 (2024). URL: https://arxiv.org/abs/2412.19437.
- [3]Maria Schuld and Francesco Petruccione. “Fault-Tolerant Quantum Machine Learning”. In: Machine Learning with Quantum Computers. Cham: Springer International Publishing, 2021, pp. 247–272. ISBN: 978-3-030-83098-4. DOI: 10.1007/978-3-030-83098-4_7. URL: https://doi.org/10.1007/978-3-030-83098-4_7.
- [4]Zhikuan Zhao et al. “Bayesian deep learning on a quantum computer”. In: Quantum Machine Intelligence 1.1-2 (May 2019), pp. 41–51. ISSN: 2524-4914. DOI: 10.1007/s42484-019-00004-7. URL: http://dx.doi.org/10.1007/s42484-019-00004-7.
- [5]Junyu Liu et al. “Towards provably efficient quantum algorithms for large-scale machine-learning models”. In: Nature Communications 15.1 (Jan. 2024). ISSN: 2041-1723. DOI: 10.1038/s41467-023-43957-x. URL: http://dx.doi.org/10.1038/s41467-023-43957-x.
- [6]Nicola Franco et al. “Quadratic Advantage with Quantum Randomized Smoothing Applied to Time-Series Analysis”. In: 2024 IEEE International Conference on Quantum Computing and Engineering (QCE). Vol. 01. 2024, pp. 285–295. DOI: 10.1109/QCE60285.2024.00042.DOI
- [7]Guang Hao Low, Theodore J. Yoder, and Isaac L. Chuang. “Quantum inference on Bayesian networks”. In: Physical Review A 89.6 (2014). ISSN: 1094-1622. DOI: 10.1103/physreva.89.062315. URL: http://dx.doi.org/10.1103/PhysRevA.89.062315.
- [8]Amara Katabarwa et al. “Early Fault-Tolerant Quantum Computing”. In: PRX Quantum 5 (2 June 2024), p. 020101. DOI: 10.1103/PRXQuantum.5.020101. URL: https://link.aps.org/doi/10.1103/PRXQuantum.5.020101.DOI
- [9]Ryan Babbush et al. “Focus beyond Quadratic Speedups for Error-Corrected Quantum Advantage”. In: PRX Quantum 2 (1 Mar. 2021), p. 010103. DOI: 10.1103/PRXQuantum.2.010103. URL: https://doi.org/10.1103/PRXQuantum.2.010103.
- [10]Alexander M. Dalzell et al. “End-to-End Resource Analysis for Quantum Interior-Point Methods and Portfolio Optimization”. In: PRX Quantum 4 (4 Nov. 2023), p. 040325. DOI: 10.1103/PRXQuantum.4.040325. URL: https://doi.org/10.1103/PRXQuantum.4.040325.
- [11]Torsten Hoefler, Thomas Häner, and Matthias Troyer. “Disentangling Hype from Practicality: On Realistically Achieving Quantum Advantage”. In: Communications of the ACM 66.5 (2023), pp. 82–87. DOI: 10.1145/3571725. URL: https://doi.org/10.1145/3571725.
- [12]Artur Scherer et al. “Concrete resource analysis of the quantum linear-system algorithm used to compute the electromagnetic scattering cross section of a 2D target”. In: Quantum Information Processing 16.3 (2017), p. 60. DOI: 10.1007/s11128-016-1495-5. URL: https://doi.org/10.1007/s11128-016-1495-5.
- [13]Yue Tu et al. Towards identifying possible fault-tolerant advantage of quantum linear system algorithms in terms of space, time and energy. 2025. arXiv: 2502. 11239 [quant-ph]. URL: https://arxiv.org/abs/2502.11239.
- [14]Scott Aaronson. “Read the fine print”. In: Nature Physics 11.4 (2015), pp. 291–293. DOI: 10.1038/nphys3272. URL: https://doi.org/10.1038/nphys3272.
- [15]Aram W. Harrow, Avinatan Hassidim, and Seth Lloyd. “Quantum Algorithm for Linear Systems of Equations”. In: Physical Review Letters 103 (15 Oct. 2009), p. 150502. DOI: 10.1103/PhysRevLett.103.150502. URL: https://doi.org/10.1103/PhysRevLett.103.150502.
- [16]Boja Duan et al. “A survey on HHL algorithm: From theory to application in quantum machine learning”. In: Physics Letters A 384.24 (2020), p. 126595. ISSN: 0375-9601. DOI: https://doi.org/10.1016/j.physleta.2020.126595. URL: https://www.sciencedirect.com/science/article/pii/S037596012030462X.
- [17]Jin-Peng Liu et al. “Efficient quantum algorithm for dissipative nonlinear differential equations”. In: Proceedings of the National Academy of Sciences 118.35 (Aug. 2021). ISSN: 1091-6490. DOI: 10.1073/pnas.2026805118. URL: http://dx.doi.org/10.1073/pnas.2026805118.
- [18]Pedro C. S. Costa et al. “Optimal Scaling Quantum Linear-Systems Solver via Discrete Adiabatic Theorem”. In: PRX Quantum 3 4 (Oct. 2022), p. 040303. DOI: 10.1103/PRXQuantum.3.040303. URL: https://doi.org/10.1103/PRXQuantum.3.040303.
- [19]David Jennings et al. Efficient quantum linear solver algorithm with detailed running costs. 2023. arXiv: 2305. 11352 [quant-ph]. URL: https://arxiv.org/abs/2305.11352.
- [20]Vittorio Giovannetti, Seth Lloyd, and Lorenzo Maccone. “Architectures for a quantum random access memory”. In: Phys. Rev. A 78 (5 Nov. 2008), p. 052310. DOI: 10.1103/PhysRevA.78.052310. URL: https://link.aps.org/doi/10.1103/PhysRevA.78.052310.DOI
- [21]Niels Gleinig and Torsten Hoefler. “An Efficient Algorithm for Sparse Quantum State Preparation”. In: Proceedings of the 58th Annual ACM/IEEE Design Automation Conference. DAC ’21. San Francisco, California, United States: IEEE Press, 2022, pp. 433–438. ISBN: 9781665432740. DOI: 10.1109/DAC18074.2021.9586240. URL: https://doi.org/10.1109/DAC18074.2021.9586240.
- [22]Hsin-Yuan Huang, Richard Kueng, and John Preskill. “Predicting many properties of a quantum system from very few measurements”. In: Nature Physics 16.10 (June 2020), pp. 1050–1057. ISSN: 1745-2481. DOI: 10.1038/s41567-020-0932-7. URL: http://dx.doi.org/10.1038/s41567-020-0932-7.
- [23]Scott Aaronson. “Shadow tomography of quantum states”. In: Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing (STOC). 2018, pp. 325–338. DOI: 10.1145/3188745.3188802. URL: https://doi.org/10.1145/3188745.3188802.
- [24]Kaiming He et al. Deep Residual Learning for Image Recognition. 2015. arXiv: 1512.03385 [cs.CV]. URL: https://arxiv.org/abs/1512.03385.
- [25]Epoch AI. Backward-Forward FLOP Ratio. Accessed: 2026-08-19. 2024. URL: https://epoch.ai/publications/backward-forward-FLOP-ratio.
- [26]Brian R. Bartoldson, Bhavya Kailkhura, and Davis Blalock. “Compute-Efficient Deep Learning: Algorithmic Trends and Opportunities”. In: Journal of Machine Learning Research 24.122 (2023), pp. 1–77. URL: https://jmlr.org/papers/v24/22-1208.html.arxiv.org/abs/2210.06640
- [27]Ulrich Rüde. “Conjugate Gradient Methods are Not Efficient: Experimental Study of the Locality Limitation”. In: arXiv preprint arXiv:2601.10322 (2026). DOI: 10.48550/arXiv.2601.10322. arXiv: 2601 . 10322. [math.NA]. URL: https://arxiv.org/abs/2601.10322.
- [28]Danial Dervovic et al. Quantum linear systems algorithms: a primer. 2018. arXiv: 1802.08227 [quant-ph]. URL: https://arxiv.org/abs/1802.08227.
- [29]András Gilyén et al. “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. STOC 19. ACM, 2019, pp. 193–204. DOI: 10.1145/3313276.3316366. URL: http://dx.doi.org/10.1145/3313276.3316366.
- [30]Tobias Schmale, Moritz Reh, and Martin Gärtner. “Efficient quantum state tomography with convolutional neural networks”. In: npj Quantum Information 8.1 (2022). ISSN: 2056-6387. DOI: 10.1038/s41534-022-00621-4. URL: http://dx.doi.org/10.1038/s41534-022-00621-4.
- [31]Dominic W. Berry. “High-order quantum algorithm for solving linear differential equations”. In: Journal of Physics A: Mathematical and Theoretical 47.10 (2014), p. 105301. DOI: 10.1088/1751-8113/47/10/105301.DOI
- [32]Zhicheng Zhang, Qisheng Wang, and Mingsheng Ying. “Parallel Quantum Algorithm for Hamiltonian Simulation”. In: Quantum 8 (Jan. 2024), p. 1228. ISSN: 2521-327X. DOI: 10.22331/q-2024-01-15-1228. URL: https://doi.org/10.22331/q-2024-01-15-1228.
- [33]Amir Hossein Salehi Shayegan. “Design parallel and sequential quantum algorithms via spectral element method on distributed quantum architectures”. en. In: Sci. Rep. 15.1 (Dec. 2025), p. 44859.DOI
- [34]D Main et al. “Distributed quantum computing across an optical network link”. en. In: Nature 638.8050 (Feb. 2025), pp. 383–388.DOI
