Power system load flow calculation method based on quantum singular value transformation

By using the quantum singular value transformation algorithm, a quantum circuit is constructed to perform power flow calculation in a power system. This solves the problem of insufficient efficiency and accuracy of traditional methods in large-scale power grids, and achieves efficient and stable power flow calculation and accurate data support.

CN121440562AActive Publication Date: 2026-01-30HEFEI UNIV OF TECH +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511984661.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-26
Publication Date
2026-01-30
Estimated Expiration
2045-12-26

AI Technical Summary

Technical Problem

Traditional power flow calculations are inefficient and inaccurate in large-scale power grids. Existing quantum power flow methods are highly dependent on quantum bit resources and difficult to control in terms of precision, making them unsuitable for the computational needs of large-scale practical power grids. Furthermore, they lack in-depth processing of the singular value structure of the power flow matrix.

Method used

The quantum singular value transform (QSVT) algorithm is adopted. By constructing a quantum singular value transform framework, designing a quantum signal processing phase sequence, building a quantum circuit for power flow calculation, and using quantum amplitude estimation to extract correction values ​​and feed them back to the classical controller for iterative updates until convergence.

Benefits of technology

It achieves efficient and stable power flow calculation, reduces computational complexity, ensures stable convergence of the calculation process, improves the reliability and accuracy of the results, is suitable for real-time power grid monitoring, and reduces dependence on classical computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121440562A_ABST
    Figure CN121440562A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of power system load flow calculation and quantum calculation, in particular to a power system load flow calculation method and system based on quantum singular value transformation. According to the method, a target function needing to be approached by the QSVT and an approximation polynomial meeting parity and bounded performance are designed, and the polynomial is converted into a QSP phase sequence; and then a QSVT circuit is built in combination with the unitary operator U and the phase sequence to solve a quantum state, correction values of the voltage and the phase angle in the quantum state are extracted through quantum amplitude estimation, and the correction values are fed back to a classic controller for iteration, so that the voltage and the phase angle of the power system are updated until load flow calculation is converged. According to the method, polynomial approximation and phase sequence optimization are realized by using the QSVT framework, the calculation complexity is reduced, and the problem of convergence is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of power system power flow calculation and quantum computing technology, and in particular to a power system power flow calculation method based on quantum singular value transformation. BACKGROUND

[0002] With the expansion of the scale and the increase of the complexity of the power grid, the traditional power flow calculation faces bottlenecks in efficiency and accuracy, especially under the background of new energy access and system dynamics, the demand for real-time calculation is urgent. The existing quantum power flow method shows certain feasibility in small-scale systems, but it generally has high dependence on quantum bit resources, difficulty in precision control, large quantum circuit depth, etc., which is difficult to adapt to the calculation demand of large-scale actual power grid, and is limited to the rough simulation of linearized solver, lacking in-depth processing of the singular value structure of the power flow matrix.

[0003] The quantum bit resources available for power flow calculation are relatively limited today. The quantum singular value transformation (QSVT) algorithm is used to get rid of the dependence on phase estimation, reduce the number of quantum bits required, build an efficient and scalable quantum power flow calculation model, and avoid the problem of non-convergence caused by excessive dependence on quantum optimizers or multiple iterations. SUMMARY

[0004] In order to overcome the problem of high calculation complexity and poor convergence of classical power flow algorithm in large-scale or ill-conditioned power system in the prior art, the present application provides a power system power flow calculation method based on quantum singular value transformation.

[0005] The power system power flow calculation method based on quantum singular value transformation provided by the present application comprises the following steps: S1. Constructing a power flow equation Ax=b according to the grid topology and node parameters, A being a Jacobian matrix, b being a constant vector, and x being a variable to be solved; performing normalized block encoding on the Jacobian matrix A to obtain a unitary operator U; S2. Designing a target function to be approximated by QSVT and an approximation polynomial satisfying parity and boundedness , converting the polynomial into a QSP phase sequence , d being the order of the polynomial ; S3. Building a QSVT circuit based on the unitary operator U and the phase sequence , loading the power deviation vector Δf of the power flow calculation into the quantum state, running the QSVT circuit, and obtaining the QSVT output and the quantum state through post-selection and amplitude amplification; S4. Extracting the quantum state The correction values ​​for voltage and phase angle are fed back to the classical controller for iteration to update the voltage and phase angle of the power system until the power flow calculation converges.

