Quantum probabilistic power flow calculation method based on quantum sampling and multi-power flow integration

By combining the method of quantum sampling and multi-power flow integration, the problem of slow probabilistic power flow calculation speed of traditional computers in power systems is solved, parallel solution of power flow calculation is realized, calculation accuracy and performance are improved, and errors and correlations between samples are reduced.

CN118676930BActive Publication Date: 2024-10-29HEFEI UNIV OF TECH +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411166134.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-10-29
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

When traditional computers perform probabilistic power flow calculations in power systems, they cannot effectively utilize parallel processing, resulting in slow calculation speed and difficulty in handling large-scale problems.

Method used

The quantum probabilistic power flow calculation method based on quantum sampling and multi-power flow integration is adopted. By constructing the node admittance matrix and power sampling matrix of the power system, combined with the PQ decomposition method and VQLS algorithm, the power flow calculation equation is solved in parallel, and the calculation speed and accuracy are improved.

Benefits of technology

It realizes parallel quantum probabilistic power flow calculation on a traditional computer, improves the speed and accuracy of power flow calculation, reduces the correlation between samples, and has lower error and faster convergence accuracy under the same number of samples.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118676930B_ABST
    Figure CN118676930B_ABST
Patent Text Reader

Abstract

The present invention relates to the fields of probabilistic power flow calculation and quantum computing technology of power systems, and in particular to a quantum probabilistic power flow calculation method based on quantum sampling and multi-flow integration. The present invention combines quantum random numbers and random sampling through a quantum computer, which can improve the quality of sampling and help reduce the correlation between samples. The present invention proposes a quantum probabilistic power flow calculation method based on quantum sampling and multi-flow integration, which combines quantum computing technology with probabilistic power flow calculation, and solves the deterministic power flow equation of a single repeat of the traditional probabilistic power flow in parallel in a quantum computer, while ensuring the calculation accuracy, forming a quantum probabilistic power flow calculation model, and realizing the possibility of parallel calculation of probabilistic power flows in the quantum era through the characteristics of quantum computing. And this method improves the performance of probabilistic power flow calculation while ensuring the calculation accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical fields of power system probabilistic power flow calculation and quantum computing, and in particular to a quantum probabilistic power flow calculation method based on quantum sampling and multi-power flow integration. Background Art

[0002] With the continuous development of quantum computing technology, quantum computing can quickly process exponentially growing data due to its natural parallel superposition and entanglement physical properties. Some scholars have combined quantum algorithms with multi-current computing to construct a quantum probabilistic current computing method based on quantum sampling and multi-current integration. Quantum parallel computing is a computing method based on the principles of quantum mechanics that uses the entanglement and superposition characteristics of quantum to perform parallel computing. This technology is completely different from traditional binary-based computer systems and has the potential to significantly increase computing speed and the ability to handle complex problems.

[0003] The increasing scale of power grids has resulted in more and more uncertainties in the planning and operation of power systems. Probabilistic power flow adjusts the input conditions of loads, distributed power sources, generators and other input quantities in the power flow equation to analyze the impact of system uncertainty on parameters such as node voltage and line load. It plays an irreplaceable role in the planning, design and operation of power systems.

[0004] The calculation methods of probabilistic power flow can be roughly divided into analytical methods and simulation methods. The simulation method requires a large number of simulation calculations and is easy to handle the correlation between input variables. Therefore, it is widely used and used as a standard to verify the accuracy of other probabilistic power flow methods. However, the simulation method relies on traditional computers to perform repeated single power flow calculations, which requires a lot of computing resources. The parallel processing capabilities of traditional computers are limited, and parallel processing cannot be effectively used to accelerate probabilistic power flow calculations, which makes it more difficult to handle large-scale problems in a limited time. In this case, considering the principles of multi-flow integrated parallel quantum computing and the needs of probabilistic power flow calculations, it is necessary to propose a method to combine the two. Summary of the invention

