WorksPhysics and Astronomy
Controlled Continuous-Time Quantum Walks for Power Grid Analysis under N-x Contingencies
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 contingency analysis grows combinatorially with power system size. An increase in 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 . Consequently, as both and 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 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 analysis already requires about 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 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 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 contingency-induced subgraphs, where 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 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 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 where denotes the set of nodes, corresponding to buses or substations in the power grid. The edge set represents the connections between buses, e.g. transmission lines. The number of lines is denoted by . For convenience, we enumerate the edges as , where each edge corresponds to the node pair . 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 with vertices describes the unitary time evolution of a quantum walker whose state lies in the Hilbert space spanned by the computational basis states , where each basis state corresponds to vertex of . The evolution of the CTQW on the graph is governed by the Schrödinger equation ()
where is the Hamiltonian of the system. Typically, 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 of directly as the Hamiltonian that governs the dynamics of the walker. The (weighted) adjacency matrix is defined as
where . The adjacency matrix representation naturally distinguishes between two types of graphs. When all edge weights are unity (i.e., for all ), 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 , where is the amplitude of finding the walker at node at time . The probability of finding the walker at node at time is . The corresponding occupation (time-averaged) centrality is defined as [11, 13]
In practice, the asymptotic time average in Eq. (3) is estimated over a finite observation horizon by sampling the occupation probabilities at discrete times . The occupation (time-averaged) centrality is then approximated as
where is the number of samples, for and . The accuracy of this approximation depends on the finite observation horizon and the sampling interval .
Implementation of CTQW on a gate-based architecture
From a computational perspective, evaluating the time-averaged occupation probability requires implementing the unitary evolution operator 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 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 , each associated with an edge , so that
We define a matrix of the following form
where is the -th standard basis column vector with a 1 in the -th position and 0 elsewhere. Now, we define the edge–local transition matrix as
where is the -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. , using Lie product formula yields
Using finite steps , we can approximate the time evolution according to
where the arrow indicates that the product over edges follows a fixed ordering of , while 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 or into a sequence of single- and multi-qubit gates. In practice, is kept finite, which introduces an approximation error that depends on the number of steps , the total evolution time , 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 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 subgraphs. It consists of qubits, where represents the number of edges in the power grid. The -th qubit in the contingency register encodes whether the -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 qubits, where is the number of nodes and denotes the ceiling function. First, the contingency register is prepared in an equal superposition of all configurations corresponding to 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.