[0006] Preferably, step S2 includes the following steps: S21. Construct the objective function for Chebyshev polynomial approximation. y takes values ​​in the range [δ, 1], where δ is the set truncation error; S22. Map the approximation interval [δ,1] onto [-1,1] to form a mapping function. Let t be a value in the interval [-1, 1], and y(t) represent the y-value corresponding to t; After parity processing, we get ;structure , It is a symbolic function; ; S23. Constructing a pairwise polynomial , ;exist middle z is the variable of the unit circle. i is an imaginary number. The phase angle corresponding to the singular value map; S24. Constructing a pseudounitary matrix polynomial Then, by performing variable substitution, the Laurent polynomial is obtained. ;right Factorize to obtain the phase sequence d is a polynomial The order of; ; ; ; Among them, A(z) and B(z) are transition terms. A ( z )= P ( y ), ; , Represents phase sequence The 0th and kth phases in the matrix; uppercase Z represents the Pauli matrix; superscript... Indicates complex conjugate; i is an imaginary number; S25, Order ,use and the principle of parity, for Recursively factorize the factorization expression to obtain the reduced-order expression. ; ; Iterate through d, d-1, ..., 1, and let Updated to Repeat this step; solve in sequence. until At that time, the output phase sequence .

[0007] Preferably, the objective function is: ; ; in, Here, C is the regularization parameter; C is a constant. To improve convergence accuracy, .

[0008] Preferably, after step S25, the following steps are performed for phase verification: S26. Using phase sequence pairs Backwards The result of the reverse reasoning is denoted as a polynomial. ,judge If the condition is met, proceed to step S3; otherwise, return to step S22 to reconstruct. ; Inverse polynomial The method is as follows: Rotate the signal operator according to the QSP rules. and phase rotation operator Alternating multiplication yields auxiliary operators ,Will Write it in matrix format and align its top-left element. Taking the real part yields the reconstructed polynomial ; ; in, and Representing phase respectively and The corresponding rotation angle, and From phase sequence , 1≤k≤d; This represents the rotation angle of signal y, where y takes values ​​in the interval [δ, 1]. Represents the calculated matrix elements. Represents paired polynomials, superscript Indicates complex conjugation.

[0009] Preferably, step S3 includes the following steps: S31, let the unitary operator U and its reversible place. Alternating arrangement to construct QSVT quantum circuits ; ; in, , , and They represent , , and Phase rotation; S32, Ax=b, after adjustment, we get , This is the adjusted result of the Jacobian matrix A. A Hermitian matrix whose order is an integer power of 2; The result of expanding b with zero-filled elements; Encoding to On the probability amplitude of each quantum, a quantum state is obtained. m is b ’ The order of; ; in, It calculates the ground state, which corresponds to the integer in binary representation. ; As the normalization factor, ; for The i-th element;

[0010] S33, will The quantum state is stored as input in the system register and initialized as follows: , Describe an auxiliary qubit and calculate the output state. Then, the final system state is obtained by measuring the auxiliary qubits and amplifying the amplitude. and the quantum state of the variable to be solved x ; ; ; in, Representing quantum pair The approach, express The reverse; This indicates the probability of a successful measurement result of 0. This indicates a failed measurement result.