[0005] In order to overcome the defects of the current algorithm in the prior art that it cannot be processed in parallel and has a slow calculation speed, the present invention proposes a quantum probabilistic current calculation method based on quantum sampling and multi-current integration, which combines parallel quantum computing and probabilistic current calculation, greatly improving the speed and accuracy of current calculation.

[0006] The present invention proposes a quantum probability power flow calculation method based on quantum sampling and multi-power flow integration, comprising:

[0007] S1. Determine the topological network structure of the power system and the power cumulative distribution function model of the equipment in the power system, and construct the node admittance matrix of the power system;

[0008] S2. Construct the power sampling matrix A={x kn |1≤k≤K,1≤n≤N}; x kn represents the nth sampled value of the kth sampled device, K represents the total number of sampled devices in the power system, and N represents the number of sampled values ​​of a single sampled device;

[0009] S3. Based on the multi-flow integrated calculation method, determine the multi-flow calculation number B, and transform the matrix A to obtain

[0010] A=[[γ1] B×K , [γ2] B×K ,…,[γ m ] B×K ,…,[γ M ] B×K ] T ; Among them, [γ m ] B×K Indicates the mth reading result when reading matrix A sequentially, and reads the B-row and K-column elements in matrix A at a time; M is the number of times matrix A is read, 1≤m≤M, M=N / B;

[0011] S4, combined with the PQ decomposition method to construct the modified equation to obtain the Jacobian matrix, combined with the Jacobian matrix and [γ m ] B×K Establish the power flow calculation equation for multi-power flow integrated calculation, with the initial value of m being 1;

[0012] S5, iteratively solving the power flow calculation equation until the calculation result reaches the set convergence accuracy;

[0013] S6. Determine whether all sampling situations have been calculated; if not, update m to m+1, and then return to S4. If so, complete the current calculation.

[0014] Preferably, in S3:

[0015] [γ m ] B×K ={(P 1K ,Q 1K ), (P 2K ,Q 2K ),…,(P bK ,Q bK ),…,(P BK ,Q BK )} m

[0016] Among them, P bK It represents the active power vector of each sampled device in the bth power flow calculation in any reading result, QbK Represents the reactive power vector of each sampled device in the bth power flow calculation in any reading result;

[0017] In S4, the power flow calculation equation is:

[0018] ;

[0019] ;

[0020] Where B represents the number of power flow calculations in the multi-power flow integration, 1≤b≤B; H and L are the Jacobi block matrices in the modified equation obtained by the PQ decomposition method; ΔP i 1. ΔP i 2. ΔP i b , ΔP i B Respectively represent the active power change vector of each node in the 1st, 2nd, bth, and Bth power flows of the i-th iteration; Δδ i 1. Δδ i 2. Δδ i b , Δδ i B Respectively represent the change vector of the voltage phase angle of each node in the 1st, 2nd, bth, and Bth power flows of the i-th iteration; ΔQ i 1. ΔQ i 2. ΔQ i b , ΔQ i B Respectively represent the reactive power change vector of each node in the 1st, 2nd, bth, and Bth power flows of the i-th iteration; ΔU i 1. ΔU i 2. ΔU i b , ΔU i B Respectively represent the change vector of the voltage amplitude of each node in the 1st, 2nd, bth, and Bth power flows of the i-th iteration; U i represents the voltage magnitude vector of the node in the i-th iteration.

[0021] Preferably, S5 comprises the steps of:

[0022] S51, in the i-th iteration, the VQLS algorithm is used to solve the power flow calculation equation, and the initial value of i is 0;

[0023] S52, determine whether the number of updates of the optimization parameters of the VQLS algorithm reaches the set value; if yes, select the minimum VQLS calculation result as the solution result of the power flow equation, and execute step S53; if no, use the basin jumping algorithm to update the optimization parameters of the VQLS algorithm, and then return to step S51;

