# Quantum algorithms for N-1 security in power grids

- **DOI:** [10.48550/arxiv.2405.00434](https://doi.org/10.48550/arxiv.2405.00434)
- **Rating:** Limited (2.5 out of 5)
- **Verdict:** Quantum formulations map exploratory routes to grid reconfiguration, but flawed load-flow encoding and validation prevent a demonstrated N-1 quantum benefit.
- **Framework version:** v5.13
- **Pipeline version:** v0.4
- **Evaluation date:** 2026-11-25
- **Evaluation page:** https://www.nabu.science/paper/10.48550%2Farxiv.2405.00434

## Key claims

1. We found a quadratic improvement in the number of calls to load-flow computations with respect to the classical algorithm.
   - Support: Tentative
   - Type: Primary finding
   - Basis: pre-computed validity inputs demonstrate amplitude amplification rather than an implemented load-flow speedup against the complete classical procedure
   - Location: Section 6; Section 3.2
2. We tested the QUBO formulation with simulated annealing and found that the algorithm does indeed find a valid reconfiguration.
   - Support: Tentative
   - Type: Secondary
   - Basis: one engineered seven-node instance with penalties selected against the known optimum and no reported success rate across reads
   - Location: Section 6; Section 4.5
3. We next solved a simpler version of the problem on quantum annealing hardware and showed that current hardware already can help in this N-1 problem.
   - Support: Tentative
   - Type: Secondary
   - Basis: the successful hardware experiment omits load-flow constraints and lacks a classical comparator for demonstrating useful N-1 assistance
   - Location: Section 6, Paragraph 3
4. The potential of this [Gaussian boson sampling] algorithm for the N-1 problem is limited however, as we found no way to implement the load-flow computations on Gaussian boson samplers.
   - Support: Supported
   - Type: Secondary
   - Basis: a scoped exploratory assessment identifies load-flow and graph-superposition obstacles without displaying the supporting analysis in detail
   - Location: Section 5.2
5. only 13 out of the 500 runs gave the optimal solution, and in total only 21 runs found a spanning tree.
   - Support: Supported
   - Type: Secondary
   - Basis: explicitly reported counts for the small hardware experiment without load-flow constraints
   - Location: Section 4.5, Figure 9

## Strengths

- **Concrete formulation of grid reconfiguration constraints** The paper develops a problem-specific rooted-tree encoding and links it to discretized load-flow penalties. This provides an explicit formulation to inspect and refine, rather than only a conceptual proposal.
  - Dimension: contribution
  - Location: Appendix A.2–A.3
- **Clear separation of full and reduced experiments** The annealing results distinguish the simulated full-problem solution, the unsuccessful full hardware run, and the smaller hardware experiment without load-flow constraints.
  - Dimension: reporting
  - Location: Section 4.5, Figures 7–9
- **Explicit discussion of practical platform limitations** The discussion identifies annealer precision and penalty sensitivity, discretization limitations, and obstacles to implementing load-flow checks with Gaussian boson samplers.
  - Dimension: positioning
  - Location: Sections 4.5 and 5.2; Appendix A.3.2

## Limitations

- **Printed encodings fail their stated mathematical requirements** The voltage and current encodings do not have their stated ranges, and the purported quadratization retains products that prevent a quadratic objective. These defects undermine the general formulation independently of the reported small simulated success.
  - Dimension: methodological rigour
  - Location: Appendix A.3.1, Equations 32 and 34; Appendix A.3.3, Equations 47 and 49
- **Oracle demonstration does not establish load-flow speedup** The gate-based experiment receives pre-computed validity information rather than evaluating load flow in a quantum circuit. Its results illustrate amplitude amplification, while the conclusion's comparison with the classical algorithm exceeds the narrower unstructured-search comparison.
  - Dimension: methodological rigour
  - Location: Sections 3.1–3.2 and 6
- **Hardware conclusion exceeds the tested problem scope** Quantum annealing failed on the full load-flow problem, while the reduced experiment omitted those constraints and returned the optimum in 13 of 500 reads. This does not establish the conclusion that current hardware helps solve the N-1 problem.
  - Dimension: positioning
  - Location: Sections 4.5 and 6

## Reliability checks

Caveats (4 of 4 checks).

- **Results check:** Clean. The reported numbers and statistics are consistent with the stated results.
- **Reporting and transparency:** Noted. The implementation is described as available online, while its reference says availability is forthcoming. The classical algorithm's prose and pseudocode also differ on the switchover range.
- **Reference integrity:** Noted
  - 41 references in manuscript
  - 2 of 41 checkable references found in an index
  - 1 reference confirmed by manual review
  - Could not be verified automatically — queued for manual review:
    - Ballon, Alvaro. Photonic quantum computers. https://pennylane.ai/ qml/demos/tutorial_photonics/. Accessed: 2023-12-05. 2022. (Crossref bibliographic top candidate ratio 0.43 — no plausible match)
    - Linear equality constraints have the following standard penalty function: P(x) = X i aixi −b !2 . (Crossref bibliographic: only 0/5 fields agree (none); volume+page agreement required — left unresolved)
    - Pairwise degree reduction If problem formulations contain terms of higher degree than 2, auxilliary binary variables can help reduce the overall degree. For pairwise degree reduction, a quadratic xixj term is substituted by a new variable z and the following penalty function is added to the objective: P(xi, xj, z) = xixj −2z(xi + xj) + 3z. (Crossref bibliographic top candidate ratio 0.30 — no plausible match)
    - Note that P(xi, xj, z) is non-negative and P(xi, xj, z) = 0 if and only if xixj = z. A.1.2 Discrete variables Let denote δi x the indicator variable for i ∈I, i.e., δi x =  1, if x = i, 0, if x ̸= i. Such a discrete variable requires an encoding enforced by a penalty term P(δx). One-hot encoding The most simple encoding of a discrete variable is the one-hot encoding. In this encoding, a binary variable xi ∈{0, 1} is introduced for each discrete option i ∈I. Therefore, xi = 1 for exactly one i. (Crossref bibliographic top candidate ratio 0.36 — no plausible match)
    - The penalty term above is non-negative and zero if and only if exactly one xi is 1. After adding this penalty term, one simply substitutes δi x = xi. Domain-wall encoding A more efficient encoding for discrete variables is the domain-wall encoding [6]. For this encoding |I| −1 variables are used, labeled x1, x2, . . . x(|I|−1). Furthermore, for notation purposes we use x0 = 0 and x|I| = 1. The bitstring x0 x1 · · · x|I| is constrained by allowing for precisely one place where two adjacents bits (Crossref bibliographic top candidate ratio 0.04 — no plausible match)
    - This term counts the number of 1-0 substrings, which is zero for all valid bitstrings. The penalty term is zero if and only if the domain-wall constraint is met and positive otherwise. After adding this penalty term, one replaces the discrete indicator variables with the locations of the domain wall: δi x = xi −xi−1. A.2 QUBO for spanning trees with minimal switches The goal of this section is to write a QUBO formulation that finds the spanning trees with a minimal amount of switches. Figure 10: (Crossref bibliographic top candidate ratio 0.01 — no plausible match)
    - Connectivity Every non-root vertex connects to exactly one vertex with a lower depth. Pcon = X v∈V I−1 X i=1  δi xv − X u|{v,u}∈E δi−1 yvu − X u|{u,v}∈E δI+i−2 yuv   . (Crossref bibliographic top candidate ratio 0.30 — no plausible match)
    - Behavior of indicators If an edge has depth i, then the incident nodes should be in layer i and i + 1. Pind = X {v,u}∈E I−2 X i=0 δi yvu 2 −δi+1 xv −δi xu  + δI−1+i yvu 2 −δi xv −δi+1 xu  . (Crossref bibliographic top candidate ratio 0.26 — no plausible match)
    - Note that the penalty above also implies that every vertex has no connection to a vertex with the same depth. Objective The objective is to minimize the number of needed switches. Hobj = X {v,u}∈Ea δ2I−1 yvu + X {v,u}∈Ei 1 −δ2I−1 yvu . (Crossref bibliographic top candidate ratio 0.41 — no plausible match)
    - The whole problem can be formulated as the following unconstrained discrete optimization problem min Hobj + Proot + Pcon + Pind. (Crossref bibliographic: only 0/5 fields agree (none); volume+page agreement required — left unresolved)
    - A.2.2 QUBO Formulation Using one of the encodings introduced in Section A.1, binary variables can act like discrete variables. We provide an example using the domain-wall encoding. Pdw = X v∈V I−3 X i=0 xv,i(1 −xv,i+1) + X {v,u}∈E 2I−3 X i=0 yvu,i(1 −yvu,i+1), (Crossref bibliographic top candidate ratio 0.41 — no plausible match)
    - Proot = 1 − X v∈V xv,0 !2 , (Crossref bibliographic: only 1/5 fields agree (author); volume+page agreement required — left unresolved)
    - Pcon = X v∈V I−1 X i=1  xv,i −xv,i−1 − X u:{v,u}∈E yvu,i−1 −yvu,i−2 − X u:{u,v}∈E yuv,I+i−2 −yuv,I+i−3   , (Crossref bibliographic: only 0/5 fields agree (none); volume+page agreement required — left unresolved)
    - Pind = X {v,u}∈E I−2 X i=0 (yvu,i −yvu,i−1)(2 −xv,i+1 + xv,i −xu,i + xu,i−1) (Crossref bibliographic: only 0/5 fields agree (none); volume+page agreement required — left unresolved)
    - + (yvu,I+i−1 −yvu,I+i−2)(2 −xv,i + xv,i−1 −xu,i+1 + xu,i), (Crossref bibliographic: only 0/5 fields agree (none); volume+page agreement required — left unresolved)
    - Hobj = X {v,u}∈Ea 1 −yvu,2I−2 + X {v,u}∈Ei yvu,2I−2. (Crossref bibliographic: only 0/5 fields agree (none); volume+page agreement required — left unresolved)
    - The complete QUBO problem is then given by min Hobj + Ptree, (Crossref bibliographic: only 0/5 fields agree (none); volume+page agreement required — left unresolved)
    - where Ptree = λdwPdw + λrootProot + λconPcon + λindPind. (Crossref bibliographic: only 0/5 fields agree (none); volume+page agreement required — left unresolved)
    - In the equation above λdw, λroot, λcon and λind are real valued positive constants called penalty factors (or hyper parameters). They determine the relative importance of each penalty term. A.3 QUBO formulation for penalizing non-load-flow compliant trees In this section, we will construct a QUBO formulation that penalizes a non-loadflow compliant tree. We first give a mathematical formulation of the problem (see also [9]) and then approximate this continuous problem be a discrete one. Let G = ( (Crossref bibliographic top candidate ratio 0.01 — no plausible match)
    - U min n ≤|Un| ≤U max n , ∀n ∈VNMR, (Crossref bibliographic: only 0/5 fields agree (none); volume+page agreement required — left unresolved)
  - References not verified automatically are resolved manually within 24 hours.

## Post-publication record

- **Status:** Clean
- **Summary:** No retraction or expression of concern found in Crossref (includes Retraction Watch).
- **Last checked:** 2026-11-25
