Pith. sign in

REVIEW 3 major objections 6 minor 1 cited by

Knapsack Problem variants of QAOA for battery revenue optimisation

T0 review · 3 major / 6 minor · reviewed 2026-08-14 · deepseek-v4-flash

Pith's one-line read This paper tries to establish that a relaxed, non-Ising QAOA encoding of the knapsack constraint reaches about 0.95 of the optimal battery revenue with shallow depth (p ≤ 10) and shows exponential improvement in depth, whereas the Ising…

desk verdict The non-Ising QAOA with a reversible-arithmetic linear penalty is a real idea, but the paper's headline 0.95 claim is measured against the penalized objective, not the constrained knapsack optimum, so the performance claim needs re-scoring before it can be trusted. read the letter →

arxiv 1908.02210 v2 pith:CMI42ATK submitted 2019-08-06 cs.ET quant-ph

classification cs.ETquant-ph MSC 68Q1281P6890C27
keywords QAOAknapsackproblembatteryrevenueoptimisationnon-Isingobjectivefunctionlinearpenaltyconstrainednear-termquantumcomputingshallowcircuits
verification ladder T0 review T1 audit T2 compute T3 formal

The pith

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The reading

The paper studies two QAOA-based approaches to a battery revenue scheduling problem modelled as a knapsack problem. Its central claim is that a relaxed QAOA variant with a linear penalty, using a non-Ising objective function, reaches about 0.95 of the optimum with shallow depth (p ≤ 10) and exhibits exponential improvement as depth increases. The alternative constrained approach, which enforces the constraint through a quadratic Ising penalty, does not converge for intermediate depths up to p = 50. A careful reader would care because this is a concrete proposal for handling constrained industrial optimisation problems on near-term quantum hardware, with a circuit depth that grows only polylogarithmically in the problem size.

What carries the argument

The key object is the non-Ising target Hamiltonian whose phase operator U(C, γ) = $e^{{-iγ f(z)}}$ is built from four subroutines: cost calculation, constraint testing with a flag qubit, penalty dephasing, and reinitialisation by uncomputation. The linear penalty is enforced by rotating the flag-controlled phase by $e^{{iγα(cost(z)−Cmax)}}$, which makes the constraint violation enter the objective linearly rather than quadratically. This construction is what allows the relaxed approach to avoid the heavy quadratic penalty that stalls the Ising formulation.

What would settle it

Run the relaxed QAOA on the same random instance family with n = 10 and p = 12 while re-optimising the angles β, γ instead of using the fixed schedule; if the average approximation ratio falls below 0.9, the claim that shallow fixed-schedule depth suffices would be contradicted.

Watch

Extended reading notes

Core claim

The central claim is that QAOA can approximate the optimal battery schedule by encoding the knapsack constraint as a linear penalty in the objective function rather than as a quadratic Ising penalty. The relaxed objective is f(z) = return(z) + penalty(z), where penalty(z) is zero when the cycle budget is respected and −α(cost(z) − Cmax) otherwise. The circuit uses O(n log n) qubits and has depth O(p(log n)^3), with the phase separation implemented through addition circuits, a constraint-testing flag, and controlled dephasing. Simulations on a qubit-level simulator report approximation ratios around 0.95 for p ≤ 10 and an exponential improvement in p, while the Ising constrained variant plateaus near 0.75 for p ≤ 50.

Load-bearing premise

The reported 0.95 approximation assumes that the fixed linear annealing schedule (β_k = 1 − k/p, γ_k = k/p) and the penalty coefficient α = 1 work on the small random instances tested; if these choices do not generalise, the exponential improvement and near-optimal ratios do not transfer.

Editorial extensions

If this is right

  • Battery revenue schedules can be approximated with shallow QAOA circuits using the relaxed non-Ising encoding, provided the fixed angle schedule is kept.
  • The quadratic-penalty Ising route is not effective for this problem at shallow or intermediate depth, so further work on constrained QAOA should consider linear penalty encodings.
  • The circuit's depth O(p(log n)^3) and qubit count O(n log n) make the approach implementable for small problem sizes on near-term devices.
  • Linear constraints of the form sum w_t z_t ≤ Cmax can be handled in QAOA by the flag-controlled linear penalty technique, not only for knapsack but for a wider class of constrained binary optimisation problems.