[0024] S53, determine whether the calculation result of the power flow equation reaches the set convergence accuracy; if yes, end the calculation and output the voltage amplitude and phase angle of each node; if no, update i to i+1 and return to step S51.

[0025] Preferably, the voltage amplitude and phase angle of each node output in S53 are denoted as {δ i+1 b ,U i+1 b |1≤b≤B}; where δ i+1 b represents the phase angle vector of the node in the bth power flow calculated after the i+1th iteration, U i+1 b represents the voltage amplitude vector of the node in the bth power flow calculated after the i+1th iteration;

[0026] Solve the power flow calculation equation in S51 to obtain Δδ i b and ΔU i b ; Then calculate δ i+1 b =δ i b +Δδ i b , U i+1 b =U i b +ΔU i b ; δ i b represents the phase angle vector of the node in the bth power flow calculated after the i-th iteration, U i b represents the voltage amplitude vector of the node in the bth power flow calculated after the i-th iteration.

[0027] Preferably, the construction of the power sampling matrix A comprises the following steps:

[0028] S21. Construct a quantum random number generation circuit;

[0029] S22, sampling the power cumulative distribution function of the sampled device, and obtaining N sampling values ​​for each sampled device; let the nth sampling value of the kth sampled device be x kn , 1≤n≤N;

[0030] x kn =F k -1 (y kn )

[0031] y kn =(n-1) / N+[x / 2 δ ]⊙[1 / N]

[0032] Among them, F k -1 represents the inverse function of the power cumulative distribution function of the kth sampled device, y kn represents the random sampling value of the power cumulative distribution function of the kth sampled device; δ is the number of bits of the quantum random number generation circuit; x represents the number of bits from 0 to 2 generated by the quantum random number generation circuit δ Any binary number between -1; ⊙ represents dot product;

[0033] S23, constructing a power sampling matrix A of the equipment in the power system;

[0034] A={x kn |1≤k≤K,1≤n≤N}

[0035] Where K represents the total number of sampled devices in the power system.

[0036] Preferably, the correction equation constructed in combination with the PQ decomposition method is:

[0037] ;

[0038] Wherein: H, N, J and L are all block matrices of the Jacobian matrix; Δδ is the correction vector of the node voltage phase angle, ΔU is the correction vector of the node voltage amplitude; U is the column vector of the node voltage amplitude; ΔP is the unbalanced vector of active power, ΔQ is the unbalanced vector of reactive power; the block matrices of the Jacobian matrix, ΔP, ΔQ and U are known quantities, and Δδ and ΔU are unknown quantities.

[0039] Preferably, the convergence accuracy is in the interval [10 -5 , 10 -6 ], and the number of multi-flow calculations B takes values ​​in the interval [5,20].

[0040] Preferably, the number of multi-flow calculations B=8.

[0041] The present invention proposes a quantum probability power flow calculation system based on quantum sampling and multi-current integration, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is connected to the memory, and the processor is used to execute the computer program to implement the quantum probability power flow calculation method based on quantum sampling and multi-current integration.

[0042] The present invention proposes a readable medium storing a computer program, which is used to implement the quantum probability power flow calculation method based on quantum sampling and multi-power flow integration when executed.

[0043] The advantages of the present invention are:

[0044] (1) The present invention proposes a quantum probability power flow calculation method based on quantum sampling and multi-power flow integration. By combining quantum computing technology with probability power flow calculation, the deterministic power flow equation of the traditional probability power flow is solved in parallel in a quantum computer. While ensuring the calculation accuracy, a quantum probability power flow calculation model is formed. Through the characteristics of quantum computing, the possibility of parallel calculation of probability power flow in the quantum era is realized. This method improves the performance of probability power flow calculation while ensuring the calculation accuracy.

[0045] (2) The present invention combines quantum random numbers and random sampling through quantum computers, which can improve the quality of sampling and help reduce the correlation between samples.