Figure 1. Conceptual quantum circuit for the CCTQW. The contingency ( qubits) and walker ( qubits) registers are prepared into the joint state and evolved under to yield , from which the sampling is performed. Here, denotes the order of Trotter-Suzuki formula used, is a tunable parameter and 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 subgraphs, we need to create the superposition of the encoded subgraphs in the contingency register where qubits are 0. To address this challenge we use short-depth quantum circuits that deterministically prepare Dicke state , an equal-amplitude superposition of all -qubit computational basis states with a fixed Hamming weight [20, 21]. Hence, the contingency states are prepared as
where is the set of all -bitstrings with Hamming weight . For example, with and the corresponding Dicke state reads . Note that, since the standard Dicke state contains ones and zeros, we apply Pauli- gates to all qubits after state preparation written as to obtain a superposition containing zeros and 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
where is the number of nodes. If is a power of two (i.e., for some ), the walker register can be initialized using Hadamard gates as . For , the walker register is embedded into a Hilbert space of dimension . In this case, one may prepare a uniform superposition over all basis states using Hadamard gates and restrict the dynamics to the first states.
Alternatively, one may directly prepare the uniform superposition over the first 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
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 , where is of dimension and populated by quantum states of the form where indicating the operational status of edge i.e. and 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 , let
where and denote the projectors onto the subspaces in which the qubit associated with edge is in state and , respectively, and denotes the index of that edge in the enumeration . Then, the overall Hamiltonian can be written as which activates the contribution of edge only when the -th qubit is in state . Using Lie product formula, the corresponding overall time-evolution operator is given by
The first- and second-order product-formula approximations of the controlled time-evolution operator for a finite number of Trotter steps 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
where is a tunable parameter. The operator governs the transition of the quantum walker between nodes and , conditioned on the state of the qubit in the contingency register. Using the projector property, the operator can be written in the explicit form
which shows that the evolution generated by is applied only when the corresponding contingency qubit is in the state , and otherwise the identity operation is applied. Finally, the CCTQW operator , 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
where the arrow denotes a fixed ordering over edges, while denotes the reverse ordering. By setting and applying , where denotes the first- and second-order product-formula approximations, respectively, we obtain an -step approximation to the controlled time-evolution operator in Eq. (13), corresponding to a total evolution time . The explicit matrix representation and gate-level decomposition of 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 , given by
where is defined in Eq. (11) and is the number of Trotter steps and denotes the order of Trotter-Suzuki formula. Measuring only the walker register in the computational basis yields the probability of finding the walker at node at time averaged over contingencies. The contingency-averaged occupation probability is given by , where is the partial trace over the contingency register. Let the total observation window be , and the number of discrete samples be , with time step and sampling times for . The contingency-aware occupation centrality of node is then defined as
Operationally, the metric is obtained by repeatedly executing the quantum circuit, measuring the walker register in the computational basis at discrete times , and estimating the probability of observing the walker at node .
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 , 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 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 edge we define . To aid in simplifying powers of , let us define a matrix of the form which acts as a projector onto the subspace involving nodes and . It can be shown that the transition matrices satisfy the following algebraic identities
where is a positive integer. These identities enable us to write the operator as the matrix
This matrix acts non-trivially only on the subspace spanned by nodes and and as the identity on the rest of the Hilbert space. Thus, the block matrix of takes the following form
Hence, using the explicit block matrix form of in Eq. (22), and substituting it into Eq. (15), the block matrix representation of follows directly.
Gate Structure of U(r,s)(γ) operator
For practical realization of CCTQW on quantum hardware, it is essential to efficiently decompose each into a sequence of elementary gates. Insight into this decomposition can be gained from the closed-form expression in Eq. (21). Each exponential term operates non-trivially as a rotation only within the two-dimensional subspace spanned by the basis states and . This allows us to realize as a controlled two-level unitary that mixes amplitudes only between and . From the block matrix structure shown in Eq. (22), the effective two-level unitary operation on this subspace can be written as
The matrix is structurally equivalent to a single-qubit rotation. Hence, the general construction of involves multi-controlled gates that selectively activate when the corresponding states in the contingency register are and the corresponding input states in the Walker register are either or . As an example, we provide explicit gate-level implementations of the related to a CCTQW on the 8-bus power network topology in Section VI-A below.
Trotter error analysis
The CCTQW operator 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 , the number of Trotter steps required to approximate the evolution with error at most is given by [17]
where is the number of non-commuting Hamiltonian terms and is a spectral-norm bound. Here corresponds to the first-order Lie–Trotter formula, while gives the number of steps required for a th-order Suzuki formula. The bounds in Eq. (24) highlight that the Trotter step is primarily governed by two quantities: the number of terms and the spectral norm . In the proposed CCTQW framework, the controlled Hamiltonian evolution is given by Eq. (14). From its decomposition, the naive number of Hamiltonian terms is and the associated spectral-norm parameter is . 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
A key observation is that edge-local Hamiltonians corresponding to disjoint edges commute. Specifically, if and share no common node, then . This allows the edge set 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 , where 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 .
In our implementation, the edge-coloring is used to organize the controlled edge unitaries according to their commutation structure. We partition the edge set into color classes such that all edges within each class are mutually disjoint. Accordingly, the corresponding operators are grouped together within the construction of . Since the grouping of operators is constructed based on the commutation relations of , the same commutation structure is inherited by the resulting sequence of operators acting on the walker state. This allows the product-formula sequence to be organized into commuting layers.
Typically, power networks are sparse and possess a relatively small maximum nodal degree 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 grows approximately logarithmically with the number of buses [28]. As a result, 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 , but also on the spectral norm bound , 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 . Using the property and noting that is an orthogonal projector with , we obtain . Moreover, using the scaling property of the operator norm, . The matrix acts nontrivially only on the two-dimensional subspace
spanned by . On that subspace, it has the Pauli-X form, while all other entries are zero. The corresponding block has eigenvalues , and the remaining eigenvalues are all 0. Since the matrix is real symmetric, its spectral norm equals the largest absolute eigenvalue, and hence . It follows that . 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 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 transmission lines, and we consider contingency scenario , corresponding to all double-line outage configurations. The adjacency matrix of the weighted graph representing the 8-bus system is denoted by . The weights are defined for unordered pairs such that and . The nonzero edge weights are chosen as , , , , and , while all remaining entries are zero. These values are selected to represent a stronger meshed backbone and a weaker peripheral corridor . For our quantum approach, we normalize the weights so that . The corresponding quantum circuit diagram which shows the internal structure of the CCTQW on the 8-bus system is given in Figure 3.

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 , Group 2 , Group 3 , Group 4 , Group 5 .

Figure 3. Internal structure of the first-order CCTQW operator 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 . The unitaries for the remaining edges are constructed using a single rotation together with a combination of and CNOT gates. The evolved joint state is given by where is the Dicke state after applying the multi controlled Pauli-X gate as described in Section III-A and 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.