[0011] Preferred: P(A ')= ; Where i is an imaginary number, , , and All are phases, and U is the unitary operator. Let U be the reversible set of U, and e be a natural number.

[0012] Preferably, in step S4, the quantum state is first... Performing a quantum Fourier transform yields the voltage amplitude correction values ​​at each node of the power system. and voltage phase angle correction Then amplify the target amplitude and determine the final system state. implement M Each measurement was performed, and the ground states were calculated statistically. Frequency of occurrence ,from Taking the square root of the real and imaginary parts respectively as classical estimates of the voltage correction. Classical estimates of phase angle correction The results of quantum measurement and Feedback is sent to the classic controller to update the node state; this process is repeated until convergence.

[0013] Preferably, in step S1, the power flow calculation equation Ax=b is first adjusted so that the adjusted Jacobian matrix... Elements are normalized to integer powers of 2 and satisfy the Hermitian matrix; the adjusted power flow calculation equation is: , It is obtained by expanding the order of b by filling it with zero elements; then... Write it as a linear combination of several unitary operators that can be implemented, and construct a block-coded unitary operator U as a unitary operator.

[0014] Preferred: ; ; in, Let A be the normalized matrix of the Jacobian matrix A. for Reversible; for The Hermitian processing results.

[0015] The present invention proposes a power flow calculation system based on quantum singular value transformation, comprising a memory and a processor. The memory stores a computer program, and the processor is connected to the memory. The processor is used to execute the computer program to realize the power flow calculation method based on quantum singular value transformation.

[0016] The advantages of this invention are: (1) The present invention proposes a power flow calculation method based on quantum singular value transformation. By transforming the high-dimensional matrix operations (such as Jacobian matrix inversion) in traditional power flow calculation into parallel processing of quantum circuits, the method utilizes the QSVT framework to achieve polynomial approximation and phase sequence optimization, thereby reducing computational complexity. Compared with classical algorithms, QSVT does not rely on classical optimizers for multiple rounds of parameter iteration updates. The present invention uses the polynomial approximation capability and regularization constraints of QSVT to ensure stable convergence of the calculation process and avoid convergence problems. This method can efficiently handle large-scale or ill-conditioned power systems, enabling power flow calculation to be completed quickly at a set accuracy, and is especially suitable for real-time power grid monitoring scenarios.

[0017] (2) This invention achieves an adaptive precision control mechanism through programmable phase parameters (i.e., phase sequence), and uses Chebyshev expansion to approximate the objective function with high precision, ensuring that the fitting error of the singular value spectrum of the matrix is ​​minimized. This invention introduces constraints... It overcomes the numerical divergence problem caused by ill-conditioned systems, improves the reliability and stability of power flow results, and provides accurate data support for power system planning and fault analysis.

[0018] (3) This invention adopts a quantum-classical hybrid architecture, extracts the correction amount through quantum amplitude estimation and feeds it back to the classical controller, which significantly reduces the dependence on classical computing resources. The iterative control mechanism ensures that the calculation process converges under limited resources, so that this method can not only reduce energy consumption, but also seamlessly integrate with existing power system platforms, and promote the development of power flow computing in an economical and energy-saving direction. Attached Figure Description

[0019] Figure 1 This is the main flowchart of a power system power flow calculation method based on quantum singular value transformation proposed in this invention; Figure 2 This is a diagram of the IEEE 4-node network topology. Figure 3 The results of solving the node voltage phase angle using the method of the present invention and the traditional Newton-Raphson method are shown in the embodiments. Figure 4 The results of solving the node voltage amplitude using the method of the present invention and the traditional Newton-Raphson method are shown in the embodiments. Detailed Implementation

[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0021] like Figure 1 , Figure 2 As shown in the figure, this embodiment proposes a power flow calculation method for power systems based on quantum singular value transformation. First, the Jacobian matrix of the power flow calculation equation formed by the traditional Newton-Raphson method is normalized and block-encoded, transforming it into a unitary operator (i.e., unitary operator U) that can be processed by quantum computing. Then, using the quantum singular value transformation framework, the objective function is approximated through Chebyshev polynomials, and an accurate quantum signal processing phase sequence is designed. Subsequently, a dedicated quantum circuit is built to load the power deviation vector into a quantum state and perform the transformation, thereby achieving quantum acceleration of core operations such as matrix inversion. Finally, voltage and phase angle corrections are extracted through quantum amplitude estimation and fed back to the classical controller for iterative updates until the convergence condition is met. This embodiment is specifically illustrated in steps S1-S4.

[0022] S1. Construct the Newton-Raphson power flow calculation equation Ax=b based on the power grid topology and node parameters, where A is the Jacobian matrix, b is a constant vector, and x is the variable to be solved, including the correction amount of voltage amplitude and phase angle. Normalize the Jacobian matrix A to make Ax=b satisfy the input of quantum singular value transformation.

[0023] This step S1 is specifically divided into the following steps S11-S13.

[0024] S11. Construct the target power flow calculation equations based on the Newton-Lambert method, forming the matrix equation Ax=b to be solved. Perform spectral normalization on the Jacobian matrix A to obtain the normalized matrix. .

[0025] Elements in the Jacobian matrix A may exceed the input range [-1,1] of the quantum singular value transform. Spectral normalization of the Jacobian matrix can guarantee the normalization of the matrix. The elements fall into the input range [-1,1] of the quantum singular value transformation, laying the foundation for subsequent quantum singular value transformations.

[0026] Jacobian matrix normalized coefficients The calculation formula is as follows: (1); in, Aij is the element in the i-th row and j-th column of the Jacobian matrix A. Formula (1) means taking the element with the largest absolute value in the Jacobian matrix A as the coefficient. In this step, the spectral norm is estimated by summing the matrix elements using formula (1), which facilitates subsequent calculations.

[0027] The normalization formula is: (2); S12, For the normalized matrix Perform processing to make it satisfy the Hermitian matrix and extend its order to... The extended matrix is ​​denoted as , n is the matrix The minimum order required to fill with zeros during the order extension process.

[0028] Specifically, the first step in this process is to determine... If the matrix is ​​Hermitian, then perform the padding operation (zeroing to expand the matrix order, i.e., filling with zero elements to expand the matrix order) to make the matrix... Extended to the nearest The order is obtained If not, then Hermitization transformation needs to be performed according to formula (3), followed by padding, and then zero elements are filled and expanded to the nearest order. The order is obtained .

[0029] (3); in, for Hermitian processing results; superscript This indicates that it can be reversed.

[0030] It can be seen that step S12 obtains the matrix. The process is expressed by the following formula: ; After expanding the Jacobian matrix, b also needs to be zeroed out and expanded according to formula (4) to make it so that... ; The result of the order extension of b is used for subsequent quantum encoding.

[0031] (4); S13, will Write it as a linear combination of several unitary operators to construct a block-coded unitary operator U.

[0032] Specifically, in this step, firstly... Write the formula (5) as a linear combination of several unitary operators, then define the preparation operator P and the measurement operator Q in the auxiliary space, and combine them to form the unitary operator. I is the identity matrix; a quantum bit is introduced to project onto U so that it satisfies formula (6), and finally the block-coded unitary operator U is obtained as the unitary operator.

[0033] (5); (6); Where K represents the number of base operators used in the construction block encoding. It is a realizable unitary matrix. Let be the coefficient, satisfying .

[0034] S2. Design the objective function to be approximated in QSVT (Quantum Singular Value Transform). According to the objective function Design an approximation polynomial that satisfies both parity and boundedness. Then the polynomial Convert to QSP (Quantum Phase Processing) phase sequence For phase sequence Perform calculations and verification; , and These represent the 0th, d-1th, and dth phases in the phase sequence, respectively, where d is a polynomial. The order of.

[0035] S21. Since the singular values ​​of the unitary operator (i.e., the block-coded unitary operator U) are in the range [0,1], the objective function to be approximated is: , There is a small truncation error. To avoid the problem of singularities causing the computation to diverge when singular values ​​are present, the regularization parameter is obtained through Tikhonov regularization. At this point, the objective function is replaced with .

[0036] S22, Construction For the objective function in S21 To approach, , For symbolic functions, for The parity processing result is given by t, which is the value in the interval [-1,1], and y(t) represents the value in the interval [δ,1] corresponding to t.

[0037] In this step, the first step is to define the selected tolerance error. (If the internal tolerance of the Newton-Raphson method is...) ,but Then, through the linear transformation of formula (7), the approximation interval [δ,1] is mapped to [-1,1]; let the function t is the value in the interval [-1, 1], y(t) represents the value in the interval [δ, 1] corresponding to t, and y represents the value in the interval [δ, 1]. The Chebyshev polynomial expansion of the cutoff degree N is as follows Chebyshev polynomial Defined as For functions Chebyshev coefficient Calculate according to formula (8). Here Using Chebyshev polynomials of the first kind is more suitable for polynomial approximation calculations.

[0038] (7); (8); In formulas (7) and (8), t is a transition term and π is the value of pi.

[0039] Then to Perform parity processing and construct , For symbolic functions, for The result of parity processing.

[0040] (9); Based on the objective function Since it is an odd function, it is necessary to ensure that... It is also an odd polynomial, so it is defined as follows: ,in For symbolic functions, satisfy , This represents the value of y taken on the interval [δ, 1]. The largest norm, express The maximum norm. The degree is estimated and calculated according to formula (10).

[0041] (10); Where d is a polynomial The order of the polynomial is the highest degree of the polynomial. is the regularization parameter in S21; C is a constant, which can take the value 2.

[0042] S23, by Constructing a pairwise polynomial It satisfies the energy conservation equation (11): (11); Among them, in the paired polynomial There is And z is the variable of the unit circle. Where i is an imaginary number, The phase angle corresponding to the singular value mapping; Formula (11) represents the method for obtaining the target polynomial. and paired polynomials The total probability is 1.

[0043] S24. Next, construct a 2×2 paraunitary matrix polynomial. As shown in formula (12), the variable is then replaced with z, and formula (13) is written in Laurent polynomial form. Then factorize it into equation (14).

[0044] (12); (13); (14); Among them, A(z) and B(z) are transition terms. A ( z )= P ( y ), ; , Represents phase sequence The 0th and kth phases in the equation, where d is the polynomial calculated by formula (10) above. The order; superscript Indicates complex conjugation.

[0045] S25. Then, recursively decompose formula (14), assuming... ,use And the principle of parity, exists Make right multiplication Then, multiply by the left. , eliminate highest ( The terms are reduced to form equation (15); diag represents a diagonal matrix; (15); Iterate through d, d-1, ..., 1, and let Updated to Repeat step S25; solve sequentially. until Z represents the Pauli matrix.

[0046] S26. Verify the obtained phase using the obtained phase sequence. Backwards The result of the reverse reasoning is denoted as a polynomial. Next, determine If the condition is met, proceed to step S3; otherwise, return to step S22 to reconstruct. Perform the calculation. Indicates the interval Calculated above The maximum norm.

[0047] Specifically, the reconstruction obtained in this step The method is as follows: rotate the signal operator according to the rules of quantum signal processing (QSP). and phase rotation operator Alternating multiplication yields auxiliary operators Write it in matrix format as formula (16), and adjust its top-left elements. Taking the real part yields the reconstructed polynomial .

[0048] (16); (17); in, and Representing phase respectively and The corresponding rotation angle, and From phase sequence , 1≤k≤d; This represents the rotation angle of signal y, where y takes values ​​in the interval [δ, 1]. Represents the calculated matrix elements. Represents paired polynomials, superscript Re denotes complex conjugation; Re denotes taking the real part.

[0049] (18); (19); Where i is an imaginary number.

[0050] S3, the unitary operator U based on S1, and the phase sequence of S2 A QSVT circuit is constructed to efficiently load the power deviation vector Δf calculated from the power flow calculation into the quantum state. The QSVT circuit is then run, and the output is obtained through post-selection and amplitude amplification. Post-selection refers to measuring the auxiliary qubits after the quantum circuit has finished running, retaining only the experimental data with a measurement result of 0, and discarding invalid data with a result of 1.

[0051] This step S3 specifically includes the following sub-steps S31-S33.

[0052] S31, Determine if included A system register containing 1 qubit, A block-encoding auxiliary register for 1 qubit and a quantum signal processing register containing 1 qubit. The value is determined by system input, usually Define phase rotation , It is a phase rotation gate, in which According to phase sequence Apply them one by one, and finally construct the QSVT quantum circuit alternately according to formula (20). .

[0053] (20); In formula (20), U and Alternating arrangement, i.e. and The interval is U. and Between r is a positive integer; , , and They represent , , and Phase rotation; S32, according to formula (21) Encoding to On the probability amplitude of each quantum, a quantum state is obtained. b ’ Let m be the extended order vector of the constant vector b, and m be the extension of b. ’ The order of.

[0054] (twenty one); in, It calculates the ground state, which corresponds to the integer in binary representation. Normalization factor ; for The i-th element.

[0055] S33, will It is stored as input in the system register, and then the quantum state is initialized. , It is an auxiliary qubit used to control block encoding and subsequent selection. The mathematical operation corresponding to the QSVT circuit can be expressed by formula (22) to obtain the output state. Then, the final system state is obtained through post-selection (measuring auxiliary qubits) and amplitude amplification. and the quantum state of the variable to be solved x .

[0056] (twenty two); (twenty three); Where Z represents the Pauli matrix; Representing quantum pair The approach, express The reverse; This indicates that the measurement result is 0 (i.e. The probability of success, This indicates a failed measurement result; e is a natural number. Garbage and waste states represent redundant terms that might be measured in the measurement results, which can be understood as "unnecessary terms".

[0057] S4. Using quantum amplitude estimation to obtain quantum states from the pseudo-inverse operation of QSVT. The correction values ​​for voltage magnitude and phase angle (i.e., voltage correction ΔV and phase angle correction Δθ) are extracted and converted into usable classical numerical results through quantum measurement. These correction values ​​are then fed back to the classical controller to update the state variables (voltage and phase angle) of the power flow calculation. The process is iterated in the classical controller until the entire power flow calculation process converges.

[0058] Specifically, this step includes the following sub-steps.

[0059] S41, voltage correction ΔV, and phase angle correction Δθ correspond to quantum states respectively. The real and imaginary parts of the quantum register are used to divide the quantum register into an amplitude register and a phase register, and then the quantum Fourier transform (QFT) is used to... Mapping to the complex space, we get equation (24): (twenty four); N is the number of nodes in the power system. and The voltage magnitude correction and voltage phase angle correction for the i-th node are respectively; It is to calculate the ground state, corresponding to the integer represented by the binary notation .

[0060] S42. Adopt the Grover operator to amplify the target amplitude according to Equation (25), and perform M measurements, and count the occurrence frequency of each computational ground state . , and obtain the classical estimated value of the correction amount by using Equation (26) and .

[0061] (25); (26); wherein, is the classical estimated value of the voltage correction amount, is the classical estimated value of the phase angle correction amount; Re represents taking the real part, Im represents taking the imaginary part; |x> is the right-vector quantum state of the variable x to be solved, and <x| is the left-vector quantum state of the variable x to be solved.

[0062] S43. Feed back the quantum measurement results and to the classical controller, update the node state, and judge whether the power flow calculation converges; the convergence condition can be set as: the two-norm of the power deviation vector is less than or equal to the set threshold ; If not satisfied, return to step S42 and continue the iteration; If so, output the power flow result V' = V + , θ' = θ + ; wherein, V' and θ' are the updated voltage amplitude and phase angle respectively, and V and θ are the current voltage amplitude and phase angle respectively.

[0063] The above method will be elaborated below in combination with specific embodiments.

[0064] In this embodiment, experiments are carried out on the IEEE four-node power system topology, where node 1 is a balanced node, nodes 2 and 3 are PQ nodes, and node 4 is a PV node. The system consists of 4 transmission lines, forming a loop network structure, and a generator is connected to each of node 1 and node 4.

[0065] In this embodiment, the power flow calculations are respectively performed on the topology system shown in Figure 2 by using the method of the present invention and the traditional Newton-Raphson method, and the results are statistically shown in Figure 3 , Figure 4 ; in the figure, the solid line is the calculation result of the method of the present invention, and the dashed line is the calculation result of the traditional Newton-Raphson method.

[0066] from Figure 3 , Figure 4 It can be seen that the results of the present invention in calculating the node voltage phase angle and voltage magnitude are completely consistent with those of the traditional Newton-Layer method for power flow calculation, proving that the QSVT-based algorithm has the same numerical accuracy and correctness as the traditional method in this example.

[0067] Compared to classical algorithms, this invention replaces the most computationally intensive part of classical power flow (AC)—solving the large-scale sparse linear equations generated after repeated linearization (inversion / solution of linear systems (i.e., power flow calculation equations) on Jacobian matrices or augmented matrices)—with a "matrix function implementation" in quantum states. Under the premise of a large power grid scale (high number of buses / state dimension), sparse matrix (limited connectivity per bus), efficient block encoding, and controllable / preconditionable condition number, the QSVT-type quantum linear system (power flow calculation equations) solver can reduce the dependence on dimension from the classical polynomial level to an approximate logarithmic level. (Polynomial Logarithmic), where n0 is the order of the Jacobian matrix A.

[0068] Compared to the HHL algorithm, the advantage of the method in this invention is more directly reflected in the dependence of complexity on the condition number and accuracy. The classic formulation of HHL relies on phase estimation (QPE) to achieve eigenvalue decomposition and reciprocal mapping, often resulting in a large gate depth, stringent requirements on coherence time, and typically poor complexity due to its dependence on the condition number and accuracy. The order of magnitude, n1 is the condition number of the linear system Ax=b in HHL). The present invention theoretically achieves a linear dependency of "optimal order of magnitude" and better precision scaling (commonly expressed as...). This significantly reduces the risk of line depth and error accumulation while maintaining the same level of accuracy.

[0069] Of course, those skilled in the art will recognize that the present invention is not limited to the details of the exemplary embodiments described above, but also includes the same or similar structures that can be implemented in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments should be considered illustrative and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within the present invention. No reference numerals in the claims should be construed as limiting the scope of the claims.

[0070] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

[0071] The technologies, shapes, and structures not described in detail in this invention are all known technologies.

Claims

1. A quantum singular value transformation based power system power flow calculation method, characterized in that, The method comprises the following steps: S1, constructing a power flow equation Ax=b according to a power grid topology and node parameters, A being a Jacobian matrix, b being a constant vector, and x being a variable to be solved; performing normalized block coding on the Jacobian matrix A to obtain a unitary operator U; S2, the target function that QSVT needs to approximate and the approximation polynomial that satisfies the parity and boundedness , the polynomial is converted into QSP phase sequence , d is the order of the polynomial ​ S3, based on the unitary operator U and the phase sequence The QSVT circuit is built, the power deviation vector Δf of the power flow calculation is loaded into the quantum state, the QSVT circuit is run, and the QSVT output and the quantum state are obtained through post-selection and amplitude amplification ; S4, extracting quantum state by quantum amplitude estimation The correction amount of the medium voltage and the phase angle is fed back to the classical controller for iteration to update the voltage and the phase angle of the power system until the power flow calculation converges.

2. The quantum singular value transformation based power system power flow calculation method of claim 1, wherein, Step S2 comprises the following steps: S21, constructing a target function of Chebyshev polynomial approximation y is in the range [δ, 1], and δ is a set truncation error S22, mapping the approximation interval [δ, 1] to [-1, 1] to form a mapping function , t is a value in the interval [-1, 1], y(t) represents the y value corresponding to t; for performing parity processing to obtain ; constructing , is a sign function; ; S23, constructing a pairing polynomial , ; in , z is a unit circle variable, , i is an imaginary number, is a phase angle corresponding to a singular value mapping;​ S24, construct a quasi-unitary polynomial And variable replacement, get the laurent polynomial ; on Factorization, get the phase sequence , d is the order of the polynomial ; where A(z) and B(z) are transition terms, A ( z )= P ( y ), ; 、 represent the 0th phase and the kth phase in the phase sequence ; the capital Z is the Pauli matrix; the superscript represents the complex conjugate; i is an imaginary number; S25, let , utilize and the parity principle, recursively decompose the factorization of to obtain the reduced-order form ; Traverse d, d-1, …, 1, let Update to , loop this step; in turn, solve , until , output phase sequence . 3.The quantum singular value transformation based power system power flow calculation method of claim 2, wherein, The objective function is: wherein, C is a constant, is a convergence accuracy, .

4. The quantum singular value transformation based power system power flow calculation method of claim 2, wherein, After step S25, the following step is further adopted for phase verification: S26, using the phase sequence on backtracking , the backtracking result is recorded as a polynomial , determining whether it is satisfied, if it is satisfied, executing step S3; If not, the process returns to step S22 to reconfigure ; Polynomial regression in the following manner: According to the QSP rule, the signal rotation operator and the phase rotation operator are multiplied alternately to obtain an auxiliary operator , which is written in matrix form as Taking the real part of the upper left element of the matrix gives the reconstructed polynomial ; where and denote the phase and corresponding rotation angles, and from the phase sequence , 1≤k≤d; denote the rotation angle of the signal y, y takes values on the interval [δ, 1]; denote the calculated matrix elements, denote the pairing polynomials, the superscript denotes the complex conjugate.

5. The quantum singular value transformation based power system power flow calculation method of claim 1, wherein, Step S3 comprises the following steps: S31, let the unitary operator U and its reversible transpose Alternating arrangement configuration QSVT quantum circuit ; wherein , , and represent phase rotations of , , and respectively; S32, Ax=b, after adjustment, we get , This is the adjusted result of the Jacobian matrix A. A Hermitian matrix whose order is an integer power of 2; The result of expanding b with zero-filled elements; Encoding to On the probability amplitude of each quantum, a quantum state is obtained. m is b ’ The order of; wherein is the integer corresponding to the binary representation of the ground state ; is a normalization factor, ; is the i-th element of the vector ; S33, will The quantum state is stored as input in the system register and initialized as follows: , Describe an auxiliary qubit and calculate the output state. Then, the final system state is obtained by measuring the auxiliary qubits and amplifying the amplitude. and the quantum state of the variable to be solved x ; wherein, denotes the approximation of on the quantum level, denotes the inverse of ; denotes the probability of success of a measurement with result 0; denotes a failed measurement.

6. The quantum singular value transformation based power system power flow calculation method according to claim 5, characterized in that: P(A ' )= where i is the imaginary unit, , , and are phases, U is a unitary operator, is the invertible transpose of U, e is a natural number.

7. The quantum singular value transformation based power system power flow calculation method of claim 5, wherein, In step S4, first, quantum state is subjected to quantum Fourier transform to obtain voltage amplitude correction and voltage phase angle correction of each node of the power system; then the target amplitude is amplified, and the final system state is subjected to M measurement, the occurrence frequency of each calculated ground state is counted, and the real part and the imaginary part of the square root of are taken as the classical estimation value of the voltage correction and the classical estimation value of the phase angle correction respectively; the quantum measurement results and are fed back to the classical controller to update the node state; the loop is iterated until convergence.

8. The quantum singular value transformation based power system power flow calculation method of claim 1, wherein, In step S1, the power flow calculation equation Ax=b is first adjusted so that the adjusted Jacobian matrix The element is normalized, the order is an integer power of 2, and it satisfies the Hermite matrix; the adjusted power flow calculation equation is , The order is expanded by filling 0 elements with b; then Write as a linear combination of several implementable unitary operators to construct a block-coded unitary operator U as a unitary operator.

9. The quantum singular value transformation based power system power flow calculation method according to claim 1, characterized in that: wherein is a normalized matrix of the Jacobian matrix A, is the invertible transpose of is the result of the Hermitian processing of 10. A quantum singular value transformation based power system power flow calculation system, characterized in that, The device comprises a memory and a processor, the memory stores a computer program, the processor is connected to the memory, and the processor is used to execute the computer program to realize the quantum singular value transformation based power system power flow calculation method according to any one of claims 1-9.

Citation Information

Patent Citations

  • Quantum calculation-based minimum mean square error detection method

    CN112906899A

  • Power system key node evaluation method considering source load uncertainty

    CN116683443A

  • Quantum Newton-Raphson method load flow calculation method and system based on HHL algorithm

    CN116706921A

  • Multi-power-flow integrated parallel quantum computing method and system for power system and storage medium

    CN117977600A

  • Quantum Newton-Raphson load flow calculation method and system based on CKS algorithm

    CN119167769A