[0046] (3) The improved VQLS algorithm proposed in this paper effectively combines the traditional random search method with the efficient computing power of the quantum algorithm, thereby accelerating the search process for the global optimal solution while avoiding barren basins.

[0047] (4) Experiments have shown that, when the number of samples is the same, this method can better cover the data space and has a lower error than Monte Carlo random sampling; during the entire calculation process, this method can converge to the required accuracy more quickly. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A flow chart of a method for performing power quantum sampling on power grid equipment;

[0049] Figure 2 This is a flow chart of the quantum probabilistic power flow calculation method based on quantum sampling and multi-power flow integration;

[0050] Figure 3 It is the network topology diagram of IEEE-5 nodes;

[0051] Figure 4 is the cumulative distribution function diagram of the voltage phase angle at node 1;

[0052] Figure 5This is a comparison chart of the average value error between the Monte Carlo simulation probabilistic power flow calculation method and this method under different sampling times. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] like Figure 1 As shown, the method for performing power quantum sampling on power grid equipment in this embodiment includes the following steps:

[0055] S21. Construct a quantum random number generation circuit;

[0056] In specific implementation, a quantum random number generation circuit based on a quantum simulator can be constructed based on the following formula (1);

[0057] (1);

[0058] In formula (1), Hadamard denotes the gate of Hadamard, and Hadamard Acting on each quantum bit, δ is the number of bits set by the quantum random number generation circuit, and δ is greater than or equal to 5; x represents the number of bits from the interval [0,2 δ -1], |.> means taking a column vector; Represents a tensor product.

[0059] In a specific embodiment, δ=10.

[0060] S22, sampling the power cumulative distribution function of the sampled device, and obtaining N sampling values ​​for each sampled device;

[0061] Let the nth sample value of the kth sampled device be x kn , 1≤n≤N;

[0062] x kn =F k -1 (y kn ) (2);

[0063] y kn =(n-1) / N+[x / 2 δ ]⊙[1 / N] (3);

[0064] Among them, F k -1represents the inverse function of the power cumulative distribution function of the kth sampled device, y kn represents the random sampling value of the power cumulative distribution function of the kth sampled device; δ is the number of bits of the quantum random number generation circuit; x represents the number of bits from 0 to 2 generated by the quantum random number generation circuit δ Any binary number between -1; ⊙ represents dot product;

[0065] S23, constructing a power sampling matrix A of the equipment in the power system;

[0066] ;

[0067] Where K represents the total number of sampled devices in the power system.

[0068] Reference Figure 2 The quantum probability power flow calculation method based on quantum sampling and multi-power flow integration proposed in this embodiment includes the following steps:

[0069] S1. Determine the topological network structure of the power system and the power cumulative distribution function model of the equipment in the system, and construct the node admittance matrix of the power system;

[0070] S2, construct a power sampling matrix A of the equipment in the power system;

[0071] S3, based on the multi-flow integrated calculation method, determine the multi-flow calculation number B, and transform the matrix A;

[0072] ;

[0073] Among them, [γ m ] B×K Indicates the mth reading result when reading matrix A sequentially, and reads the B rows and K columns of matrix A at a time; 1≤m≤M, M=N / B; B represents the number of multi-flow calculations set, that is, the number of flows calculated in parallel. Sequential reading means reading B rows and K columns from the sampling matrix in order for parallel calculation.

[0074] [γ m ] B×K =[γ (m-1)B+1 , γ (m-1)B+2 , …, γ (m-1)B+b , …, γ mB ] K ={(P 1K ,Q 1K ), (P 2K ,Q 2K ),…,(P bK ,Q bK ),…,(P BK ,Q BK )}m,

[0075] γ (m-1)B+1 , γ (m-1)B+2 and γ mB They represent the (m-1)B+1th, (m-1)B+2th, and mBth sampling values ​​of a single sampled device, respectively. (m-1)B+b represents the (m-1)B+bth sampling value of a single sampled device; 1≤b≤B; the subscript m represents the reading result of each sampled device read for the mth time in matrix A; P bK Indicates the active power vector of each sampled device required for the bth power flow calculation in any reading result, Q bK Represents the reactive power vector of each sampled device in the bth power flow calculation in any reading result.

