Papers
Topics
Authors
Recent
Search
2000 character limit reached

Quantum search algorithm for similar subgraph identification under fixed edge removal

Published 2 Apr 2026 in quant-ph | (2604.02027v1)

Abstract: We introduce a novel quantum algorithm for similar subgraph identification in form of an NP-hard cardinality-constrained binary quadratic optimization problem. Given a weighted reference graph with Laplacian $\boldsymbol{B}$, our algorithm determines the subgraph featuring Laplacian $\boldsymbol{B'}$ on the same vertex set, but $x$ out of $N$ inactive edges, minimizing the Frobenius distance $||\boldsymbol{B} - \boldsymbol{B'}||\mathrm{F}2$. We represent the $\binom{N}{x}$ graph topologies by an equal-weight superposition in form of a Dicke state, enabling controlled transformations applied to the quantum state associated with the vectorized Laplacian of the reference graph. Combined with amplitude estimation and a minimum finding approach, our algorithm provides a polynomial speed up $\mathcal{O}(\sqrt{N{x}/x!}N\log\log N)$ compared to $\mathcal{O}(N{x+1}/x!)$ of classical brute-force search algorithms. We demonstrate the application of our method on standard test cases, which represent electric power grids, by reconstructing $||\boldsymbol{B} -\boldsymbol{B'}||\mathrm{F}2$ from measurements and show how our approach can be additionally used to calculate energy functional like quadratic forms of the Laplacians with respect to a given vector.

Summary

  • The paper proposes QSSA, a quantum algorithm that achieves quadratic speedup for fixed-cardinality subgraph identification by minimizing Frobenius norm distance.
  • It encodes candidate subgraphs as Dicke states and utilizes block encoding and amplitude estimation to efficiently prepare and process vectorized Laplacians.
  • Numerical simulations on IEEE bus systems validate QSSA's exactness and scalability, highlighting its potential in power grid reliability and spectral clustering.

Quantum Algorithm for Similar Subgraph Identification under Fixed Edge Removal

Problem Definition and Motivation

The paper introduces a quantum algorithm, the Quantum Subgraph Similarity Algorithm (QSSA), for the identification of the subgraph that is most similar to a given weighted reference graph, under the constraint of removing a fixed number xx out of NN edges. This problem, a variant of the NN-xx contingency analysis in power grids, is cast as a cardinality-constrained binary quadratic optimization problem (CC-BQP), known to be NP-hard and widely applicable, including to the densest-kk-subgraph problem and constrained network design. Given a reference graph Laplacian BB, the optimization minimizes the squared Frobenius norm ∣∣B−B′∣∣F2||B - B'||_F^2 over all subgraphs B′B' with xx inactive edges.

For NN edges and NN0 removals, there are NN1 feasible subgraph topologies, inducing a combinatorial explosion in computational cost. Classical exhaustive search thus scales as NN2, quickly becoming intractable for moderate NN3, particularly in critical applications (e.g., resilience analysis for power grids under multiple failures).

Quantum Algorithm Framework

The QSSA leverages quantum state preparation, controlled operations, amplitude amplification/estimation (AA/AE), and quantum minimum finding to achieve a polynomial speedup over classical approaches. The key innovations are:

  • Dicke State Encoding: All edge-removal configurations with fixed cardinality NN4 are encoded into a Dicke state, NN5, forming a uniform superposition over feasible configurations. Dicke state preparation circuits with depth NN6 are used for quantum efficiency.
  • Quantum State Association for Laplacians: Graph Laplacians are vectorized and associated with quantum states using block encodings. This allows efficient representation and controlled manipulation of Laplacian objects in superposition, with reference and subgraph Laplacians differentiated by controlled edge deactivation.
  • Parallel Evaluation: The superposition allows quantum-parallel computation of the Frobenius distances for all NN7 candidate subgraphs, encoded as measurement probabilities or with further encoding using amplitude estimation for quantum label registers.
  • Quantum Minimum Finding: Building on Dür and Høyer’s algorithm, the QSSA iteratively marks and amplifies the configurations with smaller Frobenius distance, yielding a total runtime of

NN8

steps, versus the exponential cost of brute-force classical enumeration. Figure 1

Figure 1: Comparison of runtime scaling between QSSA and classical brute-force methods as a function of the number of edges NN9 and number of removals NN0. QSSA achieves super-polynomial speedup for all NN1.

Algorithmic Structure

QSSA consists of the following phases:

  1. State Preparation: Construct the superposition representing all possible subgraphs with Dicke states; encode edge weights via amplitude encoding and initialize registers for edge and vertex states.
  2. Topology-Controlled Operations: Conditionally deactivate the weights of removed edges using multi-controlled quantum gates, informed by the Dicke state encoding.
  3. Block Encoding: Use fast approximate block encodings for mapping vectorized Laplacian contributions to the quantum state.
  4. Frobenius Distance Labelling: Employ quantum amplitude estimation (QAE) to estimate and store, in an additional register, amplitudes directly related to the squared Frobenius distances of subgraphs.
  5. Minimum Finding: Apply Dür and Høyer’s quantum minimum finder to iteratively amplify the lowest-distance configurations, using quantum comparisons and controlled Grover-style search.

Complexity Analysis

The quantum runtime exhibits quadratic speedup in the number of feasible configurations NN2 and efficient gate-level implementation up to logarithmic factors, with low circuit overhead in Dicke state generation and block encodings. Quantum memory requirements are

NN3

qubits, which allows applicability to networks with sizable NN4 and moderate NN5. Rigorous complexity breakdown distinguishes contributions from control logic, amplitude estimation, and block encoding.

Numerical Validation

The paper presents numerical simulations on benchmarking instances relevant to power grid analysis (IEEE 4-bus and 9-bus systems):

  • Exactness: Quantum sampling results for the Frobenius distances over all subgraph topologies converge to classical exact solutions with increasing number of measurement shots, as shown in Figure 2. Figure 2

    Figure 2: Quantum-estimated versus classically computed Frobenius distances for selected subgraph configurations in the IEEE-9 system with NN6 edge removals; the quantum result rapidly converges with increasing shots.

  • Statistical Behavior: The absolute difference between quantum and classical calculated sums of distances vanishes as NN7 with the number of shots, confirming statistical consistency.

Theoretical and Practical Implications

The algorithm demonstrates the practical feasibility of quantum-accelerated combinatorial subgraph search under cardinality constraints for problems with exact solution requirements. Unlike quantum heuristics (e.g., QAOA with penalty encoding), QSSA deterministically restricts evolution to the feasible set, guaranteeing the global optimum under sufficient quantum resources. This provides a framework for constrained graph optimization with reliable solution quality, and can be extended to evaluation of quadratic forms and energy functionals on families of graphs.

Key implications include:

  • Quantum-Accelerated Infrastructure Analysis: QSSA is directly applicable to contingency analysis in power grids, network vulnerability studies, and other infrastructure resilience problems with hard topology constraints.
  • Generalizable to Broader CC-BQP Problems: The Dicke-state-based constraint handling is broadly transferable to other domains of cardinality-limited combinatorial optimization, including bioinformatics, cheminformatics, and logistics.
  • Algorithmic Extensibility: The methodology admits calculation of quantities beyond the Frobenius distance (e.g., spectral or energy-based measures).

Limitations and Outlook

Full practical quantum advantage will ultimately depend on scalable quantum hardware, QRAM for edge data, and low-overhead Dicke/block encoding circuits; hybrid and variational extensions may be required for near-term quantum devices (NISQ). A systematic comparison between exact search (as in QSSA) and quantum approximate heuristics remains open.

Future research directions:

  • Efficient Dicke state and multi-controlled gate synthesis for constrained subspace sampling.
  • Integration with quantum machine learning kernels using Laplacian-based similarity measures.
  • Co-design with classical preprocessing for constraint reduction and further quantum-classical hybrid pipelines.

Conclusion

QSSA establishes an exact quantum-algorithmic framework for constrained subgraph identification, offering a clear polynomial runtime advantage over classical enumeration for all NN8. By exploiting Dicke states, block encoding, and quantum minimum finding, it robustly addresses NP-hard CC-BQPs with edge-cardinality constraints. These results lay foundational ground for quantum-enhanced optimization in networked systems and structured combinatorial search.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We're still in the process of identifying open problems mentioned in this paper. Please check back in a few minutes.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 1 like about this paper.