Reading between the lines

Editorial extensions of the paper, not claims the author makes directly.

  • If the observed exponential improvement in depth persists at larger n, QAOA with a linear penalty could become a competitive heuristic for small knapsack instances, though this remains to be tested beyond n ≤ 7.
  • The fixed linear annealing schedule (β_k = 1 − k/p, γ_k = k/p) is likely not optimal; re-optimising the angles could push approximation ratios higher or reveal a different scaling with p.
  • The penalty coefficient α = 1 was chosen arbitrarily; varying α could trade off constraint satisfaction against revenue and might be necessary for problems with different return/cost scales.
  • The same relaxation strategy could apply to other weakly NP-hard problems with a single linear constraint, such as subset sum, where Ising penalties are known to create heavy objective weights.
Share X Bluesky LinkedIn Reddit HN

Signed reviews

No signed human review yet.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, and a circularity audit.

Referee Report

3 major / 6 minor

Summary. The paper implements two QAOA variants for a battery revenue optimization problem modeled as a knapsack problem. The first variant enforces the capacity constraint through a quadratic penalty and an Ising reformulation, but simulations show non-convergent behavior for intermediate circuit depths. The second, 'relaxed' variant uses a non-Ising objective with a linear penalty, implemented with arithmetic and flag-qubit subroutines, and is claimed to run in O(p(log_2 n)^3) time with O(n log n) qubits. The main reported result is a roughly 0.95 approximation ratio of the optimal penalized objective at shallow depth (p <= 10), with an exponential improvement in the ratio as p increases. The paper concludes that the linear-penalty QAOA is a promising way to handle constrained problems with shallow circuits.

Significance. If the central claim is established after correcting the evaluation baseline, the paper would be a useful proof-of-concept for applying QAOA to constrained, non-Ising optimization problems. The proposed circuit construction for computing a linear penalty is novel and nontrivial, and the explicit complexity estimates (polylogarithmic depth in n, O(n log n) qubits) are valuable. The paper also provides concrete simulation tables over random instances and is honest about the arbitrary choice of alpha. However, the current evidence does not yet support the abstract's near-optimality claim because the reported ratios are measured against the penalized objective rather than the feasible knapsack optimum, and the statistical support for the exponential-improvement claim is thin.

major comments (3)
  1. [Section 5.1 and 5.3.2, Eq. (12)] The reported approximation ratios for the with-penalty experiments are measured against the penalized objective f(z) = return(z) + penalty(z), not against the original feasible knapsack optimum. Section 5.1 defines the ratio as 'the value of the output of the algorithm over the optimal value for the chosen target function,' and in Section 5.3.2 the target function includes the linear penalty with alpha = 1. A finite linear penalty does not enforce the capacity constraint: with Cmax = n, c_t^1 = 2, lambda_t^1 = 5, lambda_t^2 = 0, the all-M1 schedule has return 5n, cost 2n, and penalized value 4n, while the best feasible value is about 2.5n. Thus ratios near 0.95 against the penalized optimum do not imply 0.95 of the feasible optimum. The paper reports no constraint-violation rate and no comparison against the optimal feasible schedule. Re-scoring the simulated outputs against the feasible optimum is required before the abstract's claim can be accepted; the 'without penalty' experiments do not provide such a benchmark because they solve an unconstrained selection problem.
  2. [Section 5.3.2, Table 3 and Figures 17-18] The 'exponential improvement' claim is not statistically supported. The tables report only mean ratios over 1000 random instances, with no standard deviations, confidence intervals, or significance tests. The with-penalty results stop at n = 7 and contain missing entries for n = 6 at p >= 9 and for n = 7 at p >= 7, while the text refers to behavior for n = 8 without data. With one mean per condition, the reader cannot assess whether the apparent improvement with p is real or within sampling noise, nor can the functional form of the claimed exponential improvement be checked. The authors should report distributions or error bars and specify the fitted curve used to infer exponential scaling.
  3. [Section 2.2 and Section 5.3.2] The fixed linear annealing schedule beta_k = 1 - k/p, gamma_k = k/p and the penalty coefficient alpha = 1 are untested hyperparameters. The paper itself states that alpha = 1 is 'arbitrary.' Since the central near-optimality result depends on these choices, the claim should either be tested over a range of alpha values and at least one alternative angle schedule, or explicitly stated as conditional on these specific choices. Without such testing, the reported approximation ratios could be specific to this parameter setting rather than a property of the algorithm.