[0076] Similarly, P 1K Indicates the active power vector of each sampled device in the first power flow calculation in any reading result, Q 1K Represents the reactive power vector of each sampled device in the first power flow calculation in any reading result; P 2K Indicates the active power vector of each sampled device in the second power flow calculation in any reading result, Q 2K Represents the reactive power vector of each sampled device in the second power flow calculation in any reading result; P BK Indicates the active power vector of each sampled device in the Bth power flow calculation in any reading result, Q BK Represents the reactive power vector of each sampled device in the Bth power flow calculation in any reading result.

[0077] S4, combined with the PQ decomposition method to construct the modified equation to obtain the Jacobian matrix, combined with the Jacobian matrix and [γ m ] B×K Establish the power flow calculation equation for multi-power flow integrated calculation, with the initial value of m being 1;

[0078] The corrected equation is:

[0079] ;

[0080] Wherein: H, N, J and L are all block matrices of the Jacobian matrix; Δδ is the correction vector of the node voltage phase angle, ΔU is the correction vector of the node voltage amplitude; U is the column vector of the node voltage amplitude; ΔP is the unbalanced vector of active power, that is, the set of active power changes of each node; ΔQ is the unbalanced vector of reactive power, that is, the set of reactive power changes of each node; the block matrices of the Jacobian matrix, ΔP, ΔQ and U are known quantities, and Δδ and ΔU are unknown quantities.

[0081] The power flow calculation equation is:

[0082] (5);

[0083] (6);

[0084] Where B represents the number of power flow calculations in the multi-power flow integration, 1≤b≤B; H and L are the Jacobi block matrices in the modified equation obtained by the PQ decomposition method; ΔP i b represents the active power change vector of each node in the bth power flow of the i-th iteration; Δδ i b The vector representing the change in voltage phase angle of each node in the bth power flow of the i-th iteration; ΔQ i b represents the reactive power change vector of each node in the bth power flow of the i-th iteration; ΔU i b represents the change vector of the voltage amplitude of each node in the bth power flow of the i-th iteration; U i represents the voltage magnitude vector of the node in the i-th iteration.

[0085] By analogy, ΔP i 1. Δδ i 1. ΔQ i 1 and ΔU i 1 respectively represents the active power change vector, voltage phase angle change vector, reactive power change vector and voltage amplitude change vector of each node in the first power flow of the i-th iteration;

[0086] ΔP i 2. Δδ i 2. ΔQ i 2 and ΔU i 2 respectively represent the active power change vector, voltage phase angle change vector, reactive power change vector and voltage amplitude change vector of each node in the second power flow of the i-th iteration;

[0087] ΔP i B , Δδ i B , ΔQ i B and ΔU i B They represent the active power change vector, voltage phase angle change vector, reactive power change vector and voltage amplitude change vector of each node in the Bth power flow of the i-th iteration respectively;

[0088] When i=0, ΔQ i b=ΔQ b , ΔP i b =ΔP b , U i =U.

[0089] S5, iteratively solving the power flow calculation equation until the calculation result reaches the set convergence accuracy;

[0090] S6, determine whether all sampling situations have been calculated; if not, update m to m+1, and then return to S4, if yes, then complete the current calculation. Specifically, in this step, if m has traversed the interval [1, M], it is determined that all sampling situations have been calculated.

[0091] In the above step S5, the improved VQLS algorithm is used to iteratively solve the power flow calculation equation and detect whether the iteration is completed. The improved VQLS algorithm in S5 refers to improving the optimization strategy of the VQLS algorithm loss function in combination with the basin jumping algorithm. S5 specifically includes the following sub-steps.

