Skip to content

Menu

WorksPhysics and Astronomy

Controlled Continuous-Time Quantum Walks for Power Grid Analysis under N-x Contingencies

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_qtxcjy2f. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

The combinatorial growth of network configurations under N-x contingencies presents significant computational challenges for power system analysis. In this work, we introduce a quantum algorithm based on Controlled Continuous-Time Quantum Walks (CCTQWs) that evolves a quantum walker conditioned on a contingency register held in a uniform superposition of all x-line outage configurations representing the contingency scenarios. The proposed framework encodes transmission line availability in a quantum register and employs controlled Hamiltonian evolution to account for topology changes induced by contingencies. We develop a gate-based implementation using Trotter-Suzuki product formulas and investigate the associated approximation errors and computational requirements. As a demonstration of the proposed methodology, we introduce a contingency-averaged occupation centrality measure derived from quantum-walk measurement statistics. Numerical experiments on an 8-bus power network under N-2 contingencies demonstrate the implementation of the algorithm and characterize the convergence of the resulting centrality estimates with respect to the observation window, sampling and Trotter steps. Comparison with established classical centrality measures shows a qualitatively consistent characterization of network structure, particularly in identifying the most central nodes. The proposed framework establishes a methodological foundation for quantum-walk-based analysis of power networks under contingencies, providing a starting point for future investigations of quantum algorithms for power system security assessment.

Introduction

The number of configurations in N−xN-x contingency analysis grows combinatorially with power system size. An increase in NN is expected, driven by the need to analyse larger areas beyond transmission systems, including sub-transmission and distribution grids. At the same time, the growing penetration of distributed energy resources significantly raises the number of critical units in the system, leading to scenarios with x>2x > 2. Consequently, as both NN and xx increase, exhaustive contingency analysis is expected to become computationally impractical. For example, the ENTSO-E report on the South-East European blackout of 21 June 2024 [1] highlights that, had a larger area and N−3N-3 contingency scenarios been considered, the critical conditions leading to the blackout could have been identified prior to the event. At the same time, in a system with 1,000 components, a full N−3N-3 analysis already requires about 10810^{8} contingencies, rendering the problem practically infeasible.

In recent years, the envisioned growth in computational cost associated with contingency analysis has motivated the use of topological graph-based measures, such as centrality measures (CMs), to prioritize components that are structurally important under multiple outage scenarios, and thus guiding the contingency analysis [2, 3, 4, 5]. One of the main advantages of employing CMs is their ability to analyze the grid system with incomplete information [4].

Motivated by this, we aim to develop a Quantum Walk (QW)-based framework for power-grid analysis under N−xN-x contingencies. We then use this framework to calculate node centrality measures and examine whether the results are qualitatively consistent with established classical centrality measures under N−xN-x contingencies. To the best of our knowledge, the application of QWs to power-grid analysis remains largely unexplored.

A QW is considered the quantum analog of a classical random walk. Similar to its classical counterpart, QWs have been extensively utilized in quantum algorithm development [6, 7, 8] and quantum computing [9] in general. There are two broad classes of QWs: discrete-time QWs and continuous-time QWs (CTQWs), each of which has significant distinctions in its mathematical formalism [10]. Several studies can be found in the literature where CTQWs are employed to study centrality measures in various types of networks. In [11], four new centrality measures for directed networks are introduced based on CTQWs. In [12], the vertex centrality, a measure that quantifies the relative importance of a node within a network, is linked to the interference patterns of the CTQWs by defining a new centrality measure using the Quantum Jensen-Shannon Divergence. Moreover, the ability of CTQWs to rank important nodes on large-scale weighted graphs is shown in [13].

While QWs have been previously employed to define centrality measures on single graphs, we develop a Controlled Continuous-Time Quantum Walk (CCTQW) framework that enables coherent QW evolution over a superposition of all (Nx)\binom{N}{x} contingency-induced subgraphs, where (Nx)\binom{N}{x} is the binomial coefficient. The walk evolution depends explicitly on the operational status of transmission lines. From the resulting measurement statistics, we derive a contingency-averaged occupation centrality measure as an application of the proposed framework. The main contributions of this work are summarized as follows

  • We develop a CCTQW framework that extends QW evolution from a single graph to a superposition of (Nx)\binom{N}{x} contingency-induced subgraphs, with the evolution conditioned on the status of transmission lines.

  • We provide a gate-based implementation of proposed framework using Trotter–Suzuki product formulas and

discuss approximation errors and mitigation strategies.

  • We define a node-ranking metric from measurement statistics, capturing contingency-averaged importance.

  • We demonstrate the proposed approach on an 8-bus test system for N−2N-2 contingencies and compare the results with classical centrality measures.

The remainder of this paper is organized as follows. Section II introduces the background and mathematical framework, including the graph representation of power grids and the CTQW formulation. Section III presents the proposed CCTQW algorithm and the contingency-aware centrality measure. Section IV provides the detailed gate-level circuit implementation. Section V discusses Trotter–Suzuki approximation errors and mitigation strategies. Section VI reports numerical results on an 8-bus test system, including comparison with classical centrality measures. The paper concludes with a discussion on resource requirements, limitations, and possible future directions, followed by concluding remarks.

Background and Mathematical Framework

This section introduces the graph-theoretic representation of power grids, the mathematical formulation of CTQWs, and their implementation on gate-based quantum hardware using Trotter-Suzuki product formulas. These elements provide the foundation for the contingency-controlled evolution introduced in Section III.

Graph representation of Power grids

An electric power system can be represented as a finite undirected graph G={V,E}G = \{V, E\} where V={1,…,n}V = \{1, \ldots, n\} denotes the set of nn nodes, corresponding to buses or substations in the power grid. The edge set E={(r,s):r,s∈V}E = \{(r, s) : r, s \in V\} represents the connections between buses, e.g. transmission lines. The number of lines is denoted by N=∣E∣N = |E|. For convenience, we enumerate the edges as er,s=1,…,Ne_{r,s} = 1, \ldots, N, where each edge er,se_{r,s} corresponds to the node pair (r,s)∈E(r, s) \in E. Throughout this paper, the terms nodes and buses are used interchangeably, as are edges and transmission lines.

CTQW on a graph

A CTQW on a graph GG with nn vertices describes the unitary time evolution of a quantum walker whose state ∣ψ(t)⟩|\psi(t)\rangle lies in the Hilbert space Hw\mathcal{H}_w spanned by the computational basis states Vw={∣1⟩,…,∣n⟩}\mathcal{V}_w = \{|1\rangle, \ldots, |n\rangle\}, where each basis state ∣j⟩|j\rangle corresponds to vertex jj of GG. The evolution of the CTQW on the graph GG is governed by the Schrödinger equation (ℏ=1\hbar= 1)

iddt∣ψ(t)⟩=H∣ψ(t)⟩,(1)i\frac{d}{dt}|\psi(t)\rangle= H|\psi(t)\rangle, \tag*{(1)}

where HH is the Hamiltonian of the system. Typically, HH is chosen to be either the adjacency matrix or the Laplacian of the underlying graph. While the Laplacian may seem more natural from a power systems perspective, given its connection to the nodal admittance matrix, the adjacency matrix has a purely off-diagonal structure, which simplifies the gate decomposition of the edge-local evolution operators. Hence, in this work, we adopt the adjacency matrix A\mathcal{A} of GG directly as the Hamiltonian that governs the dynamics of the walker. The (weighted) adjacency matrix is defined as

