Intelligent power grid power distribution method and device based on orthogonal direct product state, electronic equipment and storage medium
By adopting a low-cost quantum encryption method based on orthogonal dielectric state in the smart grid, the problems of privacy leakage and high cost in the power distribution system are solved, and the secure allocation and accurate decision-making of power data are achieved.
Patent Information
- Application Number
- CN202411238929.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-10
AI Technical Summary
Due to the risk of privacy leakage, the existing power distribution system is unwilling to disclose power data, which affects the accuracy and timeliness of distribution decisions. The existing quantum encryption method is based on entangled states, which is complex in preparation and maintenance, and is expensive, which limits large amounts of limitations. Scale application.
A low-cost quantum encryption method based on orthogonal dielectric states is used to distribute the encrypted quantum state sequence to each factory station, and a particle sequence is generated based on the power data and random sequences of the factory station, and transmitted to the scheduling terminal for power distribution decisions.
It realizes low-cost quantum encryption, ensures power data privacy, reduces data processing complexity and economic burden, and improves the accuracy of power distribution.
Smart Images

Figure CN119109036A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security technology, and in particular to a smart grid power distribution method, device, electronic device and storage medium based on orthogonal direct product states. Background Art
[0002] With the continuous growth of global electricity demand, the development of smart grids has become an important direction for improving the efficiency and stability of power systems. However, as the core link of smart grids, power distribution is facing more and more challenges. The existing power distribution system usually needs to collect power data from various plants and stations to make distribution decisions, but this method has a high risk of privacy leakage. Plants and stations are unwilling to disclose their power data, resulting in the inability of dispatch terminals to obtain comprehensive power supply and demand information, which affects the accuracy and timeliness of distribution decisions. To solve the problem of data privacy, current research focuses on using quantum encryption technology for data processing. However, existing quantum encryption methods are mostly based on entangled states. Although this method can effectively protect data privacy, its difficulty lies in the complexity of preparing and maintaining quantum states, resulting in high implementation costs of the overall system, which limits its application in large-scale power distribution systems. In order to assist power distribution decisions through low-cost quantum encryption methods and thus improve the accuracy of power distribution, we need to propose more practical solutions. Summary of the invention
[0003] The embodiment of the present invention provides a smart grid power distribution method, device, electronic device and storage medium based on orthogonal direct product states. By implementing the present invention, low-cost quantum encryption can be realized to assist the power distribution system in making decisions, thereby improving the accuracy of power distribution.
[0004] An embodiment of the present invention provides a smart grid power distribution method based on orthogonal direct product states, comprising: distributing an encrypted quantum state sequence generated based on the orthogonal direct product state to each plant station area, so that each plant station area generates a particle sequence of the plant station area according to the received encrypted quantum state sequence, the segmentation sequence of power data corresponding to each plant station in the plant station area, and the random sequence of each plant station in the plant station area after receiving the encrypted quantum state sequence each time;
[0005] For each plant and station area, the power data of the plant and station area is generated according to all particle sequences of the plant and station area and the random sequences of each plant and station in the plant and station area;
[0006] The power data of each plant area is transmitted to the dispatching terminal, and the dispatching terminal distributes power according to the power data.
[0007] Furthermore, when the number of the plant station areas is 2, the encrypted quantum state sequence is constructed in the following manner: 2n orthogonal direct product states are prepared according to the following formula, where n is the number of plants in any plant station area:
[0008]
[0009] Divide all orthogonal direct product states equally according to the number of plant areas to obtain two partition sets;
[0010] For each partition set, a particle is randomly selected in each orthogonal direct product state to be combined to form a quantum state sequence, and the quantum state sequence is encrypted to generate an encrypted quantum state sequence corresponding to each plant area.
[0011] Further, a segmentation sequence of the power data corresponding to each plant station in the plant station area is constructed by: vector encoding the power data corresponding to each plant station in the plant station area to obtain an encoding result;
[0012] The encoding result is segmented to generate a segmentation sequence.
[0013] Furthermore, a random sequence of each plant station in the plant station area is constructed in the following manner:
[0014] According to the number of elements of the segmentation sequence of each plant station in the plant station area, a corresponding number of random numbers are selected;
[0015] All random numbers are combined in the order of generation to generate a random sequence for each plant station in the plant station area.
[0016] Furthermore, each plant station area generates a particle sequence of the plant station area according to the received encrypted quantum state sequence, the segmented sequence of the power data corresponding to each plant station in the plant station area, and the random sequence of each plant station in the plant station area after receiving the encrypted quantum state sequence each time, including: determining the target number of bits of elements to be extracted from each segmented sequence according to the number of encrypted quantum state sequences currently received;
[0017] According to the target number of bits, extract the elements in each segmentation sequence that are in the target number of bits to obtain a number of target elements;
[0018] Repeat the combining operation until all target elements have been processed to generate the particle sequence;
[0019] The combining operation comprises:
[0020] Decrypt the current encrypted quantum state sequence to obtain the current quantum state sequence; the initial encrypted quantum state sequence is the encrypted quantum state sequence received by the plant area;
[0021] Generate an updated quantum state sequence according to the current target element, the current quantum state sequence and the random number corresponding to the current target element;
[0022] Determine whether there is an unprocessed target element. If so, encrypt the updated quantum state sequence to generate an updated encrypted quantum state sequence, and select any unprocessed target element as the updated target element;
[0023] Otherwise, the updated quantum state sequence is used as the particle sequence.
[0024] Further, generating an updated quantum state sequence according to the current target element, the current quantum state sequence and the random number corresponding to the current target element includes: adding all numbers in the current target element to generate a numerical sum of the current target element;
[0025] According to the value of the current target element and the random number corresponding to the current target element, the same shift operation is performed on each element in the current quantum state sequence to generate an updated quantum state sequence.
[0026] Further, the generating of the power data of the plant station area according to all the particle sequences of the plant station area and the random sequences of each plant station in the plant station area includes: measuring all the particle sequences, adding the measurement results, and obtaining an accumulated result;
[0027] According to the random sequence published by the plant station area, subtract all elements in the random sequence from the accumulated result to generate an updated accumulated result;
[0028] Calculate the product between the number of power plants in the power plant area and the preset maximum value of the power data to obtain the product result;
[0029] The difference between the calculated product result and the updated accumulated result is used to obtain the power data of the plant area.
[0030] Based on the above method embodiment, the present invention provides a corresponding device embodiment.
[0031] An embodiment of the present invention provides a smart grid power distribution device based on orthogonal direct product states, comprising: a particle sequence generation module, a power data generation module and a power distribution module.
[0032] The particle sequence generation module is used to distribute the encrypted quantum state sequence generated based on the orthogonal direct product state to each plant and station area, so that each plant and station area generates a particle sequence for the plant and station area based on the received encrypted quantum state sequence, the segmentation sequence of the power data corresponding to each plant and station in the plant and station area, and the random sequence of each plant and station in the plant and station area after receiving the encrypted quantum state sequence each time.
[0033] The power data and generation module is used to generate the power data and of each plant station area according to all particle sequences of the plant station area and the random sequences of each plant station in the plant station area.
[0034] The power distribution module is used to transmit the power data of each plant area to the dispatching terminal, so that the dispatching terminal can distribute power according to the power data.
[0035] Based on the above method item embodiments, the present invention provides corresponding electronic device item embodiments.
[0036] An embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the smart grid power distribution method based on orthogonal direct product states described in any one of the above method embodiments can be implemented.
[0037] Based on the above method item embodiments, the present invention provides a corresponding storage medium item embodiment.
[0038] An embodiment of the present invention provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the smart grid power distribution method based on orthogonal direct product states as described in any one of the above method embodiments can be implemented.
[0039] Compared with the prior art, the present invention has the following beneficial effects:
[0040] The present invention combines plant power data with quantum states by utilizing encrypted quantum states based on orthogonal direct product states, thereby achieving reasonable distribution of power while protecting the privacy of power data. Compared with the prior art, orthogonal direct product states have lower preparation and maintenance costs than traditional entangled states, reducing the complexity and economic burden of data processing. The present invention implements a low-cost quantum encryption method for assisting the power distribution system in making decisions, thereby improving the accuracy of power distribution. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a flowchart of a smart grid power distribution method based on orthogonal direct product states provided by one embodiment of the present invention.
[0042] Figure 2 It is a schematic diagram of a flow chart of generating a particle sequence of a plant area provided by an embodiment of the present invention.
[0043] Figure 3 It is a flowchart of a combination operation provided by an embodiment of the present invention.
[0044] Figure 4It is a structural schematic diagram of a smart grid power distribution device based on orthogonal direct product states provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0045] 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.
[0046] like Figure 1 As shown, an embodiment of the present invention provides a smart grid power distribution method based on orthogonal direct product states, which at least includes the following steps:
[0047] Step S1, distribute the encrypted quantum state sequence generated based on the orthogonal direct product state to each plant station area, so that each plant station area generates a particle sequence for the plant station area according to the received encrypted quantum state sequence, the segmentation sequence of the power data corresponding to each plant station in the plant station area, and the random sequence of each plant station in the plant station area after receiving the encrypted quantum state sequence each time.
[0048] In a preferred embodiment, when the number of the plant area is 2, the encrypted quantum state sequence is constructed in the following manner:
[0049] Prepare 2n orthogonal direct product states according to the following formula, where n is the number of plants in any plant area:
[0050]
[0051] Among them, 1 orthogonal direct product state contains n particles. The orthogonal direct product state preparation process is to prepare different systems in their respective ground states and then combine them together to ensure that their states do not affect each other, thus forming an overall quantum state. For example, for two systems A and B, each in their ground state, their orthogonal direct product states can be written as in Represents a tensor product operation.
[0052] Divide all orthogonal direct product states equally according to the number of plant areas to obtain two partition sets;
[0053] For each partition set, a particle is randomly selected in each orthogonal direct product state to form a quantum state sequence, and the quantum state sequence is encrypted to generate an encrypted quantum state sequence corresponding to each plant area. Each element in the quantum state sequence is a particle from a different orthogonal direct product state.
[0054] Specifically, the segmentation sequence of the power data corresponding to each plant in the plant area can be obtained in the following manner:
[0055] The power data x corresponding to each plant in the plant area i Vector encoding is performed according to the following rules:
[0056]
[0057] Among them, i is the plant number, d is the maximum value of power data, The value selection rule is: if like In a preferred embodiment, the power data of a plant is 4, and the value of d is 6, then the vector code {0, 0, 0, 0, 1, 1} is generated according to the above encoding method.
[0058] The encoding result Perform segmentation and generate segmentation sequence:
[0059]
[0060] Where w is any common divisor of d, and the elements in the segmentation sequence are tuples. It is worth noting that once w selects any common divisor of d, the values of all w should be kept uniform to avoid the inconsistency of the number of elements in the segmentation sequence affecting subsequent operations. In a preferred embodiment, the vector code {0, 0, 0, 0, 1, 1} is segmented, w is 2, d is 6, and the segmentation sequence is generated according to the above segmentation method:
[0061] {(0, 0), (0, 0), (1, 1)}.
[0062] Preferably, the random sequence of each plant station in the plant station area can be constructed in the following manner:
[0063] According to the number of elements in the segmentation sequence of each plant station in the plant station area, a corresponding number of random numbers are selected.
[0064] All random numbers are combined in the order of generation to generate random sequences for each plant in the plant area. It should be noted that the split sequence and the random sequence should be in a one-to-one correspondence. For example: the first element of the split sequence, its corresponding random number should be the first element of the random sequence.
[0065] For example, the random sequence corresponding to a plant station is as follows:
[0066]
[0067] Among them, i is the plant number, d is the maximum value of the power data, and ω is any common divisor of d.
[0068] like Figure 2 As shown, in a preferred embodiment, each plant station area generates a particle sequence of the plant station area according to the received encrypted quantum state sequence, the segmentation sequence of the power data corresponding to each plant station in the plant station area, and the random sequence of each plant station in the plant station area after receiving the encrypted quantum state sequence each time, including:
[0069] Step S1.1: Determine the target number of bits of elements to be extracted from each segmented sequence according to the number of encrypted quantum state sequences currently received. For example, if the number of encrypted quantum state sequences currently received is the nth, then the target number of bits is the nth.
[0070] Step S1.2: According to the target number of bits, extract the elements in each segmentation sequence that are in the target number of bits to obtain a number of target elements. For example, if there are segmentation sequences {(0, 2), (1, 2)}, {(1, 5), (7, 2)}, {(5, 1), (4, 0)}, and the target number of bits is 1, extract the element in the first position in the above segmentation sequence to obtain the elements (0, 2), (1, 5), (5, 1).
[0071] Step S1.3, repeatedly performing the combining operation until all target elements have been processed to generate the particle sequence.
[0072] like Figure 3 As shown, in a preferred embodiment, the combining operation includes:
[0073] Step S1.3.1, decrypt the current encrypted quantum state sequence to obtain the current quantum state sequence; the initial encrypted quantum state sequence is the encrypted quantum state sequence received by the plant area.
[0074] Step S1.3.2: Generate an updated quantum state sequence based on the current target element, the current quantum state sequence and the random number corresponding to the current target element.
[0075] In a preferred embodiment, generating an updated quantum state sequence according to the current target element, the current quantum state sequence and the random number corresponding to the current target element includes:
[0076] All numbers in the current target element are added together to generate the numerical sum of the current target element; for example, if there is a target element (0, 2), the numerical sum of the target element is 2.
[0077] According to the value of the current target element and the random number corresponding to the current target element, the same shift operation is performed on each element in the current quantum state sequence to generate an updated quantum state sequence.
[0078] Specifically, in an optional embodiment, the shift operation is:
[0079]
[0080] Wherein, r is the sum of the value of the current target element and the random number corresponding to the current target element, Represents modulo d addition.
[0081] Step S1.3.3, determine whether there are unprocessed target elements. If so, encrypt the updated quantum state sequence to generate an updated encrypted quantum state sequence, and select any unprocessed target element as the updated target element; otherwise, use the updated quantum state sequence as the particle sequence.
[0082] In actual operation, in the method embodiment mentioned in this article, the means of encrypting the quantum state sequence can be to insert a decoy state into the quantum state sequence to be encrypted to generate an encrypted quantum state sequence. When the encrypted quantum state sequence is sent to the next object, the position and measurement basis of the decoy state required for decryption should be sent at the same time for the next object to use for decryption.
[0083] Optionally, in the method embodiment mentioned in this article, after receiving the encrypted quantum state sequence and the position and measurement basis of the decoy state required for decryption, the plant station first performs an eavesdropping check on the encrypted quantum state sequence. If the error rate is greater than the threshold, the sender is repeatedly notified to resend the relevant information and the eavesdropping check is performed again until the eavesdropping check is passed. After passing the eavesdropping check, proceed to the next step.
[0084] It should be noted here that since the plant area is not a specific entity, each plant area receives an encrypted quantum state sequence each time, specifically, the control device of a plant in the plant area receives the encrypted quantum state sequence and performs a series of operations.
[0085] Step S2: for each plant station area, generate the power data of the plant station area according to all particle sequences of the plant station area and the random sequences of each plant station in the plant station area.
[0086] Specifically, in a preferred embodiment, all the particle sequences are measured, and the measurement results are added to obtain a cumulative result, wherein the cumulative result includes the sum of the values of all random numbers in the random sequence and all elements in the segmentation sequence.
[0087] According to the random sequence published by the plant area, all elements in the random sequence are subtracted from the accumulated result to generate an updated accumulated result; wherein the updated accumulated result includes the numerical sum of all elements in the segmented sequence.
[0088] Calculate the product between the number of plants in the plant area and the preset maximum value of the power data to obtain the product result; calculate the difference between the product result and the updated cumulative result to obtain the power data sum of the plant area. This process can be expressed by the following formula:
[0089] H=nd-C
[0090] Among them, H is the sum of power data in the plant area, n is the number of plants in the plant area, d is the maximum value of the power data, and C is the accumulated result after the update.
[0091] According to the above operation, it is possible to obtain the power data of all plants and stations in the plant and station area without revealing the specific power consumption data of each plant and station in the plant and station area.
[0092] Step S3: Transmit the power data of each plant area to the dispatching terminal, so that the dispatching terminal distributes power according to the power data.
[0093] Specifically, after obtaining the power data and of each plant area, the power data and are input into a preset power distribution model. The power distribution model formulates a power generation resource allocation plan based on the power data and of each plant area, and distributes power according to the plan.
[0094] It should be noted that the power distribution model is an existing model, which can be trained by linear regression model, support vector machine (SVM), decision tree model, random forest model, gradient boosting tree (GBM), neural network model and other models.
[0095] Based on the above method embodiment, the present invention provides a corresponding device embodiment.
[0096] like Figure 4 As shown, an embodiment of the present invention provides a smart grid power distribution device based on orthogonal direct product states, including: a particle sequence generation module 101, a power data generation module 102 and a power distribution module 103.
[0097] The particle sequence generation module 101 is used to distribute the encrypted quantum state sequence generated based on the orthogonal direct product state to each plant and station area, so that each plant and station area generates a particle sequence for the plant and station area according to the received encrypted quantum state sequence, the segmentation sequence of the power data corresponding to each plant and station in the plant and station area, and the random sequence of each plant and station in the plant and station area after receiving the encrypted quantum state sequence each time.
[0098] The power data and generating module 102 is used to generate the power data and of each plant station area according to all particle sequences of the plant station area and the random sequences of each plant station in the plant station area.
[0099] The power distribution module 103 is used to transmit the power data of each plant area to the dispatching terminal, so that the dispatching terminal can distribute power according to the power data.
[0100] It should be noted that the embodiments of the device described above correspond to the above embodiments of the present invention, and can implement any of the methods described above in the present invention. In addition, the embodiments of the above-mentioned device are merely schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0101] Based on the above method embodiment of the present invention, a corresponding electronic device embodiment is provided.
[0102] An embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the smart grid power distribution method based on orthogonal direct product states described in any one of the present invention is implemented, or, when the processor executes the computer program, the functions of the modules in the above-mentioned device embodiments are implemented.
[0103] Exemplarily, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the terminal device.
[0104] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0105] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0106] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0107] Based on the above method embodiment, the present invention provides a storage medium embodiment;
[0108] Another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute any one of the above-mentioned smart grid power distribution methods based on orthogonal direct product states of the present invention.
[0109] The storage medium is a computer-readable storage medium, and the computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0110] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0111] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A smart grid power distribution method based on orthogonal direct product states, characterized in that: include: Distribute the encrypted quantum state sequence generated based on the orthogonal direct product state to each plant station area, so that each plant station area generates a particle sequence for the plant station area according to the received encrypted quantum state sequence, the segmentation sequence of the power data corresponding to each plant station in the plant station area, and the random sequence of each plant station in the plant station area after receiving the encrypted quantum state sequence each time; For each plant and station area, the power data of the plant and station area is generated according to all particle sequences of the plant and station area and the random sequences of each plant and station in the plant and station area; The power data of each plant area is transmitted to the dispatching terminal, and the dispatching terminal distributes power according to the power data.
2. The smart grid power distribution method based on orthogonal direct product states according to claim 1, characterized in that: When the number of the plant area is 2, the encrypted quantum state sequence is constructed in the following manner: Prepare 2n orthogonal direct product states according to the following formula, where n is the number of plants in any plant area: … … Divide all orthogonal direct product states equally according to the number of plant areas to obtain two partition sets; For each partition set, a particle is randomly selected in each orthogonal direct product state to be combined to form a quantum state sequence, and the quantum state sequence is encrypted to generate an encrypted quantum state sequence corresponding to each plant area.
3. The smart grid power distribution method based on orthogonal direct product states according to claim 1, characterized in that: The segmentation sequence of the power data corresponding to each plant station in the plant station area is constructed in the following manner: The power data corresponding to each plant in the plant area is vector-encoded to obtain an encoding result; the encoding result is segmented to generate a segmentation sequence.
4. The smart grid power distribution method based on orthogonal direct product states according to claim 1, characterized in that: The random sequence of each plant station in the plant station area is constructed in the following way: According to the number of elements of the segmentation sequence of each plant station in the plant station area, a corresponding number of random numbers are selected; All random numbers are combined in the order of generation to generate a random sequence for each plant station in the plant station area.
5. The smart grid power distribution method based on orthogonal direct product states according to claim 1, characterized in that: After each plant station area receives the encrypted quantum state sequence each time, the plant station area generates a particle sequence according to the received encrypted quantum state sequence, the segmentation sequence of the power data corresponding to each plant station in the plant station area, and the random sequence of each plant station in the plant station area, including: According to the number of encrypted quantum state sequences currently received, the target number of bits of elements to be extracted from each segmented sequence is determined; According to the target number of bits, extract the elements in each segmentation sequence that are in the target number of bits to obtain a number of target elements; Repeat the combining operation until all target elements have been processed to generate the particle sequence; The combining operation comprises: Decrypt the current encrypted quantum state sequence to obtain the current quantum state sequence; the initial encrypted quantum state sequence is the encrypted quantum state sequence received by the plant area; Generate an updated quantum state sequence according to the current target element, the current quantum state sequence and the random number corresponding to the current target element; Determine whether there is an unprocessed target element. If so, encrypt the updated quantum state sequence to generate an updated encrypted quantum state sequence, and select any unprocessed target element as the updated target element; Otherwise, the updated quantum state sequence is used as the particle sequence.
6. The smart grid power distribution method based on orthogonal direct product states according to claim 5, characterized in that: The step of generating an updated quantum state sequence according to the current target element, the current quantum state sequence, and the random number corresponding to the current target element includes: Add all the numbers in the current target element to generate the numerical sum of the current target element; According to the value of the current target element and the random number corresponding to the current target element, the same shift operation is performed on each element in the current quantum state sequence to generate an updated quantum state sequence.
7. The smart grid power distribution method based on orthogonal direct product states according to claim 6, characterized in that: The generating of power data of the plant station area according to all particle sequences of the plant station area and the random sequences of each plant station in the plant station area includes: Measuring all the particle sequences, adding the measurement results to obtain a cumulative result; According to the random sequence published by the plant station area, subtract all elements in the random sequence from the accumulated result to generate an updated accumulated result; Calculate the product between the number of power plants in the power plant area and the preset maximum value of the power data to obtain the product result; The difference between the calculated product result and the updated accumulated result is used to obtain the power data of the plant area.
8. A smart grid power distribution device based on orthogonal direct product states, characterized in that: include: Particle sequence generation module, power data and generation module and power distribution module; The particle sequence generation module is used to distribute the encrypted quantum state sequence generated based on the orthogonal direct product state to each plant station area, so that each plant station area generates a particle sequence for the plant station area according to the received encrypted quantum state sequence, the segmentation sequence of the power data corresponding to each plant station in the plant station area, and the random sequence of each plant station in the plant station area after receiving the encrypted quantum state sequence each time; The power data and generation module is used to generate the power data and of each plant station area according to all particle sequences of the plant station area and the random sequences of each plant station in the plant station area; The power distribution module is used to transmit the power data of each plant area to the dispatching terminal, so that the dispatching terminal can distribute power according to the power data.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the smart grid power distribution method based on orthogonal direct product states as described in any one of claims 1 to 7 can be implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it can implement the smart grid power distribution method based on orthogonal direct product states as described in any one of claims 1 to 7.