[0092] S51, in the i-th iteration, the VQLS algorithm is used to solve the power flow calculation equations (5) and (6), and the initial value of i is 0;

[0093] δ i+1 b =δ i b +Δδ i b

[0094] U i+1 b =U i b +ΔU i b

[0095] δ i+1 b represents the phase angle vector of the node in the bth power flow calculated after the i+1th iteration, δ i b represents the phase angle vector of the node in the bth power flow calculated after the i-th iteration, U i+1 b represents the voltage amplitude vector of the node in the bth power flow calculated after the i+1th iteration, U i b represents the voltage amplitude vector of the node in the bth power flow calculated after the i-th iteration.

[0096] S52, determine whether the number of updates of the optimization parameters of the VQLS algorithm reaches the set value; if yes, select the minimum VQLS calculation result as the solution result of the power flow equation, and execute step S53; if no, use the basin jumping algorithm to update the optimization parameters of the VQLS algorithm, and then return to step S51;

[0097] S53, determine whether the calculation result of the power flow equation reaches the set convergence accuracy; if yes, end the calculation, and output the voltage amplitude and phase angle of each node, denoted as {δ i+1 b ,U i+1 b |1≤b≤B}; No, i is updated to i+1 and the process returns to step S51.

[0098] Specifically, the optimization parameters of the VQLS algorithm may be adjusted randomly or according to preset rules.

[0099] In this embodiment, when adjusting the optimization parameters of the VQLS algorithm, a value is first randomly selected from the Gaussian distribution as the jump distance, and then the basin jumping algorithm using the jump distance is made to jump based on the current optimization parameters to obtain the adjusted optimization parameters.

[0100] The following is combined with specific embodiments to verify the above-mentioned quantum probabilistic power flow calculation method based on quantum sampling and multi-power flow integration.

[0101] In this embodiment, the IEEE-5 node system is used as an analysis example. The network topology diagram of the IEEE-5 node system is as follows: Figure 3 As shown, there are 1 balancing node, 3 PQ nodes and 1 PV node. Assume that the cumulative distribution function of the load power is normally distributed, and the expected value of the cumulative distribution function is the initial power value, and the standard deviation is set to 0.05 times the expected value. Other equipment operates normally.

[0102] In this embodiment, considering the number of PQ nodes, PV nodes and the deployment of the subsequent improved VQLS method, the number of multi-flow calculations is set to B = 8, and the number of devices participating in sampling is 3, that is, K = 3. Sequential reading refers to reading 8 rows and 3 columns from the sampling matrix in order for parallel calculation.

[0103] In this embodiment, the condition for detecting iterative convergence is that the convergence accuracy reaches 10 -6 .

[0104] In this embodiment, the calculation results of a multi-power flow integrated calculation of node 1 in IEEE-5 are obtained by using the improved VQLS algorithm as shown in Table 1 (retaining four significant figures), which confirms the effectiveness and feasibility of the proposed method.

[0105] Table 1 Multi-power flow integrated calculation results of node 1 in IEEE-5

[0106] ;

[0107] In this embodiment, the number of sampling points is set to 2048 times. When all sampling conditions are calculated, the cumulative distribution function diagram of the voltage phase angle of node 1 is as follows: Figure 4 Next, the present method is compared with the Monte Carlo simulation method for probabilistic power flow calculation. The comparison object is the error change of the average value of the voltage amplitude of node 2 when the sampling number is 32 times, 128 times, 512 times and 2048 times. The comparison results are shown in Figure 5 As shown. The exact value is set to: the result of the Monte Carlo simulation method probability power flow calculation method when sampling 30,000 times. Figure 4 and Figure 5 It can be concluded that the quantum probabilistic power flow calculation method based on quantum sampling and multi-power flow integration can meet the needs of probabilistic power flow calculation, and compared with the Monte Carlo simulation probabilistic power flow calculation method, the error of the average voltage amplitude is smaller, and the accuracy and stability of the calculation results are improved. In particular, when the number of samples is the same, this method can better cover the data space and has a lower error than Monte Carlo random sampling; in the entire calculation process, this method can converge to the required accuracy faster.