minor comments (6)
  1. [Section 4.4] The text says 'We present below two implementations to compute e^{-i*gamma*return(z)}' but the surrounding discussion is about the penalty part; this appears to be a typo for the penalty Hamiltonian.
  2. [Section 4.4.1] In the introduction to Subroutine 1, 'As stated in Equation ??' has an unresolved equation reference; the bound d = max c_t^i should be stated explicitly at first use.
  3. [Section 5.3.2] The text says 'It seems to sink for n = 8' but Table 3 contains no n = 8 row; either add the data or remove the speculation.
  4. [Table 3] Several entries read 'NO DAT'; these should be replaced with actual values or the reasons for their absence should be explained in the caption.
  5. [Appendix B] The complexity derivation is a sketch: the number of steps and the ancillary-qubit count are described in words, and the phrase 'The subroutine 2 takes therefore a shortest time' should read 'a shorter time.' A more formal accounting of circuit depth and qubit reuse would make the O(p(log n)^3) and O(n log n) claims easier to verify.
  6. [Figures 16 and 18] The figures plot 'ratio versus P' but do not state what quantity is used to infer an exponential improvement; the authors should define the plotted data and describe any fitted curve in the captions.

Circularity Check

0 steps flagged · score 0.0 of 10

No significant circularity: the reported ratios are measured against independently computed optima, and the QAOA angles and penalty coefficient are fixed modeling choices rather than fitted inputs.

full rationale

The paper's central empirical claim is that the relaxed QAOA reaches approximation ratios near 0.95 with shallow depth. The derivation chain does not reduce to its inputs by construction. The angles are set to the fixed linear annealing schedule beta_k = 1 - k/p and gamma_k = k/p (Section 2.2), and the penalty coefficient is explicitly stated as arbitrary with alpha = 1 (Section 5.3.2); neither is fitted to the simulation outcomes. The approximation ratio is defined in Section 5.1 as 'the value of the output of the algorithm over the optimal value for the chosen target function,' which is computed for each random instance. Thus the ratio is an external benchmark against exact optima of the objective actually used by the circuit, not a restatement of a fitted parameter. The concern that the penalized target function may differ from the feasible knapsack optimum is a benchmark-validity and correctness question, not a circularity: the paper does not define the optimum in terms of the algorithm's output, and no equation in the paper equates the claimed result with an input assumption. There are no load-bearing self-citations, no imported uniqueness theorems, and no ansatz presented as derived when it was in fact postulated. The paper is self-contained as a simulation study, and any weakness in the central claim is an empirical or modeling limitation rather than a circular derivation.

Assumptions & free parameters 2 free parameters · 4 assumptions · 0 invented entities

The central simulation results depend on the arbitrary penalty strength alpha = 1 and on the hand-fixed linear annealing angle schedule. The complexity claims rely on the domain assumption d = O(1) and on a parallel addition tree that is sketched but not fully specified. No new physical entities are introduced.

free parameters (2)
  • alpha (penalty coefficient) = 1
    Chosen arbitrarily in Section 5.3.2; controls the weight of the penalty relative to the return, and the authors acknowledge its influence is not investigated.
  • QAOA angle schedule = beta_k = 1 - k/p, gamma_k = k/p
    Fixed by hand in Section 2.2 instead of optimized; performance ratios depend on this choice, and the paper provides no evidence it generalizes.