Ar,s={wr,sif (r,s)∈E,0otherwise(2)\mathcal{A}_{r,s} = \begin{cases} w_{r,s} & \text{if } (r,s) \in E,\\ 0 & \text{otherwise} \end{cases} \tag*{(2)}

where wr,s>0w_{r,s} > 0. The adjacency matrix representation naturally distinguishes between two types of graphs. When all edge weights are unity (i.e., wr,s=1w_{r,s} = 1 for all (r,s)∈E(r,s) \in E), the graph is termed unweighted. Otherwise, it is referred to as a weighted graph. In the context of power networks, one can use an unweighted graph to represent only the connectivity structure of the grid, i.e., whether two buses are connected by a transmission line. A weighted graph, on the other hand, can be used to model the power grid by associating a physical property of the transmission lines. For instance, the weights may represent quantities such as line strength or the magnitude of line admittance. When only geographic information is known, the weights can be used to represent the inverse of the line length.

By solving the Schrödinger equation, the quantum walker’s state is obtained as ∣ψ(t)⟩=e−itH∣ψ(0)⟩=∑j=1nαj(t)∣j⟩|\psi(t)\rangle= e^{-itH}|\psi(0)\rangle= \sum_{j=1}^{n}\alpha_j(t)|j\rangle, where αj(t)\alpha_j(t) is the amplitude of finding the walker at node jj at time tt. The probability of finding the walker at node jj at time tt is Pj(t)=∣αj(t)∣2P_j(t) = |\alpha_j(t)|^2. The corresponding occupation (time-averaged) centrality is defined as [11, 13]

C~j=lim⁡T→∞1T∫0TPj(t) dt.(3)\widetilde{C}_j = \lim_{T\to\infty}\frac{1}{T}\int_0^T P_j(t)\,dt. \tag*{(3)}

In practice, the asymptotic time average in Eq. (3) is estimated over a finite observation horizon TT by sampling the occupation probabilities at discrete times tτt_\tau. The occupation (time-averaged) centrality is then approximated as

C~j,approx=1NT∑τ=1NTPj(tτ),(4)\widetilde{C}_{j,\mathrm{approx}} = \frac{1}{N_T}\sum_{\tau=1}^{N_T}P_j(t_\tau), \tag*{(4)}

where NTN_T is the number of samples, tτ=τΔtt_\tau= \tau\Delta t for τ=1,…,NT\tau= 1, \ldots, N_T and Δt=T/NT\Delta t = T/N_T. The accuracy of this approximation depends on the finite observation horizon TT and the sampling interval Δt\Delta t.

Implementation of CTQW on a gate-based architecture

From a computational perspective, evaluating the time-averaged occupation probability C~j,approx\widetilde{C}_{j,\mathrm{approx}} requires implementing the unitary evolution operator e−iHte^{-iHt} in terms of basic quantum gates. Several approaches have been proposed for realizing CTQWs on gate-based quantum computers, with efficient circuit constructions exploiting graph symmetry or sparsity [14, 15, 16]. For a CTQW on a general graph, the evolution operator is typically implemented using Hamiltonian-simulation techniques. When HH is expressed as a sum of local terms, a standard strategy is to approximate the evolution using product-formula (Trotter–Suzuki) decomposition [17, 18, 19].

We now discuss the implementation of the CTQW via Hamiltonian simulation for a single graph topology, since it serves as the fundamental building block of the proposed framework. Since the Hamiltonian is set as the adjacency matrix, it can be decomposed into a sum of edge-local transition matrices H(r,s)H^{(r,s)}, each associated with an edge (r,s)(r,s), so that

H=∑(r,s)H(r,s).H = \sum_{(r,s)} H^{(r,s)}.

We define a matrix M(r,s)M^{(r,s)} of the following form

M(r,s)=(vrvsT+vsvrT)M^{(r,s)} = \left(v_r v_s^{\mathsf T} + v_s v_r^{\mathsf T}\right)

where vk∈Rnv_k \in\mathbb{R}^n is the kk-th standard basis column vector with a 1 in the kk-th position and 0 elsewhere. Now, we define the edge–local transition matrix as

H(r,s)=wr,sM(r,s),(5)H^{(r,s)} = w_{r,s}M^{(r,s)}, \tag*{(5)}

where wr,sw_{r,s} is the (r,s)(r,s)-th entry of the adjacency matrix. Note that, for a general dense graph, such an edge-wise decomposition may lead to a large number of local Hamiltonian terms, resulting in an inefficient implementation when using product-formula methods. However, power networks are inherently sparse. This feature enables the decomposition of the edges into commuting sets to efficiently reduce discretization errors (see § 5-A). As the local transition matrices do not generally commute i.e. [H(r,s),H(r′,s′)]≠0[H^{(r,s)},H^{(r',s')}] \ne0, using Lie product formula yields

e−itH=lim⁡R→∞[∏(r,s)e−itRH(r,s)]R.(6)e^{-itH} = \lim_{R \to\infty} \left[\prod_{(r,s)} e^{-i\frac{t}{R}H^{(r,s)}}\right]^R . \tag*{(6)}

Using finite steps RR, we can approximate the time evolution according to

e−itH≈[∏(r,s)e−itRH(r,s)]R(7)e^{-itH} \approx\left[\prod_{(r,s)} e^{-i\frac{t}{R}H^{(r,s)}}\right]^R \tag*{(7)}
e−itH≈[∏→(r,s)e−it2RH(r,s)∏←(r,s)e−it2RH(r,s)]R(8)e^{-itH} \approx\left[\overrightarrow{\prod}_{(r,s)} e^{-i\frac{t}{2R}H^{(r,s)}} \overleftarrow{\prod}_{(r,s)} e^{-i\frac{t}{2R}H^{(r,s)}}\right]^R \tag*{(8)}

where the arrow →\rightarrow indicates that the product over edges follows a fixed ordering of (r,s)(r,s), while ←\leftarrow denotes the reverse ordering. Equation Eq. (7a) is called first-order Lie–Trotter formula and Eq. (7b) corresponds to the second-order symmetric (Strang–Suzuki) formula. To improve the accuracy–cost tradeoff, higher-order product formulas may be employed to achieve the same simulation accuracy with fewer Trotter steps. Further details can be found in [17]. The product formulas in Eq. (7a) and Eq. (7b) can be implemented on a gate-based quantum computer by decomposing each term e−itRH(r,s)e^{-i\frac{t}{R}H^{(r,s)}} or e−it2RH(r,s)e^{-i\frac{t}{2R}H^{(r,s)}} into a sequence of single- and multi-qubit gates. In practice, RR is kept finite, which introduces an approximation error that depends on the number of steps RR, the total evolution time tt, and the spectral properties of the Hamiltonian.

Contingency-Controlled-CTQW

In this section, we generalize the time evolution of the quantum walker along one single graph to a superposition over (Nx)\binom{N}{x} configurations, each encoded as a computational basis state of a contingency register and evolved under an edge-controlled evolution. The overall procedure is conceptually summarized in Figure 1. The circuit in Figure 1 comprises of two registers: The contingency register (top quantum register) is used to encode topologies of all (Nx)\binom{N}{x} subgraphs. It consists of NN qubits, where NN represents the number of edges in the power grid. The nn-th qubit in the contingency register encodes whether the nn-th edge is active (1) or inactive (0). The walker register (bottom quantum register) encodes the nodes of the power grid on which the quantum walker propagates. It consists of ⌈log⁡n⌉\lceil\log n \rceil qubits, where nn is the number of nodes and ⌈⋅⌉\lceil\cdot\rceil denotes the ceiling function. First, the contingency register is prepared in an equal superposition of all configurations corresponding to xx simultaneous line outages, while the walker register is initialized in a uniform superposition over the network nodes. The joint state is then evolved under a controlled CTQW, such that each basis state of the contingency register determines the graph topology governing the walker dynamics. Finally, the walker register is sampled at selected evolution times, and the resulting occupation probabilities are used to construct a contingency-aware node-ranking measure. The following subsections describe the main components of the CCTQW framework, while the detailed gate-level implementation is presented in Section IV.

Conceptual quantum circuit for the CCTQW

Figure 1. Conceptual quantum circuit for the CCTQW. The contingency (NN qubits) and walker (⌈log⁡n⌉\lceil\log n\rceil qubits) registers are prepared into the joint state ∣Ψ0⟩\lvert\Psi_0\rangle and evolved under [UQW(f)(γ)]R\left[U_{QW}^{(f)}(\gamma)\right]^R to yield ∣Ψt⟩\lvert\Psi_t\rangle, from which the sampling is performed. Here, ff denotes the order of Trotter-Suzuki formula used, γ∈R\gamma\in\mathbb{R} is a tunable parameter and RR is the number of Trotter steps.

State preparation

The preparation of the contingency states and the initial walker state is a crucial component of the proposed framework. Since we are interested in all (Nx)\binom{N}{x} subgraphs, we need to create the superposition of the encoded subgraphs in the contingency register where xx qubits are 0. To address this challenge we use short-depth quantum circuits that deterministically prepare Dicke state ∣DxN⟩\lvert D_x^N\rangle, an equal-amplitude superposition of all NN-qubit computational basis states with a fixed Hamming weight xx [20, 21]. Hence, the contingency states are prepared as

∣DxN⟩=1(Nx)∑d∈C(x)∣d⟩(9)\lvert D_x^N\rangle= \frac{1}{\sqrt{\binom{N}{x}}}\sum_{d\in\mathcal{C}^{(x)}} \lvert d\rangle \tag*{(9)}

where C(x)\mathcal{C}^{(x)} is the set of all NN-bitstrings with Hamming weight xx. For example, with N=4N=4 and x=2x=2 the corresponding Dicke state reads ∣D24⟩=16(∣1100⟩+∣1010⟩+∣1001⟩+∣0110⟩+∣0101⟩+∣0011⟩)\lvert D_2^4\rangle= \frac{1}{\sqrt{6}}(\lvert1100\rangle+ \lvert1010\rangle+ \lvert1001\rangle+ \lvert0110\rangle+ \lvert0101\rangle+ \lvert0011\rangle). Note that, since the standard Dicke state ∣DxN⟩\lvert D_x^N\rangle contains xx ones and N−xN-x zeros, we apply Pauli-XX gates to all qubits after state preparation written as ∣D~xN⟩\lvert\widetilde{D}_x^N\rangle to obtain a superposition containing xx zeros and N−xN-x ones, consistent with the contingency encoding adopted in this work.

The walker register is initialized in a uniform superposition over all nodes to ensure an unbiased starting point for the dynamics. The initial walker state is given by

∣ϕ0⟩=1n∑j=1n∣j⟩(10)\lvert\phi_0\rangle= \frac{1}{\sqrt{n}}\sum_{j=1}^{n}\lvert j\rangle \tag*{(10)}

where nn is the number of nodes. If nn is a power of two (i.e., n=2mn=2^m for some mm), the walker register can be initialized using Hadamard gates as ∣ϕ0⟩=H⊗m∣0⟩⊗m\lvert\phi_0\rangle=H^{\otimes m}\lvert0\rangle^{\otimes m}. For n≠2mn\ne2^m, the walker register is embedded into a Hilbert space of dimension 2⌈log⁡n⌉2^{\lceil\log n\rceil}. In this case, one may prepare a uniform superposition over all 2⌈log⁡n⌉2^{\lceil\log n\rceil} basis states using Hadamard gates and restrict the dynamics to the first nn states.

Alternatively, one may directly prepare the uniform superposition over the first nn basis states using standard quantum state preparation techniques [22, 23] although at the cost of increased circuit depth. The initial state of the algorithm is thus given by the tensor product

∣Ψ0⟩=∣DxN~⟩⊗∣ϕ0⟩.(11)\lvert\Psi_0\rangle=\lvert\widetilde{D^N_x}\rangle\otimes\lvert\phi_0\rangle. \tag*{(11)}

This joint state serves as the input to the controlled CTQW introduced in the next subsection.

Controlled-CTQW on a graph

To enable edge controlled evolutions, we extend the overall Hilbert space to Hc⊗Hw\mathcal{H}_c\otimes\mathcal{H}_w, where Hc\mathcal{H}_c is of dimension 2N2^N and populated by quantum states of the form ∣d1d2…dN⟩\lvert d_1d_2\ldots d_N\rangle where di∈{0;1}d_i\in\{0;1\} indicating the operational status of edge ii i.e. ∣1⟩\lvert1\rangle and ∣0⟩\lvert0\rangle denote an active and inactive edge, respectively. We call the corresponding quantum register contingency register.

Having extended the Hilbert space, we now introduce a controlled operation whose action on the walker register is conditioned on the state of the contingency register, so that each edge contributes to the walk dynamics only when its associated qubit marks the line as active. For each edge (r,s)(r,s), let

Π0(er,s)=1⊗(er,s−1)⊗∣0⟩⟨0∣er,s⊗1⊗(N−er,s),\Pi_0^{(e_{r,s})}=\mathbb{1}^{\otimes(e_{r,s}-1)}\otimes\lvert0\rangle\langle0\rvert_{e_{r,s}}\otimes\mathbb{1}^{\otimes(N-e_{r,s})},
Π1(er,s)=1⊗(er,s−1)⊗∣1⟩⟨1∣er,s⊗1⊗(N−er,s),(12)\Pi_1^{(e_{r,s})}=\mathbb{1}^{\otimes(e_{r,s}-1)}\otimes\lvert1\rangle\langle1\rvert_{e_{r,s}}\otimes\mathbb{1}^{\otimes(N-e_{r,s})}, \tag*{(12)}

where Π0(er,s)\Pi_0^{(e_{r,s})} and Π1(er,s)\Pi_1^{(e_{r,s})} denote the projectors onto the subspaces in which the qubit associated with edge (r,s)(r,s) is in state ∣0⟩\lvert0\rangle and ∣1⟩\lvert1\rangle, respectively, and er,se_{r,s} denotes the index of that edge in the enumeration er,s∈{1,…,N}e_{r,s}\in\{1,\ldots,N\}. Then, the overall Hamiltonian can be written as Hctrl=∑er,sΠ1(er,s)⊗H(r,s)H_{\mathrm{ctrl}}=\sum_{e_{r,s}}\Pi_1^{(e_{r,s})}\otimes H^{(r,s)} which activates the contribution of edge (r,s)(r,s) only when the er,se_{r,s}-th qubit is in state ∣1⟩\lvert1\rangle. Using Lie product formula, the corresponding overall time-evolution operator is given by

e−itHctrl=lim⁡R→∞[∏(r,s)e−itR(Π1(er,s)⊗H(r,s))]R(13)e^{-itH_{\mathrm{ctrl}}}=\lim_{R\to\infty}\left[\prod_{(r,s)}e^{-i\frac{t}{R}\left(\Pi_1^{(e_{r,s})}\otimes H^{(r,s)}\right)}\right]^R \tag*{(13)}

The first- and second-order product-formula approximations of the controlled time-evolution operator for a finite number of Trotter steps RR can be obtained by following the same procedure as in Eq. (7a) and Eq. (7b), respectively.

Implementation of CCTQW

The CCTQW is generated by a unitary operator whose action on the walker register is conditioned on the configurations encoded in the contingency register. Following the controlled time-evolution formulation in Eq. (13), we define the edge-wise controlled unitary operator as

U(r,s)(γ)=exp⁡(−iγΠ1(er,s)⊗H(r,s))(14)U^{(r,s)}(\gamma)=\exp\left(-i\gamma\Pi_1^{(e_{r,s})}\otimes H^{(r,s)}\right) \tag*{(14)}

where γ∈R\gamma\in\mathbb{R} is a tunable parameter. The operator U(r,s)(γ)U^{(r,s)}(\gamma) governs the transition of the quantum walker between nodes rr and ss, conditioned on the state of the qubit er,se_{r,s} in the contingency register. Using the projector property, the operator U(r,s)(γ)U^{(r,s)}(\gamma) can be written in the explicit form

U(r,s)(γ)=Π0(er,s)⊗1+Π1(er,s)⊗e−iγH(r,s)(15)U^{(r,s)}(\gamma)=\Pi_0^{(e_{r,s})}\otimes\mathbb{1}+\Pi_1^{(e_{r,s})}\otimes e^{-i\gamma H^{(r,s)}} \tag*{(15)}

which shows that the evolution generated by H(r,s)H^{(r,s)} is applied only when the corresponding contingency qubit is in the state ∣1⟩\lvert1\rangle, and otherwise the identity operation is applied. Finally, the CCTQW operator UQW(f)(γ)U_{\mathrm{QW}}^{(f)}(\gamma), shown in Figure 1, is constructed by composing these edge-wise controlled unitaries according to the chosen product formulas. In particular, the first- and second-order constructions are given by

UQW(1)(γ)=∏→(r,s)U(r,s)(γ)(16)U_{\mathrm{QW}}^{(1)}(\gamma)=\overrightarrow{\prod}_{(r,s)}U^{(r,s)}(\gamma) \tag*{(16)}
UQW(2)(γ)=[∏→(r,s)U(r,s)(γ2)][∏←(r,s)U(r,s)(γ2)](17)U_{\mathrm{QW}}^{(2)}(\gamma)=\left[\overrightarrow{\prod}_{(r,s)}U^{(r,s)}\left(\frac{\gamma}{2}\right)\right]\left[\overleftarrow{\prod}_{(r,s)}U^{(r,s)}\left(\frac{\gamma}{2}\right)\right] \tag*{(17)}

where the arrow →\to denotes a fixed ordering over edges, while ←\leftarrow denotes the reverse ordering. By setting γ=t/R\gamma=t/R and applying [UQW(f)(t/R)]R\left[U_{\mathrm{QW}}^{(f)}(t/R)\right]^R, where f=1,2f=1,2 denotes the first- and second-order product-formula approximations, respectively, we obtain an RR-step approximation to the controlled time-evolution operator in Eq. (13), corresponding to a total evolution time tt. The explicit matrix representation and gate-level decomposition of U(r,s)(γ)U^{(r,s)}(\gamma) are discussed in detail in Section IV. Moreover, the resulting Trotter error and mitigation strategies are discussed in Section V.

Contingency-Aware Centrality Measure

In this section, we introduce a ranking metric derived from measurement statistics of the quantum circuit in Figure 1. Before measurement, the circuit produces a joint quantum state of the contingency and walker registers after an evolution time tt, given by

∣Ψt⟩=[UQW(f)(tR)]R∣Ψ0⟩(18)\lvert\Psi_t\rangle=\left[U_{\mathrm{QW}}^{(f)}\left(\frac{t}{R}\right)\right]^R\lvert\Psi_0\rangle \tag*{(18)}

where ∣Ψ0⟩\lvert\Psi_0\rangle is defined in Eq. (11) and RR is the number of Trotter steps and ff denotes the order of Trotter-Suzuki formula. Measuring only the walker register in the computational basis {∣j⟩}j=1n\{\lvert j\rangle\}_{j=1}^{n} yields the probability of finding the walker at node jj at time tt averaged over contingencies. The contingency-averaged occupation probability is given by Qj(t)=⟨j∣Tr⁡c[∣Ψt⟩⟨Ψt∣]∣j⟩Q_j(t)=\langle j\vert\operatorname{Tr}_{c}[\lvert\Psi_t\rangle\langle\Psi_t\rvert]\lvert j\rangle, where Tr⁡c\operatorname{Tr}_c is the partial trace over the contingency register. Let the total observation window be TT, and the number of discrete samples be SS, with time step Δt=T/S\Delta t = T/S and sampling times tτ=τΔtt_\tau= \tau\Delta t for τ=1,…,S\tau= 1,\ldots,S. The contingency-aware occupation centrality of node jj is then defined as

Ωj=1S∑τ=1SQj(tτ).(19)\Omega_j = \frac{1}{S}\sum_{\tau=1}^{S} Q_j(t_\tau). \tag*{(19)}

Operationally, the metric Ωj\Omega_j is obtained by repeatedly executing the quantum circuit, measuring the walker register in the computational basis at discrete times tτt_\tau, and estimating the probability Qj(tτ)Q_j(t_\tau) of observing the walker at node jj.

Detailed Circuit Implementation

Building on the high-level circuit description introduced in the previous section, here we present the full gate-level realization of the CCTQW. We detail the preparation of the contingency and walker registers, derive the explicit matrix representation of the edge-wise controlled unitary U(r,s)(γ)U^{(r,s)}(\gamma), and describe its decomposition into elementary single- and multi-qubit gates.

Block Matrix Form of U(r,s)(γ) operator

In this subsection, we demonstrate how to construct the block matrix representation of the edge-wise controlled unitary operator U(r,s)(γ)U^{(r,s)}(\gamma) by utilizing the decomposition of the adjacency matrix. This explicit matrix form is particularly useful for classical simulation of the quantum algorithm and for gaining insight into the internal structure of the walk dynamics. Recall that, for each (r,s)(r,s) edge we define H(r,s)=wr,sM(r,s)H^{(r,s)} = w_{r,s}M^{(r,s)}. To aid in simplifying powers of H(r,s)H^{(r,s)}, let us define a matrix of the form J(r,s)=vrvrT+vsvsTJ^{(r,s)} = v_rv_r^{\mathsf T} + v_sv_s^{\mathsf T} which acts as a projector onto the subspace involving nodes rr and ss. It can be shown that the transition matrices satisfy the following algebraic identities

(H(r,s))2k=wr,s2kJ(r,s),k≥1,(H(r,s))2k+1=wr,s2k+1M(r,s),k≥0.(20)\begin{aligned} \left(H^{(r,s)}\right)^{2k} &= w_{r,s}^{2k}J^{(r,s)}, && k \ge1,\\ \left(H^{(r,s)}\right)^{2k+1} &= w_{r,s}^{2k+1}M^{(r,s)}, && k \ge0. \tag*{(20)} \end{aligned}

where kk is a positive integer. These identities enable us to write the operator e−iγH(r,s)e^{-i\gamma H^{(r,s)}} as the matrix

e−iγH(r,s)=I−isin⁡(γwr,s)M(r,s)+[cos⁡(γwr,s)−1]J(r,s).(21)e^{-i\gamma H^{(r,s)}} = I - i\sin(\gamma w_{r,s})M^{(r,s)} + [\cos(\gamma w_{r,s}) - 1]J^{(r,s)}. \tag*{(21)}

This matrix acts non-trivially only on the subspace spanned by nodes rr and ss and as the identity on the rest of the Hilbert space. Thus, the block matrix of e−iγH(r,s)e^{-i\gamma H^{(r,s)}} takes the following form

[e−iγH(r,s)]α,β={cos⁡(γwr,s)if α=r, β=rcos⁡(γwr,s)if α=s, β=s−isin⁡(γwr,s)if α=r, β=s−isin⁡(γwr,s)if α=s, β=r1if α=β, except r,s0otherwise.(22)\left[e^{-i\gamma H^{(r,s)}}\right]_{\alpha,\beta} = \begin{cases} \cos(\gamma w_{r,s}) & \text{if } \alpha= r,\ \beta= r\\ \cos(\gamma w_{r,s}) & \text{if } \alpha= s,\ \beta= s\\ -i\sin(\gamma w_{r,s}) & \text{if } \alpha= r,\ \beta= s\\ -i\sin(\gamma w_{r,s}) & \text{if } \alpha= s,\ \beta= r\\ 1 & \text{if } \alpha= \beta,\ \text{except } r,s\\ 0 & \text{otherwise}. \end{cases} \tag*{(22)}

Hence, using the explicit block matrix form of e−iγH(r,s)e^{-i\gamma H^{(r,s)}} in Eq. (22), and substituting it into Eq. (15), the block matrix representation of U(r,s)(γ)U^{(r,s)}(\gamma) follows directly.

Gate Structure of U(r,s)(γ) operator

For practical realization of CCTQW on quantum hardware, it is essential to efficiently decompose each U(r,s)(γ)U^{(r,s)}(\gamma) into a sequence of elementary gates. Insight into this decomposition can be gained from the closed-form expression in Eq. (21). Each exponential term e−iγH(r,s)e^{-i\gamma H^{(r,s)}} operates non-trivially as a rotation only within the two-dimensional subspace spanned by the basis states ∣r⟩\lvert r\rangle and ∣s⟩\lvert s\rangle. This allows us to realize e−iγH(r,s)e^{-i\gamma H^{(r,s)}} as a controlled two-level unitary that mixes amplitudes only between ∣r⟩\lvert r\rangle and ∣s⟩\lvert s\rangle. From the block matrix structure shown in Eq. (22), the effective two-level unitary operation on this subspace can be written as

F(r,s)=⟨r∣⟨s∣∣r⟩cos⁡(γwr,s)−isin⁡(γwr,s)∣s⟩−isin⁡(γwr,s)cos⁡(γwr,s).(23)F^{(r,s)} = \begin{array}{c|cc} & \langle r| & \langle s|\\ \hline |r\rangle& \cos(\gamma w_{r,s}) & -i\sin(\gamma w_{r,s})\\ |s\rangle& -i\sin(\gamma w_{r,s}) & \cos(\gamma w_{r,s}) \end{array}. \tag*{(23)}

The matrix F(r,s)F^{(r,s)} is structurally equivalent to a single-qubit RxR_x rotation. Hence, the general construction of U(r,s)(γ)U^{(r,s)}(\gamma) involves multi-controlled RxR_x gates that selectively activate when the corresponding states in the contingency register are ∣1⟩|1\rangle and the corresponding input states in the Walker register are either ∣r⟩|r\rangle or ∣s⟩|s\rangle. As an example, we provide explicit gate-level implementations of the U(r,s)(γ)U^{(r,s)}(\gamma) related to a CCTQW on the 8-bus power network topology in Section VI-A below.

Trotter error analysis

The CCTQW operator UCQW(f)(γ)U_{\mathrm{CQW}}^{(f)}(\gamma) is implemented as a finite product of edge-wise controlled unitary operators. This introduces an approximation to the ideal continuous-time evolution. Understanding how this error scales with the system size (e.g., number of edges) and how it can be mitigated is therefore essential for the practical implementation of the proposed framework. In general, for a Hamiltonian H=∑j=1LHjH = \sum_{j=1}^{L} H_j, the number of Trotter steps required to approximate the evolution e−itHe^{-itH} with error at most ε\varepsilon is given by [17]

R1=O((tΛL)2ε)R_1 = \mathcal{O}\left(\frac{(t\Lambda L)^2}{\varepsilon}\right)
R2k=O((tΛL)1+12kε12k).(24)R_{2k} = \mathcal{O}\left(\frac{(t\Lambda L)^{1+\frac{1}{2k}}}{\varepsilon^{\frac{1}{2k}}}\right). \tag*{(24)}

where LL is the number of non-commuting Hamiltonian terms and Λ:=max⁡j∥Hj∥\Lambda:= \max_j \lVert H_j\rVert is a spectral-norm bound. Here R1R_1 corresponds to the first-order Lie–Trotter formula, while R2kR_{2k} gives the number of steps required for a (2k)(2k)th-order Suzuki formula. The bounds in Eq. (24) highlight that the Trotter step is primarily governed by two quantities: the number of terms LL and the spectral norm Λ\Lambda. In the proposed CCTQW framework, the controlled Hamiltonian evolution is given by Eq. (14). From its decomposition, the naive number of Hamiltonian terms is L=∣E∣=NL = |E| = N and the associated spectral-norm parameter is Λ=max⁡(r,s)∈E∥(Π1(er,s)⊗H(r,s))∥\Lambda= \max_{(r,s)\in E}\left\lVert\bigl(\Pi_1^{(e_{r,s})}\otimes H^{(r,s)}\bigr)\right\rVert. The mitigation strategies discussed in the following subsections are therefore directly aimed at reducing the effective number of terms.

Regrouping commuting edge terms to reduce LL

A key observation is that edge-local Hamiltonians corresponding to disjoint edges commute. Specifically, if (r,s)(r,s) and (r′,s′)(r',s') share no common node, then [H(r,s),H(r′,s′)]=0[H^{(r,s)},H^{(r',s')}] = 0. This allows the edge set EE to be partitioned into commuting groups. Such a partitioning corresponds to the edge-colouring problem, in which each colour class defines a commuting set of edges [24]. By Vizing’s theorem, the number of colours and hence the number of commuting groups satisfies χ≤Δ+1\chi\le\Delta+ 1, where Δ\Delta is the maximum degree of the graph [25]. Efficient classical algorithms, such as the Misra–Gries edge-colouring algorithm [26], as well as more recent nearly-linear-time methods [27], can construct such a colouring with worst-case runtime O(∣E∣log⁡Δ)O(|E|\log\Delta).

In our implementation, the edge-coloring is used to organize the controlled edge unitaries U(r,s)(γ)U^{(r,s)}(\gamma) according to their commutation structure. We partition the edge set into color classes {Θj}j=1χ\{\Theta_j\}_{j=1}^{\chi} such that all edges within each class are mutually disjoint. Accordingly, the corresponding operators {U(r,s)(γ):(r,s)∈Θj}\{U^{(r,s)}(\gamma):(r,s)\in\Theta_j\} are grouped together within the construction of UQW(j)(γ)U_{\mathrm{QW}}^{(j)}(\gamma). Since the grouping of U(r,s)(γ)U^{(r,s)}(\gamma) operators is constructed based on the commutation relations of H(r,s)H^{(r,s)}, the same commutation structure is inherited by the resulting sequence of e−iγH(r,s)e^{-i\gamma H^{(r,s)}} operators acting on the walker state. This allows the product-formula sequence to be organized into χ≤Δ+1\chi\le\Delta+ 1 commuting layers.

Typically, power networks are sparse and possess a relatively small maximum nodal degree Δ\Delta compared to the number of buses. Hence, for a power network, the number of commuting groups remains limited even as system size grows. Empirical studies on benchmark transmission networks further support this observation. In particular, for networks from the NESTA archive, it has been shown that the maximum node degree Δ\Delta grows approximately logarithmically with the number of buses [28]. As a result, Δ\Delta remains bounded by a modest constant for most practical cases, implying that the edge-colouring–based grouping reduces the overall circuit depth, even for large-scale systems.

Spectral norm and edge weights

The number of Trotter steps required to approximate the continuous-time evolution depends not only on the number of non-commuting Hamiltonian terms LL, but also on the spectral norm bound Λ\Lambda, as shown in Eq. (24). We now show how edge weights directly influence this quantity and can therefore impact the number of Trotter steps. Recall that, from Eq. (14), we can write Λ=max⁡(r,s)∈E∥Π1(er,s)⊗H(r,s)∥\Lambda= \max_{(r,s)\in E}\left\|\Pi_1^{(e_{r,s})}\otimes H^{(r,s)}\right\|. Using the property ∥A⊗B∥=∥A∥∥B∥\|A\otimes B\|=\|A\|\|B\| and noting that Π1(er,s)\Pi_1^{(e_{r,s})} is an orthogonal projector with ∥Π1(er,s)∥=1\|\Pi_1^{(e_{r,s})}\|=1, we obtain Λ=max⁡(r,s)∈E∥H(r,s)∥\Lambda= \max_{(r,s)\in E}\|H^{(r,s)}\|. Moreover, using the scaling property of the operator norm, ∥H(r,s)∥=∣wr,s∣∥M(r,s)∥\|H^{(r,s)}\|=|w_{r,s}|\|M^{(r,s)}\|. The matrix M(r,s)M^{(r,s)} acts nontrivially only on the two-dimensional subspace

spanned by {vr,vs}\{v_r,v_s\}. On that subspace, it has the Pauli-X form, while all other entries are zero. The corresponding 2×22\times2 block has eigenvalues ±1\pm1, and the remaining eigenvalues are all 0. Since the matrix is real symmetric, its spectral norm equals the largest absolute eigenvalue, and hence ∥M(r,s)∥=1\|M^{(r,s)}\|=1. It follows that Λ=max⁡(r,s)∈E∣wr,s∣\Lambda=\max_{(r,s)\in E}|w_{r,s}|. This result shows that the spectral-norm parameter governing the Trotter step is determined solely by the maximum edge weight.

Results

This section presents the implementation and numerical results of the proposed CCTQW framework on an 8-bus system under N−2N-2 contingencies, including a comparison with classical centrality measures.

The 8-bus system

The associated graph representation of the 8-bus system is shown in Figure 2. The system consists of N=9N=9 transmission lines, and we consider contingency scenario x=2x=2, corresponding to all double-line outage configurations. The adjacency matrix of the weighted graph representing the 8-bus system is denoted by A(8)=[wrs]A^{(8)}=[w_{rs}]. The weights are defined for unordered pairs r<sr<s such that wrs=wsrw_{rs}=w_{sr} and wrr=0w_{rr}=0. The nonzero edge weights are chosen as w13=w56=0.12w_{13}=w_{56}=0.12, w34=w45=0.11w_{34}=w_{45}=0.11, w16=0.20w_{16}=0.20, w12=w26=0.09w_{12}=w_{26}=0.09, and w17=w68=0.08w_{17}=w_{68}=0.08, while all remaining entries are zero. These values are selected to represent a stronger meshed backbone 1−6−5−4−3−11-6-5-4-3-1 and a weaker peripheral corridor 7−1−2−6−87-1-2-6-8. For our quantum approach, we normalize the weights so that ∑{r,s}wrs=1\sum_{\{r,s\}}w_{rs}=1. The corresponding quantum circuit diagram which shows the internal structure of the CCTQW on the 8-bus system is given in Figure 3.

Graph representation of the 8-bus network

Figure 2. Graph representation of the 8-bus network. Edges are colored according to their commuting groups used in the edge-coloring based Trotter–Suzuki decomposition: Group 1 {(1,7),(2,6)}\{(1,7),(2,6)\}, Group 2 {(1,6)}\{(1,6)\}, Group 3 {(6,8),(4,5)}\{(6,8),(4,5)\}, Group 4 {(5,6),(1,3)}\{(5,6),(1,3)\}, Group 5 {(3,4),(1,2)}\{(3,4),(1,2)\}.

Internal structure of the first-order CCTQW operator

Figure 3. Internal structure of the first-order CCTQW operator UQW(1)(γ)U_{QW}^{(1)}(\gamma) for the 8-bus system. The controlled edge-wise unitaries are applied in a fixed ordering, corresponding to the forward pass. Gate colors indicate commuting groups, consistent with Figure 2.

For illustration, Figure 4 shows the gate decomposition of the unitary corresponding to edge (1,3)(1,3). The unitaries for the remaining edges are constructed using a single RxR_x rotation together with a combination of XX and CNOT gates. The evolved joint state is given by ∣Ψ~t⟩=[UQW(1)(tR)]R∣D~x9⟩⊗∣ϕ~0⟩|\widetilde{\Psi}_t\rangle=\left[U_{\mathrm{QW}}^{(1)}\left(\frac{t}{R}\right)\right]^R|\widetilde{\mathcal{D}}_x^9\rangle\otimes|\widetilde{\phi}_0\rangle where ∣D~x9⟩|\widetilde{\mathcal{D}}_x^9\rangle is the Dicke state after applying the multi controlled Pauli-X gate as described in Section III-A and ∣ϕ~0⟩|\tilde{\phi}_0\rangle initial states are defined using Eqs. (9) and (9) forming the initial state Eq. (11). In this work, we employ the first-order Trotter–Suzuki formula. The numerical results are obtained using algebraic simulations, while equivalent Qiskit circuit simulations reproduce the same results.

Gate-level realization of the unitary operator

Figure 4. Gate-level realization of the unitary operator U8(1,3)(γ)U_{8}^{(1,3)}(\gamma) corresponding to the edge (1,3)(1,3) in the 8-bus system. The qubits qi∈{0,1,2}q_i \in\{0,1,2\} belong to the walker register and the qubit c7c_7, which belongs to the contingency register, corresponds to the edge (1,3)(1,3).

Numerical Error Analysis

For the numerical analysis, we explicitly examine the dependence of the contingency-averaged occupation centrality on the finite observation horizon TT, sampling interval Δt\Delta t, and number of Trotter steps RR. Accordingly, we denote the finite numerical estimate as Ωj(T,Δt,R)\Omega_j(T,\Delta t,R). This notation represents the same metric Ωj\Omega_j defined in Eq. (19), while making its dependence on the numerical parameters explicit. We first define the asymptotic contingency-averaged occupation centrality, which serves as the reference for the numerical analysis. For the kk-th contingency-induced graph, let

H(k)=∑λλΠλ(k)H^{(k)}=\sum_{\lambda}\lambda\Pi_{\lambda}^{(k)}

denote the spectral decomposition of its Hamiltonian, where Πλ(k)\Pi_{\lambda}^{(k)} is the projector onto the eigenspace associated with eigenvalue λ\lambda. Using Eq. (3), the exact infinite-time occupation centrality at node jj of the kk-th contingency-induced graph is C~j,exact(k)=∑λ∣⟨j∣Πλ(k)∣ϕ~0⟩∣2\tilde{C}_{j,\mathrm{exact}}^{(k)}=\sum_{\lambda}\lvert\langle j\vert\Pi_{\lambda}^{(k)}\vert\tilde{\phi}_0\rangle\rvert^2. Therefore, we define the asymptotic contingency-averaged occupation centrality as

Ωj∞=1(92)∑k=1(92)C~j,exact(k).(25)\Omega_j^\infty=\frac{1}{\binom{9}{2}}\sum_{k=1}^{\binom{9}{2}}\tilde{C}_{j,\mathrm{exact}}^{(k)}. \tag*{(25)}

Next we examine the effect of the finite observation horizon TT and the sampling interval Δt\Delta t, independently of the Trotter approximation. For this purpose, the occupation probabilities of the kk-th graph are evaluated using the exact propagator, Pj(k)(tτ)=∣⟨j∣e−iH(k)tτ∣ϕ~0⟩∣2P_j^{(k)}(t_\tau)=\lvert\langle j\vert e^{-iH^{(k)}t_\tau}\vert\tilde{\phi}_0\rangle\rvert^2. We denote the corresponding finite-time contingency-averaged occupation centrality by

Ωj(T,Δt,∞)=1(92)∑k=1(92)1S∑τ=1SPj(k)(tτ)andS=TΔt(26)\Omega_j(T,\Delta t,\infty)=\frac{1}{\binom{9}{2}}\sum_{k=1}^{\binom{9}{2}}\frac{1}{S}\sum_{\tau=1}^{S}P_j^{(k)}(t_\tau) \quad\text{and}\quad S=\frac{T}{\Delta t} \tag*{(26)}

where tτ=τΔtt_\tau=\tau\Delta t for τ=1,…,S\tau=1,\ldots,S. Here, R=∞R=\infty indicates that the exact propagator is used and no Trotter approximation is introduced. Figure 5 shows the relative error as a function of the observation horizon TT for different sampling intervals Δt\Delta t. For clarity, the figure presents the results for Nodes 1 and 7 as representative examples. As shown in Figure 5, the relative error generally decreases with increasing observation horizon TT for all considered sampling intervals. In particular, the results obtained with Δt=0.5\Delta t=0.5 and Δt=1\Delta t=1 are nearly indistinguishable over the considered range of TT. This indicates that reducing the sampling interval below Δt=1\Delta t=1 provides no appreciable improvement for the present analysis. Therefore, we set Δt=1\Delta t=1 for the subsequent numerical investigations.

Relative error for Nodes 1 and 7 under different sampling steps

Figure 5. Relative error ∣Ωj(T,Δt,∞)−Ωj∞∣/Ωj∞|\Omega_j(T,\Delta t,\infty)-\Omega_j^\infty|/\Omega_j^\infty for the weighted 8-bus system under N−2N-2 contingencies using the exact time average Ωj∞\Omega_j^\infty as a function of the total time horizon TT and four different sampling steps Δt\Delta t. Both axes are logarithmically scaled. We show backbone node (Node 1, top) and a peripheral node (Node 7, bottom). All four sampling steps Δt\Delta t show a decay with TT and reach comparable accuracy at T=106T=10^6. The fine resolutions Δt≤1\Delta t\leq1 nearly coincide for the full time horizon. Visible oscillations come from possible cancellations between eigenvalue-difference frequencies, so isolated dips should not be understood as improved convergence.

We next investigate the influence of the finite observation horizon TT and the number of Trotter steps RR. We denote the resulting finite-time, Trotterized estimate by Ωj(T,1,R)\Omega_j(T,1,R). Figure 6 shows the relative error for Node 1 as a function of the observation horizon TT for different values of RR. The results show that both TT and RR influence the accuracy of the estimated occupation centrality. In particular, as RR increases, the finite-RR results approach the R→∞R\to\infty reference, demonstrating the convergence of the Trotterized evolution toward the exact time evolution.

Relative error for different Trotter steps

Figure 6. Relative error ∣Ωj(T,1,R)−Ωj∞∣/Ωj∞|\Omega_j(T,1,R)-\Omega_j^\infty|/\Omega_j^\infty for the weighted 8-bus system under N−2N-2 contingencies using the exact time average Ωj∞\Omega_j^\infty as a function of the total time horizon TT and at fixed Δt=1\Delta t=1. The different curves show different finite Trotter steps RR. The dots indicate results for R→∞R\to\infty, implying that no Trotter error is introduced.

The primary objective of the proposed metric Ωj\Omega_j in Eq. (19) is to rank the nodes according to their contingency-averaged importance. We therefore examine whether the node ranking can already be recovered for finite values of TT and RR. Figure 7 shows Ωj(T,Δt=1,R)\Omega_j(T,\Delta t=1,R) for all eight nodes of the weighted 8-bus system under N−2N-2 contingencies using T=R∈{10,100,10000}T=R\in\{10,100,10000\}. For the asymptotic reference, the node ordering is 1=6>3=5>2>4>7=81=6>3=5>2>4>7=8. According to Figure 7, even for relatively small TT and RR, the dominant structure of the ranking is already visible, with Nodes 1 and 6 having the largest occupation centralities and Nodes 7 and 8 remaining among the least important nodes. The ordering of the intermediate nodes is more sensitive to finite-TT and finite-RR effects. As TT and RR increase, the finite estimates approach the asymptotic values and the corresponding node ordering converges toward the exact ranking. Importantly, even for T=R=100T=R=100, the dominant ranking structure is already captured, with Nodes 1 and 6 identified as the most central and Nodes 7 and 8 among the least central. This demonstrates that a meaningful node ranking can be obtained using relatively small values of TT and RR, without requiring full numerical convergence of Ωj\Omega_j. This is particularly relevant for the proposed application, since the objective is to identify the relative importance of the nodes rather than to reproduce the asymptotic centrality values with arbitrarily high precision.

Figure 7. Contingency-averaged occupation probability Ωj\Omega_j for all eight nodes of the weighted 8-bus system under N−2N-2 contingencies. The most left bar shows the exact asymptotic value Ωj∞\Omega_j^\infty. The following bars are associated to a finite observation window TT and step count RR, whereby we choose T=R∈{10,100,100000}T=R\in\{10,100,100000\} for Δt=1\Delta t=1. The dashed line marks the uniform initial probability 1/81/8. Notably, even low T,RT,R suffice to achieve a node ranking that matches the exact node ranking qualitatively.

Comparison to Classical Centrality

To provide a qualitative comparison with classical centrality-based contingency screening approaches, we evaluate the proposed CCTQW-based framework against betweenness centrality, closeness centrality, and current-flow betweenness centrality on the weighted 8-bus system under N−2N-2 contingencies. We adopt the approach in [3] and extend the evaluation of these measures from individual network configurations to an ensemble of contingency-induced graphs. The 8-bus system consists of N=9N=9 transmission lines, yielding (92)=36\binom{9}{2}=36 double-line outage configurations. Excluding configurations that result in network islanding leaves 14 connected configurations. Let Cj,classical(k)C_{j,\mathrm{classical}}^{(k)} denote the centrality of node jj in configuration kk. The aggregated centrality is calculated as C~j,classical=∑k=114Cj,classical(k)\widetilde{C}_{j,\mathrm{classical}}=\sum_{k=1}^{14}C_{j,\mathrm{classical}}^{(k)}. The resulting values are then normalized across all nodes as C~j,classical/∑i=18C~i,classical\widetilde{C}_{j,\mathrm{classical}}/\sum_{i=1}^{8}\widetilde{C}_{i,\mathrm{classical}}. This procedure is applied to each of the three classical centrality measures.

As illustrated in Figure 8, the three classical centrality measures yield different node rankings under N−2N-2 contingencies. Betweenness centrality and current-flow betweenness centrality assign the highest values to Nodes 1 and 6, while closeness centrality produces a more uniform ranking with comparatively smaller differences among the nodes. In particular, betweenness and current-flow betweenness centralities assign zero values to peripheral Nodes 7 and 8, whereas closeness centrality yields nonzero values for these nodes.

Figure 8. Normalized classical centrality measures for the weighted 8-bus system under N−2N-2 contingencies, aggregated over the connected contingency-induced graphs.

The classical results show qualitative agreement with the proposed CCTQW-based metric, particularly in identifying Nodes 1 and 6 as the most central. However, while betweenness and current-flow betweenness centralities assign zero values to peripheral nodes, the CCTQW-based metric assigns nonzero occupation probabilities to all nodes, allowing them to be ranked according to their contingency-averaged occupation centrality Ωj\Omega_j. Overall, the comparison demonstrates that the proposed CCTQW framework produces node rankings that are qualitatively consistent with established classical centrality measures.

Discussion

The main computational motivation of the proposed framework is that the number of contingency scenarios grows combinatorially as (Nx)\binom{N}{x}, where NN is the number of transmission lines and xx is the number of simultaneous outages. In a classical approach, centrality measures must be evaluated separately for each of the (Nx)\binom{N}{x} contingency-induced subgraphs. In contrast, the proposed CCTQW framework encodes all N−xN-x contingency configurations in a quantum superposition in the form of a Dicke state and evolves the quantum walker conditionally on the encoded network topology. As a consequence, for a fixed time, the resulting state contains branches corresponding to the walk dynamics on all subgraphs in the chosen contingency class.

The node-ranking metric Ωj\Omega_j is obtained from repeated measurements and reflects aggregated statistical properties of the contingency ensemble rather than individual contingency outcomes. Estimating it from repeated measurements does not by itself establish a quantum speedup over classical sampling of the same ensemble. Nevertheless, the proposed CCTQW framework could provide a foundation for future Grover-type search algorithms aimed at identifying relevant contingency configurations. Such an extension would require defining a suitable configuration-dependent importance score and evaluating it coherently to construct a marking oracle for configurations represented by computational basis states with Hamming weight N−xN-x.

We now discuss the quantum resources required to realize this framework. The required number of qubits scales as N+⌈log⁡2n⌉N+\lceil\log_2 n\rceil where NN qubits are used for the contingency register and ⌈log⁡2n⌉\lceil\log_2 n\rceil qubits are used for the walker register.

The circuit depth is determined by three main components: the Dicke-state preparation for the contingency register, the preparation of the initial walker state, and the implementation of the controlled Hamiltonian evolution. For product-formula approach, the depth scales with the number of Trotter steps RR, the number of controlled edge-local operators, and the gate decomposition cost of each U(r,s)(γ)U^{(r,s)}(\gamma). The number of Trotter steps can be significantly reduced by regrouping commuting edge terms. Since power networks are inherently sparse, the number of edge-local Hamiltonian terms remains relatively small compared to Hamiltonians typically encountered in quantum chemistry or many-body simulations. Consequently, the overall product-formula implementation is more structured and potentially less demanding in circuit depth. The gate decomposition cost of each U(r,s)(γ)U^{(r,s)}(\gamma) depends on the size of the walker register, as the operator selectively applies an RxR_x rotation on the subspace spanned by the states {∣r⟩,∣s⟩}\{|r\rangle,|s\rangle\} while leaving all other basis states unchanged.

The measurement cost depends on the desired statistical accuracy of the estimated probabilities Qj(tτ)Q_j(t_\tau). Since Ωj\Omega_j is obtained by averaging over SS sampling times, the circuit must be executed repeatedly for each time point to estimate the walker occupation probabilities. Thus, although the CCTQW avoids treating every contingency subgraph separately, it introduces a sampling overhead. The total sampling cost depends on the target precision of the estimated node probabilities. Whether this sampling overhead is favorable compared to classical centrality evaluation on each of the (Nx)\binom{N}{x} subgraphs separately remains an open question and is left for future analysis.

Conclusion

This paper presented a Controlled Continuous-Time Quantum Walk framework for power-grid analysis under N−xN-x contingencies. The proposed framework encodes (Nx)\binom{N}{x} contingency-induced subgraphs in a quantum superposition, enabling a single coherent QW evolution over the entire contingency ensemble. The key contribution of this paper is the formulation and circuit-level realization of this controlled quantum-walk methodology. To demonstrate the applicability of the proposed framework to power-grid analysis under N−xN-x contingencies, a contingency-averaged occupation centrality measure was defined to rank nodes according to their structural importance. Numerical results on an 8-bus system under N−2N-2 contingencies showed qualitative agreement with established classical centrality measures, particularly in identifying the most central nodes. Importantly, the dominant node-ranking structure can be recovered using relatively small values of TT and RR, without requiring full numerical convergence of the centrality values. This suggests that meaningful results can be obtained with fewer Trotter steps and shorter observation time horizons, potentially reducing the circuit depth and overall computational requirements of the proposed framework. These findings provide a foundation for further investigations into quantum-walk-based approaches to power-system security assessment.

Nevertheless, several limitations remain. First, the current validation is restricted to topology-based analysis on a small test system, and the relationship between the proposed metric and physical security indicators (e.g., overloads or voltage violations) has not yet been established. Second, rigorous computational advantage over classical approaches is still to be demonstrated. Third, the circuit depth required for accurate Hamiltonian simulation may limit applicability on near-term quantum hardware.

Future work should focus on integrating power-flow-based metrics, validating performance on large-scale systems, and establishing clear comparisons with classical methods for critical component identification under contingencies. Additionally, exploring alternative quantum implementations with reduced depth and resource requirements will be essential for practical scalability.

Finally, the proposed framework can be viewed as Grover-inspired, in the sense that a superposition of computational basis states provides a representation of the contingency search space. In a full Grover-type search, a marking oracle is required to identify relevant contingency configurations via a phase flip. Defining such an oracle is non-trivial and would require a coherent and reversible implementation of an appropriate configuration-dependent importance criterion. In the present work, the centrality measure is defined directly from measurement statistics of the CCTQW, which does not by itself imply a quantum advantage over classical sampling. Nevertheless, the resulting node-ranking score could provide a starting point for developing suitable configuration-dependent objective functions for such an oracle. Identifying and systematically analyzing suitable walk-based scores for this purpose remains an important direction for future work.

Acknowledgments

The paper was written as part of the project “Quantum-based Energy Grids (QuGrids)”, which is receiving funding from the programme “Profilbildung 2022”, an initiative of the Ministry of Culture and Science of the State of North Rhine-Westphalia.

References

References

  1. [1]ENTSO-E, “Final report on the grid incident in south-east europe on 21 june 2024,” European Network of Transmission System Operators for Electricity (ENTSO-E), Brussels, Belgium, Tech. Rep., Feb. 2025. [Online]. Available: https://www.entsoe.eu/news/2025/02/25/entso-e-publishes-the-final-report-on-the-grid-incident-in-south-east-europe
  2. [2]M. Halappanavar, Y. Chen, R. Adolf, D. Haglin, Z. Huang, and M. Rice, “Towards efficient nx contingency selection using group betweenness centrality,” in 2012 SC Companion: High Performance Computing, Networking Storage and Analysis. IEEE, 2012, pp. 273–282.DOI
  3. [3]E. P. R. Coelho, M. H. M. Paiva, M. E. Sagatto, and G. Caparossi, “A new approach for contingency analysis based on centrality measures,” IEEE Systems Journal, vol. 13, no. 2, pp. 1915–1923, 2018.DOI
  4. [4]A. K. Srivastava, T. A. Ernster, R. Liu, and V. G. Krishnan, “Graph-theoretic algorithms for cyber-physical vulnerability analysis of power grid with incomplete information,” Journal of Modern Power Systems and Clean Energy, vol. 6, no. 5, pp. 887–899, 2018.DOI
  5. [5]M. R. Narimani, H. Huang, A. Umunnakwe, Z. Mao, A. Sahu, S. Zonouz, and K. Davis, “Generalized contingency analysis based on graph theory and line outage distribution factor,” IEEE Systems Journal, vol. 16, no. 1, pp. 626–636, 2021.arxiv.org/abs/2007.07009
  6. [6]J. Kempe, “Quantum random walks: an introductory overview,” Contemporary Physics, vol. 44, no. 4, pp. 307–327, 2003.
  7. [7]N. Shenvi, J. Kempe, and K. B. Whaley, “Quantum random-walk search algorithm,” Physical Review A, vol. 67, no. 5, p. 052307, 2003.DOI
  8. [8]K. Kadian, S. Garhwal, and A. Kumar, “Quantum walk and its application domains: A systematic review,” Computer Science Review, vol. 41, p. 100419, 2021.DOI
  9. [9]A. M. Childs, “Universal computation by quantum walk,” Physical Review letters, vol. 102, no. 18, p. 180501, 2009.pubmed.ncbi.nlm.nih.gov/19518851
  10. [10]J. Wang and K. Manouchehri, “Physical implementation of quantum walks,” Heidelberg, Springer Berlin, vol. 10, pp. 978–3, 2013.DOI
  11. [11]P. Boito and R. Grena, “Ranking nodes in directed networks via continuous-time quantum walks,” Quantum Information Processing, vol. 22, no. 6, p. 246, 2023.arxiv.org/abs/2210.13379
  12. [12]L. Rossi, A. Torsello, and E. R. Hancock, “Node centrality for continuous-time quantum walks,” in Structural, Syntactic, and Statistical Pattern Recognition: Joint IAPR International Workshop, S+SSPR 2014, Joensuu, Finland, August 20-22, 2014. Proceedings. Springer, 2014, pp. 103–112.DOI
  13. [13]Y. Wang, B. Xue, J. Wu, and P. Xu, “Continuous-time quantum walk based centrality testing on weighted graphs,” Scientific Reports, vol. 12, no. 1, p. 6001, 2022.DOI
  14. [14]Z. Chen, G. Li, and L. Li, “Implementation of a continuous-time quantum walk on a sparse graph,” Physical Review A, vol. 110, no. 5, p. 052215, 2024.DOI
  15. [15]T. Loke and J. B. Wang, “Efficient quantum circuits for continuous-time quantum walks on composite graphs,” Journal of Physics A: Mathematical and Theoretical, vol. 50, no. 5, p. 055303, 2017.DOI
  16. [16]R. Portugal and J. K. Moqadam, “Efficient circuit implementations of continuous-time quantum walks for quantum search,” Entropy, vol. 27, no. 5, p. 454, 2025.DOI
  17. [17]A. M. Childs, A. Ostrander, and Y. Su, “Faster quantum simulation by randomization,” Quantum, vol. 3, p. 182, 2019.DOI
  18. [18]Z.-J. Zhang, J. Sun, X. Yuan, and M.-H. Yung, “Low-depth hamiltonian simulation by an adaptive product formula,” Physical Review Letters, vol. 130, no. 4, p. 040601, 2023.DOI
  19. [19]E. Campbell, “A random compiler for fast hamiltonian simulation,” Physical Review Letters, vol. 123, no. 7, p. 070503, 2019.DOI
  20. [20]A. Bärtschi and S. Eidenbenz, “Short-depth circuits for dicke state preparation,” in 2022 IEEE International Conference on Quantum Computing and Engineering (QCE). IEEE, 2022, pp. 87–96.DOI
  21. [21]R. H. Dicke, “Coherence in spontaneous radiation processes,” Phys. Rev., vol. 93, pp. 99–110, Jan 1954. [Online]. Available: https://link.aps.org/doi/10.1103/PhysRev.93.99DOI
  22. [22]M. Mottonen, J. J. Vartiainen, V. Bergholm, and M. M. Salomaa, “Transformation of quantum states using uniformly controlled rotations,” arXiv preprint quant-ph/0407010, 2004.arxiv.org/abs/quant-ph/0407010
  23. [23]A. N. Soklakov and R. Schack, “Efficient state preparation for a register of quantum bits,” Physical Review A—Atomic, Molecular, and Optical Physics, vol. 73, no. 1, p. 012307, 2006.DOI
  24. [24]Y. Cao, G. Chen, G. Jing, M. Stiebitz, and B. Toft, “Graph edge coloring: a survey,” Graphs and Combinatorics, vol. 35, no. 1, pp. 33–66, 2019.DOI
  25. [25]C. Berge and J. C. Fournier, “A short proof for a generalization of vizing’s theorem,” Journal of graph theory, vol. 15, no. 3, pp. 333–336, 1991.DOI
  26. [26]J. Misra and D. Gries, “A constructive proof of vizing’s theorem,” Information Processing Letters, vol. 41, no. 3, pp. 131–133, 1992.DOI
  27. [27]S. Assadi, S. Behnezhad, S. Bhattacharya, M. Costa, S. Solomon, and T. Zhang, “Vizing’s theorem in near-linear time,” in Proceedings of the 57th Annual ACM Symposium on Theory of Computing, 2025, pp. 24–35.
  28. [28]J. A. Kersulis, I. A. Hiskens, C. Coffrin, and D. K. Molzahn, “Topological graph metrics for detecting grid anomalies and improving algorithms,” in 2018 Power Systems Computation Conference (PSCC). IEEE, 2018, pp. 1–7.DOI

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

License
CC0-1.0
Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type