[0108] Of course, it is obvious to those skilled in the art 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 features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-limiting, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any reference numerals in the claims should not be regarded as limiting the claims involved.

[0109] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

[0110] The techniques, shapes, and structural parts not described in detail in the present invention are all well-known techniques.

Claims

1. A quantum probabilistic power flow calculation method based on quantum sampling and multi-power flow integration, characterized in that: include: S1. Determine the topological network structure of the power system and the power cumulative distribution function model of the equipment in the power system, and construct the node admittance matrix of the power system; S2. Construct the power sampling matrix A of the equipment in the power system by grid power quantum sampling. kn |1≤k≤K,1≤n≤N}; x kn represents the nth sampled value of the kth sampled device, K represents the total number of sampled devices in the power system, and N represents the number of sampled values ​​of a single sampled device; S3. Based on the multi-flow integrated calculation method, determine the multi-flow calculation number B, and transform the matrix A to obtain A = [[γ1] B×K , [γ2] B×K ,…,[γ m ] B×K ,…,[γ M ] B×K ] T ; Among them, [γ m ] B×K Indicates the mth reading result when reading matrix A sequentially, and reads the B-row and K-column elements in matrix A at a time; M is the number of times matrix A is read, 1≤m≤M, M=N / B; S4, combined with the PQ decomposition method to construct the modified equation to obtain the Jacobian matrix, combined with the Jacobian matrix and [γ m ] B×K Establish the power flow calculation equation for multi-power flow integrated calculation, with the initial value of m being 1; S5, iteratively solving the power flow calculation equation until the calculation result reaches the set convergence accuracy; S6, determine whether all sampling conditions have been calculated; if not, update m to m+1, and then return to S4, if yes, complete the current calculation; The construction of the power sampling matrix A includes the following steps: S21. Construct a quantum random number generation circuit; S22, sampling the power cumulative distribution function of the sampled device, and obtaining N sampling values ​​for each sampled device; let the nth sampling value of the kth sampled device be x kn , 1≤n≤N; x kn =F k -1 (y kn ) y kn =(n-1) / N+[x / 2 δ ]⊙[1 / N] Among them, F k -1 represents the inverse function of the power cumulative distribution function of the kth sampled device, y kn represents the random sampling value of the power cumulative distribution function of the kth sampled device; δ is the number of bits of the quantum random number generation circuit; x represents the number of bits from 0 to 2 generated by the quantum random number generation circuit δ Any binary number between -1; ⊙ represents dot product; S23, constructing a power sampling matrix A of the equipment in the power system; A={x kn |1≤k≤K,1≤n≤N} Where K represents the total number of sampled devices in the power system.

2. The quantum probability power flow calculation method based on quantum sampling and multi-power flow integration as claimed in claim 1 is characterized in that: In S3: [γ m ] B×K ={(P 1K ,Q 1K ),(P 2K ,Q 2K ),…,(P bK ,Q bK ),…,(P BK ,Q BK )} m Among them, P bK It represents the active power vector of each sampled device in the bth power flow calculation in any reading result, Q bK Represents the reactive power vector of each sampled device in the bth power flow calculation in any reading result; In S4, the power flow calculation equation is: Where B represents the number of power flow calculations in the multi-power flow integration, 1≤b≤B; H and L are the Jacobi block matrices in the modified equation obtained by the PQ decomposition method; ΔP i 1. ΔP i 2. ΔP i b , ΔP i B Respectively represent the active power change vector of each node in the 1st, 2nd, bth, and Bth power flows of the i-th iteration; Δδ i 1. Δδ i 2. Δδ i b , Δδ i B Respectively represent the change vector of the voltage phase angle of each node in the 1st, 2nd, bth, and Bth power flows of the i-th iteration; ΔQ i 1. ΔQ i 2. ΔQ i b , ΔQ i B Respectively represent the reactive power change vector of each node in the 1st, 2nd, bth, and Bth power flows of the i-th iteration; ΔU i 1. ΔU i 2. ΔU i b , ΔU i B Respectively represent the change vector of the voltage amplitude of each node in the 1st, 2nd, bth, and Bth power flows of the i-th iteration; U i represents the voltage magnitude vector of the node in the i-th iteration.