assumptions (4)
  • standard math The adiabatic theorem guarantees QAOA converges to the optimum as p goes to infinity.
    Invoked in Section 2.1 to justify QAOA; the convergence of the fixed-angle schedule is not proven.
  • domain assumption Battery state resets every day, so time windows are independent and intraday charging dynamics are ignored.
    Section 1.2 assumes every morning the battery starts with the same power level, removing charging dynamics from the model.
  • domain assumption Battery degradation is characterized only by a maximum cycle count and known daily costs c_t^1, c_t^2.
    Sections 1.1 and 1.2 simplify ageing to a cycle budget; real degradation is more complex and not captured.
  • domain assumption d = max_t c_t^i is O(1).
    Used in Sections 4.4.1 and 4.5 to justify O(log n) register sizes and the complexity claims.

how reviews work

0 comments
Cite this review

Pith. "Pith review of Knapsack Problem variants of QAOA for battery revenue optimisation." pith.science (2026). https://pith.science/paper/CMI42ATK

@misc{pith2026190802210,
  author       = {Pith},
  title        = {Pith review of: Knapsack Problem variants of QAOA for battery revenue optimisation},
  year         = {2026},
  howpublished = {\url{https://pith.science/paper/CMI42ATK}},
  note         = {Machine review of arXiv:1908.02210}
}
abstract

We implement two Quantum Approximate Optimisation Algorithm (QAOA) variants for a battery revenue optimisation problem, equivalent to the weakly NP-hard Knapsack Problem. Both approaches investigate how to tackle constrained problems with QAOA. A first 'constrained' approach introduces a quadratic penalty to enforce the constraint to be respected strictly and reformulates the problem into an Ising Problem. However, simulations on IBM's simulator highlight non-convergent results for intermediate depth ($ p\leq 50$). A second 'relaxed' approach applies the QAOA with a non-Ising target function to compute a linear penalty, running in time $O(p(\log_2 n)^3)$ and needing $O(n \log n)$ qubits. Simulations reveal an exponential improvement over the number of depth levels and obtain approximations about $0.95$ of the optimum with shallow depth ($p \leq 10$).

Figures

Figures reproduced from arXiv: 1908.02210 by the authors.

Figure 1
Figure 1. Overview of the circuit of Constrained Knapsack QAOA [PITH_FULL_IMAGE:figures/full_fig_p010_1.png] view at source ↗
Figure 2
Figure 2. Details of U(B, β) computation 3.2 Choice of the Hamiltonian The Hamiltonian we reintroduce is similar to the one used in [3]. We call |zi = |z1z1...zni = R[0 : n − 1] and |bi = |b0b1...bei = R[n : n + e]. We thus define 10 [PITH_FULL_IMAGE:figures/full_fig_p010_2.png] view at source ↗
Figure 3
Figure 3. Single term Crossed terms. The terms exp (−iγαt1,t2R[t1]R[t2]) can be computed as shown in [PITH_FULL_IMAGE:figures/full_fig_p011_3.png] view at source ↗
Figures from the paper (18 more)
Figure 4
Figure 4. Figure 4: Crossed term 11 [PITH_FULL_IMAGE:figures/full_fig_p011_4.png]
Figure 5
Figure 5. Figure 5: Initial State 12 [PITH_FULL_IMAGE:figures/full_fig_p012_5.png]
Figure 6
Figure 6. Figure 6: Overview of the circuit The computation of U(B, β) is identical to the previous one. 4.2 Penalty Hamiltonian This second approach consists in penalising linearly too costly set of choices. Given |zi = |z1z2...zni a set of choices, we introduce cost(z) = Pn t=1(1 − zt)c…
Figure 7
Figure 7. Figure 7: Return Hamiltonian 4.4 Computation of the penalty part The penalty Hamiltonian is harder to compute for this relaxed approach. We present below two implementations to compute e −iγ.return(z) . In both cases, we decompose its computation in 4 subroutines: 1. Cost calcul…
Figure 8
Figure 8. Figure 8: Subroutine add, see Appendix A. The cost can then be calculated and stored as shown in [PITH_FULL_IMAGE:figures/full_fig_p015_8.png]
Figure 9
Figure 9. Figure 9: Cost calculation. Variant 1. Variant 2. We assume here that A1 has n subregisters Ai 1 , ∀i ∈ [[1, n]] and we store eventually the total cost in A1 1 = A˜ 1. We suppose we dispose of another subroutine + such that: 15 [PITH_FULL_IMAGE:figures/full_fig_p015_9.png]
Figure 10
Figure 10. Figure 10: Subroutine + To achieve the computation, illustrated on [PITH_FULL_IMAGE:figures/full_fig_p016_10.png]
Figure 11
Figure 11. Figure 11: Cost calculation. Variant 2. Size of the registers. For both technique 1 and 2, we have to impose that every register is large enough to store the number it has to store, otherwise it creates an overflow. For variant 1, we must impose A1 big enough to store the larges…
Figure 12
Figure 12. Figure 12: set F to 1 if and only if Tk1−1 t=c [PITH_FULL_IMAGE:figures/full_fig_p017_12.png]
Figure 13
Figure 13. Figure 13: Penalty dephasing. 4.4.4 Subroutine 4: Reinitialisation At the end of the penalty computation, we want to set the ancillary qubits back in their initial state where they are all set to |0i. Subroutines 1 and 2 are composed only with X-gates and CNOT-gates, and both ar…
Figure 14
Figure 14. Figure 14: Ratio vs P for each depth n 20 [PITH_FULL_IMAGE:figures/full_fig_p020_14.png]
Figure 15
Figure 15. Figure 15: Relaxed Knapsack QAOA without penalty: Ratio vs n, for each depth p (color [PITH_FULL_IMAGE:figures/full_fig_p021_15.png]
Figure 16
Figure 16. Figure 16: Relaxed Knapsack QAOA without penalty: Ratio vs P, for each number of time [PITH_FULL_IMAGE:figures/full_fig_p022_16.png]
Figure 17
Figure 17. Figure 17: Relaxed Knapsack QAOA with penalty: Ratio vs n, for each depth p (color encoded) [PITH_FULL_IMAGE:figures/full_fig_p023_17.png]
Figure 18
Figure 18. Figure 18: Relaxed Knapsack QAOA with penalty: Ratio vs P, for each number of time steps [PITH_FULL_IMAGE:figures/full_fig_p023_18.png]
Figure 19
Figure 19. Figure 19: Crossed term The circuit is of size O(n), and requires n clean ancillary qubits, which are set set at |0i at the beginning and at the end. 25 [PITH_FULL_IMAGE:figures/full_fig_p025_19.png]
Figure 20
Figure 20. Figure 20: Subroutine + The following circuit uses the ADD block exposed above to compute the + block. |Ai ADD(20 ) ADD(21 ) · · · ADD(2q ) |b1i • |b2i • ... |bqi • [PITH_FULL_IMAGE:figures/full_fig_p026_20.png]
Figure 21
Figure 21. Figure 21: Subroutine circuit + The previous subsection shows that the block ADD has a linear size in the size of the register. While |Ai of size p and while there are q blocks, the block is of size pq and needs p ancillary qubits. Appendix B. Size and complexity of subroutine 1…

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Quadratic versus Polynomial Unconstrained Binary Models for Quantum Optimization illustrated on Railway Timetabling

    math.OC 2024-11 conditional novelty 4.0 of 10

    On three tiny railway-timetabling instances, QAOA with a polynomial (PUBO) encoding returned optimal feasible solutions in 55-71% of runs versus 4-8% for a quadratic (QUBO) encoding.

Reference graph

Works this paper leans on

18 extracted references · 11 canonical work pages · cited by 1 Pith paper

  1. [1]

    Qiskit: An Open-source Framework for Quantum Computing (v 0.11.1)

    Gadi Aleksandrowicz et al. Qiskit: An Open-source Framework for Quantum Computing (v 0.11.1) . 2019. doi: 10.5281/zenodo.2562110 . url: https://github.com/Qiskit/ qiskit

  2. [2]

    An Elementary Proof of the Quantum Adiabatic Theorem

    Oded Regev Andris Ambainis. “An Elementary Proof of the Quantum Adiabatic Theorem” (2018). url: http://arxiv.org/abs/quant-ph/0411152

  3. [3]

    Adiabatic quantum computing solution of the knapsack problem

    Mark W. Coffey. “Adiabatic quantum computing solution of the knapsack problem” (2017), pp. 1–22. arXiv: 1701.05584. url: http://arxiv.org/abs/1701.05584

  4. [4]

    Quantum Algorithm Implementations for Beginners

    Patrick J. Coles et al. “Quantum Algorithm Implementations for Beginners” (2018). arXiv: 1804.03719. url: http://arxiv.org/abs/1804.03719

  5. [5]

    Performance of the Quantum Approximate Optimization Algorithm on the Maximum Cut Problem

    Gavin E Crooks. “Performance of the Quantum Approximate Optimization Algorithm on the Maximum Cut Problem” (2018), pp. 15–17

  6. [6]

    A Quantum Approximate Opti- mization Algorithm

    Edward Farhi, Jeffrey Goldstone, and Sam Gutmann. “A Quantum Approximate Opti- mization Algorithm” (2014). arXiv: 1411.4028. url: http://arxiv.org/abs/1411.4028

  7. [7]

    A quantum adiabatic evolution algorithm applied to random instances of an NP-complete problem

    Edward Farhi et al. “A quantum adiabatic evolution algorithm applied to random instances of an NP-complete problem”. Science 292.5516 (2001), pp. 472–475

  8. [8]

    Lecture on Approximations Algorithms

    Anupam Gupta. Lecture on Approximations Algorithms. Topic: Dynamic Programming

Show all 18 references
  1. [9]

    Factoring using 2n+2 qubits with Toffoli based modular multiplication

    Thomas H¨ aner, Martin Roetteler, and Krysta M. Svore. “Factoring using 2n+2 qubits with Toffoli based modular multiplication” (2016). arXiv: 1611 . 07995. url: http : / / arxiv.org/abs/1611.07995

  2. [10]

    Optimizing electric vehicle charging with energy storage in the electricity market

    Chenrui Jin, Jian Tang, and Prasanta Ghosh. “Optimizing electric vehicle charging with energy storage in the electricity market”. IEEE Transactions on Smart Grid 4.1 (2013), pp. 311–320

  3. [11]

    Reducibility among combinatorial problems

    Richard M Karp. “Reducibility among combinatorial problems”. Complexity of computer computations. Springer, 1972, pp. 85–103

  4. [12]

    Bidding strategy for microgrid in day-ahead market based on hybrid stochastic/robust optimization

    Guodong Liu, Yan Xu, and Kevin Tomsovic. “Bidding strategy for microgrid in day-ahead market based on hybrid stochastic/robust optimization”. IEEE Transactions on Smart Grid 7.1 (2015), pp. 227–237

  5. [13]

    Multi-objective optimization of energy arbitrage in community energy storage systems using different battery technologies

    Tom Terlouw et al. “Multi-objective optimization of energy arbitrage in community energy storage systems using different battery technologies”. Applied Energy 239 (2019), pp. 356– 372. 28

  6. [14]

    Quantum networks for elementary arithmetic operations

    Vlatko Vedral, Adriano Barenco, and Artur Ekert. “Quantum networks for elementary arithmetic operations”. Physical Review A - Atomic, Molecular, and Optical Physics 54.1 (1996), pp. 147–153. issn: 10941622. doi: 10.1103/PhysRevA.54.147

  7. [15]

    Quantum Optimization for Maximum Independent Set Using Rydberg Atom Arrays

    Guillaume Verdon, Michael Broughton, and Jacob Biamonte. “Quantum Optimization for Maximum Independent Set Using Rydberg Atom Arrays” (2017), pp. 1–8

  8. [16]

    An Introduction to Quantum Optimization Approx- imation Algorithm

    Qingfeng Wang and Tauqir Abdullah. An Introduction to Quantum Optimization Approx- imation Algorithm. Tech. rep. 2018

  9. [17]

    Quantum Approximate Optimization Algorithm: Performance, Mecha- nism, and Implementation on Near-Term Devices

    Leo Zhou et al. “Quantum Approximate Optimization Algorithm: Performance, Mecha- nism, and Implementation on Near-Term Devices” (Dec. 2018). url: http://arxiv.org/ abs/1812.01041. 29

  10. [2005]

    url: http://www.cs.cmu.edu/afs/cs/academic/class/15854-f05/www/

Pith tools

Reviewed August 14, 2026 · model on record in the stance chip above.