Figure 4. Gate-level realization of the unitary operator corresponding to the edge in the 8-bus system. The qubits belong to the walker register and the qubit , which belongs to the contingency register, corresponds to the edge .
Numerical Error Analysis
For the numerical analysis, we explicitly examine the dependence of the contingency-averaged occupation centrality on the finite observation horizon , sampling interval , and number of Trotter steps . Accordingly, we denote the finite numerical estimate as . This notation represents the same metric 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 -th contingency-induced graph, let
denote the spectral decomposition of its Hamiltonian, where is the projector onto the eigenspace associated with eigenvalue . Using Eq. (3), the exact infinite-time occupation centrality at node of the -th contingency-induced graph is . Therefore, we define the asymptotic contingency-averaged occupation centrality as
Next we examine the effect of the finite observation horizon and the sampling interval , independently of the Trotter approximation. For this purpose, the occupation probabilities of the -th graph are evaluated using the exact propagator, . We denote the corresponding finite-time contingency-averaged occupation centrality by
where for . Here, 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 for different sampling intervals . 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 for all considered sampling intervals. In particular, the results obtained with and are nearly indistinguishable over the considered range of . This indicates that reducing the sampling interval below provides no appreciable improvement for the present analysis. Therefore, we set for the subsequent numerical investigations.

Figure 5. Relative error for the weighted 8-bus system under contingencies using the exact time average as a function of the total time horizon and four different sampling steps . Both axes are logarithmically scaled. We show backbone node (Node 1, top) and a peripheral node (Node 7, bottom). All four sampling steps show a decay with and reach comparable accuracy at . The fine resolutions 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 and the number of Trotter steps . We denote the resulting finite-time, Trotterized estimate by . Figure 6 shows the relative error for Node 1 as a function of the observation horizon for different values of . The results show that both and influence the accuracy of the estimated occupation centrality. In particular, as increases, the finite- results approach the reference, demonstrating the convergence of the Trotterized evolution toward the exact time evolution.

Figure 6. Relative error for the weighted 8-bus system under contingencies using the exact time average as a function of the total time horizon and at fixed . The different curves show different finite Trotter steps . The dots indicate results for , implying that no Trotter error is introduced.
The primary objective of the proposed metric 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 and . Figure 7 shows for all eight nodes of the weighted 8-bus system under contingencies using . For the asymptotic reference, the node ordering is . According to Figure 7, even for relatively small and , 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- and finite- effects. As and increase, the finite estimates approach the asymptotic values and the corresponding node ordering converges toward the exact ranking. Importantly, even for , 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 and , without requiring full numerical convergence of . 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 for all eight nodes of the weighted 8-bus system under contingencies. The most left bar shows the exact asymptotic value . The following bars are associated to a finite observation window and step count , whereby we choose for . The dashed line marks the uniform initial probability . Notably, even low 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 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 transmission lines, yielding double-line outage configurations. Excluding configurations that result in network islanding leaves 14 connected configurations. Let denote the centrality of node in configuration . The aggregated centrality is calculated as . The resulting values are then normalized across all nodes as . 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 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 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 . 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 , where is the number of transmission lines and is the number of simultaneous outages. In a classical approach, centrality measures must be evaluated separately for each of the contingency-induced subgraphs. In contrast, the proposed CCTQW framework encodes all 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 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 .
We now discuss the quantum resources required to realize this framework. The required number of qubits scales as where qubits are used for the contingency register and 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 , the number of controlled edge-local operators, and the gate decomposition cost of each . 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 depends on the size of the walker register, as the operator selectively applies an rotation on the subspace spanned by the states while leaving all other basis states unchanged.
The measurement cost depends on the desired statistical accuracy of the estimated probabilities . Since is obtained by averaging over 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 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 contingencies. The proposed framework encodes 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 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 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 and , 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]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]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]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]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]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]J. Kempe, “Quantum random walks: an introductory overview,” Contemporary Physics, vol. 44, no. 4, pp. 307–327, 2003.
- [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]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]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]J. Wang and K. Manouchehri, “Physical implementation of quantum walks,” Heidelberg, Springer Berlin, vol. 10, pp. 978–3, 2013.DOI
- [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]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]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]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]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]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]A. M. Childs, A. Ostrander, and Y. Su, “Faster quantum simulation by randomization,” Quantum, vol. 3, p. 182, 2019.DOI
- [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]E. Campbell, “A random compiler for fast hamiltonian simulation,” Physical Review Letters, vol. 123, no. 7, p. 070503, 2019.DOI
- [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]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]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]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]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]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]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]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]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.