3. The quantum probability power flow calculation method based on quantum sampling and multi-power flow integration as claimed in claim 2 is characterized in that: S5 includes the following steps: S51, in the i-th iteration, the VQLS algorithm is used to solve the power flow calculation equation, and the initial value of i is 0; S52, judging whether the number of optimization parameter updates of the VQLS algorithm reaches the set value; if yes, selecting the minimum VQLS calculation result as the solution result of the power flow equation, and executing step S53; If no, the optimization parameters of the VQLS algorithm are updated using the basin-hopping algorithm, and then the process returns to step S51; S53, determine whether the calculation result of the power flow equation reaches the set convergence accuracy; if yes, end the calculation and output the voltage amplitude and phase angle of each node; if no, update i to i+1 and return to step S51.

4. The quantum probability power flow calculation method based on quantum sampling and multi-power flow integration as claimed in claim 3 is characterized in that: The voltage amplitude and phase angle of each node output in S53 are denoted as {δ i+1 b ,U i+1 b |1≤b≤B}; Among them, δ i+1 b represents the phase angle vector of the node in the bth power flow calculated after the i+1th iteration, U i+1 b represents the voltage amplitude vector of the node in the bth power flow calculated after the i+1th iteration; Solve the power flow calculation equation in S51 to obtain Δδ i b and ΔU i b ; Then calculate δ i+1 b =δ i b +Δδ i b , U i+1 b =U i b +ΔU i b ; δ i b represents the phase angle vector of the node in the bth power flow calculated after the i-th iteration, U i b represents the voltage amplitude vector of the node in the bth power flow calculated after the i-th iteration.

5. The quantum probability power flow calculation method based on quantum sampling and multi-power flow integration as claimed in claim 1 is characterized in that: The correction equation constructed by combining the PQ decomposition method is: Where: H, N, J and L are all block matrices of the Jacobian matrix; Δδ is the correction vector of the node voltage phase angle, ΔU is the correction vector of the node voltage amplitude; U is the column vector of the node voltage amplitude; ΔP is the unbalanced vector of active power, and ΔQ is the unbalanced vector of reactive power; each block matrix of the Jacobian matrix, ΔP, ΔQ and U are known quantities, and Δδ and ΔU are unknown quantities.

6. The quantum probability power flow calculation method based on quantum sampling and multi-power flow integration as claimed in claim 1 is characterized in that: The convergence accuracy is in the interval [10 -5 , 10 -6 ], and the number of multi-flow calculations B takes values ​​in the interval [5,20].

7. The quantum probability power flow calculation method based on quantum sampling and multi-power flow integration as claimed in claim 6 is characterized in that: The number of multi-flow calculations B=8.

8. A quantum probability power flow calculation system based on quantum sampling and multi-power flow integration, characterized in that: It includes 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 implement the quantum probabilistic power flow calculation method based on quantum sampling and multi-power flow integration as described in any one of claims 1 to 7.

9. A readable medium, characterized in that: A computer program is stored, and when the computer program is executed, it is used to implement the quantum probabilistic power flow calculation method based on quantum sampling and multi-power flow integration as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Distributed photovoltaic power supply site selection optimization method based on power distribution network probabilistic load flow calculation

    CN112994017A

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

    CN116706921A

  • Anti-noise quantum fast decoupling load flow calculation method and system and storage medium

    CN117117842A

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

    CN117977600A

  • Power system load flow calculation method based on discrete adiabatic variable component sub-algorithm

    CN118381029A