dani-guijo / quantum-power-system-state-estimation

QOSF research project implementing variational quantum algorithms for power state estimation in smart energy grids.
1 stars 2 forks source link

Quantum Power System State Estimation

This project, developed within the Quantum Open Source Foundation Mentorship Program, aims to shed light to the practical uses of Variational Quantum Algorithms (VQAs) in the energy sector. In particular, we tackle the problem of power system state estimation in decentralized energy networks under the Transactive Energy (TE) framework. In this scenario, the individual users act as both consumers and producers in the network, and the problem lies in determining the future state (i.e. bus voltages and angles) of a power system based on the data measurements by phasor measurement units (PMUs) in the different locations of a network.

Approach

State estimation is a crucial task in power system monitoring, especially during extreme events, but obtaining measurement data is limited by the high cost of widespread PMU placement. This leads to a high computational cost when accuracy is necessary, and regular control centers become insufficient to capture the system status. Since this problem requires solving linear systems of equations, quantum computers might help alleviating some of these issues, and here we tackle this problem using a Variational Quantum Linear Solver.

Data

Most of the examples in this project were extracted from the book Power System State Estimation: Theory and Implementation by Ali Abur and Antonio Gómez-Expósito.

Usage

To run a test example, you can use the script backend.py. When run, you should see something similar to the following:

-----------------------------------------------------------------
                          Classical WLS
-----------------------------------------------------------------

Theta 1   -0.022 
Theta 2   -0.048 
V 1        1.000 
V 2        0.974 
V 3        0.944 

                   Estimated Measurements

Number of measurements: 8

----------------------------------------------------------
Measurement |  Type  | Value (pu) | h (pu) | residual (pu)
----------------------------------------------------------
1           | P_{12} |   0.888    | 0.893  |        -0.005
2           | P_{13} |   1.173    | 1.171  |         0.002
3           | P_{2}  |   -0.501   | -0.496 |        -0.005
4           | Q_{12} |   0.568    | 0.559  |         0.009
5           | Q_{13} |   0.663    | 0.668  |        -0.005
6           | Q_{2}  |   -0.286   | -0.298 |         0.012
7           |  V_1   |   1.006    |  1.0   |         0.006
8           |  V_2   |   0.968    | 0.974  |        -0.006
----------------------------------------------------------

-----------------------------------------------------------------
                           Quantum WLS
-----------------------------------------------------------------

Theta 1   -0.022 
Theta 2   -0.048 
V 1        0.997 
V 2        0.971 
V 3        0.941 

                   Estimated Measurements

Number of measurements: 8

----------------------------------------------------------
Measurement |  Type  | Value (pu) | h (pu) | residual (pu)
----------------------------------------------------------
1           | P_{12} |   0.888    | 0.892  |        -0.004
2           | P_{13} |   1.173    | 1.163  |          0.01
3           | P_{2}  |   -0.501   | -0.499 |        -0.002
4           | Q_{12} |   0.568    |  0.56  |         0.008
5           | Q_{13} |   0.663    | 0.674  |        -0.011
6           | Q_{2}  |   -0.286   | -0.295 |         0.009
7           |  V_1   |   1.006    | 0.996  |          0.01
8           |  V_2   |   0.968    | 0.971  |        -0.003
----------------------------------------------------------