Dynamic encryption method based on quantum key distribution

Through the combination of multi-layer quantum entangled states and chaotic schedulers, fractal entangled state resources are generated, which solves the security and bandwidth utilization problems of quantum key distribution technology under high concurrency and noise impact, real-time adaptive secure encryption and key updates are realized, and the noise and attack resistance of the communication system is improved.

CN120150948BActive Publication Date: 2025-08-29ZHENGZHOU FEILONG COMPUTER TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510473131.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-16
Publication Date
2025-08-29
Estimated Expiration
2045-04-16

AI Technical Summary

Technical Problem

Existing quantum key distribution technologies are difficult to deal with high concurrent data streams and transient noise impacts in real time, and lack flexible self-repair capabilities, resulting in communication links being susceptible to interference and key theft, and insufficient security.

Method used

Using a method combining multi-layer quantum entangled state and chaotic scheduler, fractal entangled state resources are generated through multi-level quantum gate operations, and the chaotic scheduler is used to adjust the measurement basis and encryption strategies in real time to realize an adaptive security system, including entanglement purification and key update.

Benefits of technology

Under common 2% phase damping interference, the fidelity of more than 80% is maintained, the key bit increase is about 40%, and the bandwidth utilization rate is 25% higher than that of traditional QKD solutions. It is suitable for high concurrency and strict security requirements scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120150948B_ABST
    Figure CN120150948B_ABST
Patent Text Reader

Abstract

This invention relates to the fields of quantum communication and network security, and in particular to a dynamic encryption method based on quantum key distribution. The method comprises the following steps: generating multi-layer quantum entangled states and adaptively setting a measurement basis in conjunction with a chaotic scheduler; if identity verification is qualified, measuring quantum bits at different levels, combining the results, and hashing them to form a shared quantum key; the system fragments plaintext data and encrypts it using subkey segments; upon detecting an anomaly, instant entanglement purification or key update is performed; upon completion of communication, the high-fidelity entangled resources are recovered and the chaotic scheduler parameters are deleted. Multiple field measurements and comparisons have demonstrated that the invention maintains excellent security and throughput performance in noisy and attack environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantum communication and network security technology, and in particular to a dynamic encryption method based on quantum key distribution. Background Art

[0002] In modern network environments, high-fidelity quantum key distribution has become a key technology for defending against quantum computing attacks. However, conventional key updates or single-layer quantum key distribution methods often struggle to cope with high-concurrency data streams or transient noise impacts in real time (Chinese Invention Patent, Publication Number: CN118138235A, Title: Communication System for Dynamic Data Encryption Based on Quantum Key Technology). Traditional systems lack flexible self-repair capabilities if communication links are disrupted or secret keys are stolen. This invention combines multi-layer quantum entangled states with a chaotic scheduler to form an adaptive security system across multiple dimensions, including key distribution, dynamic encryption, anomaly detection, and entanglement cleanup. This system adapts to decoherence, traffic fluctuations, and multi-party collaboration that can occur in complex networks, aiming to maintain continuous security and improve bandwidth efficiency. Summary of the Invention

[0003] To address the numerous issues with the aforementioned existing technologies, the present invention provides a dynamic encryption method based on quantum key distribution. This method fractalizes quantum entangled states and utilizes a chaotic scheduler to adjust the measurement basis and encryption strategy in real time. The system and user end generate a shared key through multi-layer measurements. If noise or abnormal correlation is detected, the key is immediately purified or updated to maintain encryption security. Experimental data shows that the present invention maintains over 80% fidelity even under the common 2% phase damping interference, increases available key bits by approximately 40%, and achieves 25% higher overall bandwidth utilization than traditional QKD schemes, making it suitable for scenarios with high concurrency and stringent security requirements.

[0004] A dynamic encryption method based on quantum key distribution, comprising the following steps:

[0005] Perform multi-level quantum gate operations on a set of quantum bits to generate fractal entangled state resources with multi-layer entangled structures;

[0006] The fractal entangled state resources are allocated to the system end and the user end respectively. After the allocation is completed, the chaos scheduler generates a measurement basis and quantum gate operations through iterative calculation, so that the system end and the user end can perform multi-layer measurements on the fractal entangled states they hold. The measurement results of the system end and the user end are correlated and compared, and error correction methods are combined. If the statistical threshold is verified to be qualified, the user identity is determined to be passed.

[0007] After the identity verification is passed, the fractal entangled state is subjected to multi-layer measurement to generate a shared quantum key, and the data is encrypted and decrypted in slices according to the encryption strategy output by the chaos scheduler;

[0008] The fractal entangled state resources are monitored, and when an anomaly is detected, self-repair operations such as entanglement purification or key update are performed. At the end of the communication, the remaining fractal entangled state resources are recovered and the temporary parameters of the chaos scheduler are cleared.

[0009] Preferably, when performing multi-level quantum gate operations on the quantum bit set, Hadamard gate, controlled NOT gate and controlled phase gate are used in sequence and at least three iterations are performed. After each iteration, some quantum bits are selected to enter the next layer, thereby forming an entangled relationship in the multi-layer structure.

[0010] Preferably, the chaos scheduler iterates the initial chaos parameters based on the discrete chaos equation, and outputs the parameters of the measurement basis and quantum gate operation in each iteration, so that the system end and the user end apply the parameters to their respective fractal entangled state resources for multi-layer measurement after the cutting is completed.

[0011] Preferably, when the system end and the user end correlate and compare the measurement results, they first use short code error correction or repetition code error correction to correct the single-bit error, and after the error correction, judge whether the entanglement correlation degree meets the qualified standard according to the statistical threshold. If the entanglement correlation degree is not lower than the statistical threshold, it is determined that the user identity is passed.

[0012] Preferably, the statistical threshold is a preset entanglement fidelity value, and the user identity is confirmed to be passed when the entanglement fidelity value is higher than or equal to the statistical threshold.

[0013] Preferably, in the process of performing multi-layer measurement on the fractal entangled state resource to generate the shared quantum key, quantum gate operations are applied in sequence according to the layers and the measurement results of each layer are recorded, and the obtained bit sequences are merged into the final shared quantum key after hash processing.

[0014] Preferably, when the plaintext data is encrypted in slices according to the encryption strategy output by the chaotic scheduler, a subkey segment extracted from the shared quantum key is selected for each data slice, and symmetric encryption and decryption operations are performed in combination with a preset grouping mode.

[0015] Preferably, in the process of monitoring the fractal entangled state resources, the system end extracts unmeasured entangled sub-states at fixed time intervals and performs multi-layer measurements, compares the measured correlation with the statistical threshold, and performs entanglement purification or key update operations if the correlation is lower than the statistical threshold.

[0016] Preferably, when performing the key update operation, quantum gate operations and multi-layer measurements are applied again to the fractal entangled state resources after entanglement purification, and the measurement results are hashed and the entanglement correlation is verified according to the initial key generation method to obtain a new shared quantum key.

[0017] Preferably, at the end of the communication, the remaining fractal entangled state resources are recycled after secondary purification, and the initial parameters and iterative output of the chaos scheduler are deleted to prevent subsequent sessions from reusing previous measurement bases and quantum gate operations.

[0018] Compared with the prior art, the advantages and beneficial effects of the present invention are:

[0019] The present invention achieves high tolerance to noise or attacks through multi-layer entangled states and adaptive chaotic scheduler technology, and can monitor and quickly update keys at any time;

[0020] The present invention uses dynamic sharding encryption and hash privacy amplification technology to achieve fast and secure transmission of different data streams, significantly reducing the probability of eavesdropping.

[0021] The present invention achieves sustainable security management through automatic detection and purification mechanism technology. After the communication is completed, high-quality entangled resources can be recycled and historical parameters can be deleted to avoid subsequent reuse risks. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 Schematic diagram of the process of the present invention;

[0023] Figure 2 Schematic diagram of multi-layer measurement and purification in the present invention. DETAILED DESCRIPTION

[0024] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure.

[0025] like Figure 1 As shown, a dynamic encryption method based on quantum key distribution includes the following steps:

[0026] Perform multi-level quantum gate operations on a set of quantum bits to generate fractal entangled state resources with multi-layer entangled structures;

[0027] Dynamic encryption based on quantum key distribution requires sharing high-fidelity quantum entangled states between the transmitter and receiver to achieve multiple subsequent key extractions and dynamic adjustment of encryption strategies. To this end, the present invention constructs a fractal entangled state resource through "multi-level quantum gate operations" so that quantum bits maintain entanglement properties at different levels, thereby increasing the number and fidelity of random key bits obtained in subsequent measurements. Specifically, the initial quantum bit set (number is recorded as ) Perform multiple rounds of iterations as follows:

[0028] At each iteration, a Hadamard gate is first applied to some quantum bits to form state or state, and then apply a controlled NOT gate (CNOT) and a controlled phase gate (CZ) between the selected quantum bits. If qubits participate in this round of operations, the following operations can be performed on each qubit in sequence:

[0029]

[0030]

[0031]

[0032] in Respectively represent With the qubits, , By selecting different pairs of bits or multi-bit combinations in different iteration rounds to apply CNOT and CZ operations, controllable entanglement correlations can be introduced between different subsets.

[0033] After completing an iterative operation, qubits whose measurement fidelity does not meet the required level (e.g., <0.8) are removed based on the results of random sampling of the entangled subset (using either Bell or coherent basis measurements). Only the high-fidelity qubits are retained and allowed to enter the next round of iterative operations. This forms a nested fractal structure: at the first level, qubits form primary entanglement through preliminary Hadamard gates and a small number of CNOT gates. At the second level, extended operations (e.g., CNOT across more distant bit pairs) are applied to the qubits retained in the first level, further spreading the quantum entanglement spatially. At the third level and above, operations such as controlled phase gates are continued on qubits that still maintain high fidelity, thus forming a three-dimensional entangled network.

[0034] In the present invention, "multi-layer entangled structure" refers to the After iterations, some qubits still maintain entangled correlations, and these entangled correlations can be superimposed across levels. For example, if there is a subset in the first level Entanglement occurs, the second layer is in the subset A new entanglement occurred again. When the quantum state is connected, cross-layer entangled links emerge, forming a fractal arrangement of quantum states (called a "fractal entangled state resource"). Because a fractal entangled state resource contains multiple paths for subsequent measurement, if individual bits are affected by noise, the remaining layers can still maintain a relatively stable measurement correlation, thereby improving resistance to impulsive noise and certain attacks.

[0035] The technical effects of these multi-layer entangled structures are mainly reflected in the subsequent quantum key extraction and dynamic adjustment of encryption strategies. For quantum key extraction, the fractal state can output some random bits at each layer of measurement, and accumulate more available bits through multiple measurements, thus making up for the problem of insufficient available key bits once the single-layer entangled state is exposed to noise. For dynamic adjustment of encryption strategies, within the fractal entangled state resources, the iterative sequence generated by the chaotic scheduler can be used to determine the number of available key bits in the first layer. Layer or The entangled measurement results are extracted at the layer level, and the encryption algorithms of the receiving and sending ends are switched in real time to prevent attackers from continuously monitoring the same measurement basis.

[0036] In order to verify the feasibility and advantages of the multi-level quantum gate operation to generate fractal entangled state resources, the present invention conducted an experimental simulation and set The experiment used a multi-level iterative approach with 10 qubits and performed 3-5 iterations under a noisy quantum channel (i.e., phase-damped noise was added after each operation). The final number of available qubits, overall entanglement fidelity, and number of extractable key bits were recorded, and compared with a single-layer entanglement approach (a single-layer CNOT arrangement) without multi-level iterations. The results showed that, when the noise level was equivalent to 1% phase damping, the multi-level iteration approach yielded an average of 1.8 times the number of entangled subsets after three iterations compared to the single-layer approach, with an average quantum fidelity of approximately 0.85 (compared to 0.70 for a single layer), and an approximately 40% increase in the number of extractable key bits. This effect stems from the entanglement redundancy of the layered iterations, which ensures that even if some bits are discarded in early iterations, sufficient stable entangled links are retained.

[0037] Compared to the "one-distribution, one-measurement" approach used in traditional BB84 or E91 protocols, this fractal entangled state resource can be reused and extracted across multiple layers. This reduces reliance on a single entangled link in the dynamic encryption process of quantum key distribution, improving the system's overall resistance to attack and noise. For example, compared to conventional entanglement generation using only a single CNOT layer, the measured bit error rate achieved by this method dropped from 5% to 2%, while the increased measurement redundancy reduced the retransmission rate by 30%.

[0038] Preferably, when performing multi-level quantum gate operations on the quantum bit set, Hadamard gate, controlled NOT gate and controlled phase gate are used in sequence and at least three iterations are performed. After each iteration, some quantum bits are selected to enter the next layer, thereby forming an entangled relationship in the multi-layer structure.

[0039] The quantum bit set is initially in the ground state distribution, and the quantum bits are first placed in the ground state through the Hadamard gate. and A balanced superposition is formed between them, and then a controlled NOT gate (CNOT) and a controlled phase gate (CZ) are combined to successively construct a multi-layer entangled structure. After each layer of iteration, the qubits suitable for continuing to participate in the next layer of iteration are selected to achieve an entangled layout with fractal characteristics. The state mapping is The CNOT gate flips the target bit when the control bit is 1, and the CZ gate applies when both the control bit and the target bit are 1. Phase shift. Through different combinations and timing superposition, cross-layer quantum correlations are formed. Iterating three or more times allows the entangled state to cover a larger subset of bits and provides high redundancy for subsequent quantum key distribution, enhancing the system's fault tolerance and noise resistance.

[0040] In the dynamic encryption process of the present invention, the multi-layer entanglement structure mainly provides support for the following parts:

[0041] Multi-layer redundant key extraction: after each layer iteratively forms an independent entangled channel, when noise or measurement errors occur in any single layer subsequently, the quantum bits of the remaining layers can still maintain entanglement fidelity; in the quantum key distribution link, the sender and receiver select entangled subsets at different levels for measurement to generate additional random key bits, thereby reducing key shortages caused by packet loss or interference.

[0042] Adaptive encryption strategy, in the present invention, the dynamic scheduling module (i.e., chaotic scheduler) can combine discrete chaotic sequences to periodically generate "select the first Layer or first The instructions of "entangled sub-bits of the same layer and determining the measurement basis" make it difficult for attackers to stably eavesdrop on the entangled characteristics of the same layer. Multi-layer iteration lays the hardware foundation for "alternate extraction of encryption keys."

[0043] Combining measurement with multiple iterative corrections, local sub-bits are synchronously measured after each iteration to determine whether their entanglement fidelity has reached a specified threshold (e.g., ≥0.8). If a subset of qubits falls below the threshold, they are removed from subsequent operations, while other qubits meeting the quality criteria are allowed to proceed to the next round of iterations, thus forming an entangled state resource using a "layered filtering + superposition construction" approach. Experimental results show that if the number of iterations is set below three, the fidelity and the number of extractable key bits decrease significantly (by an average of approximately 35%). If the number of iterations exceeds five, the accumulated noise from the additional gate operations increases the entanglement breakdown rate, resulting in a decrease in the proportion of reliable bits by approximately 20%.

[0044] When the present invention uses phase-damped noise for simulation, the fidelity of multi-layer iterations can be maintained at around 0.85 under a noise amplitude of 2%, compared with 0.70 for only a single iteration (CNOT network), and the amount of extractable key bits is increased by an average of about 40%.

[0045] If an attacker attempts to insert a measurement disruption at one layer, the remaining layers can still provide an entangled channel to maintain the key negotiation success rate. Tests have shown that by incorporating multiple layers of entanglement, the packet loss rate during communication has been reduced from 4% to 1.5%, and the delay in timeout retransmission detection has been reduced by 30%.

[0046] In practical applications, the number of quantum gates in a single layer is controlled between 5 and 12. If it is less than 5, the entanglement depth is insufficient, while if it exceeds 12, decoherence effects are exacerbated (in superconducting chip simulations, the quantum gate error has increased by 0.03). The number of iteration layers is set between 3 and 5. Below 3, multi-layer entanglement is not fully formed, while above 5, the accumulation of systematic noise interference is excessive. Hadamard gates account for 20% to 40% of all gate operations. In actual measurements, if the number is less than 20%, the ground state distribution cannot be uniformly spread out, while if it exceeds 40%, multiple coherent superpositions can easily lead to global wave function collapse and instability. When selecting some qubits, a fidelity of ≥0.8 is used as the retention criterion. Those with a fidelity of <0.8 are removed to reduce interference from invalid bits. This 0.8 threshold is verified by multiple rounds of simulations: when it is <0.8, the subsequent entanglement measurement bit error rate increases by approximately 50%, while a fidelity of ≥0.8 maintains a final fidelity of around 0.85.

[0047] Example 1: In the basic embodiment of the present invention, a quantum simulation environment is deployed in an edge node cluster, and 32 virtual quantum bits are initialized to A Hadamard gate (CNOT+CZ crossover operation) was performed on these 32 qubits for a total of three iterations, with subsets with fidelity below 0.8 being removed after each iteration. This left 24 qubits with an overall entanglement fidelity of 0.86. The subsequently generated quantum key was applied to 256-bit symmetric encryption. Compared to a single-layer CNOT network, the bit error rate during communication decreased from 4.5% to 1.8%, and bandwidth utilization increased by approximately 25%.

[0048] Example 2: In the iterative process of the basic example, a controlled phase gate is additionally applied, combined with a stricter screening threshold of 0.85 as an extended feature. This results in 20 qubits remaining after the third iteration, further improving the quantum fidelity to 0.88. This comes at the cost of a 12% increase in runtime. In actual simulations of a superconducting quantum chip, the gate error accumulation increased from 0.02 to 0.028, but the final key entropy increased by approximately 10%. Setting the threshold higher than 0.9 results in insufficient available bits (less than 10 qubits), resulting in a 40% decrease in key generation rate. After weighing computational cost against key security, a threshold of 0.85 for 3-4 iterations was found to be the most balanced.

[0049] By using the aforementioned multi-level quantum gate operations to form a multi-layer entangled structure, the present invention can achieve higher noise resistance and security in dynamic encryption scenarios based on quantum key distribution: under relatively common phase-damped noise conditions, the fidelity is maintained in the range of 0.85-0.88, the key extraction capacity is increased by 40%, and the eavesdropping success rate is significantly reduced in attack simulation scenarios. In summary, the sequential use of Hadamard gates, controlled NOT gates, and controlled phase gates, and at least three iterations, lays a solid multi-layer entanglement foundation for key negotiation, anti-attack strategies, and self-repair operations in subsequent dynamic encryption.

[0050] like Figure 2 As shown, the fractal entangled state resources are allocated to the system end and the user end respectively; after the allocation is completed, the chaos scheduler generates a measurement basis and quantum gate operations through iterative calculation, so that the system end and the user end can perform multi-layer measurements on the fractal entangled states they hold respectively; the measurement results of the system end and the user end are correlated and compared, and an error correction method is combined; if the statistical threshold is verified to be qualified, the user identity is determined to be passed;

[0051] The present invention splits the fractal entangled state resources into two parts, one of which is managed by the system end and the other is allocated to the user end. To facilitate efficient transmission and management, the present invention can transmit the allocated entangled sub-states to the edge node where the user end is located through a quantum relay network in practice. Each entangled sub-state has undergone multi-layer quantum gate operations in the fractal generation stage, giving it a multi-level entangled structure that can be measured multiple times at subsequent levels. After the allocation is completed, the chaos scheduler will iterate the formula ( morphology or other discrete mapping) is applied to the initial chaotic parameters to generate a series of iterative values. By performing segmented mapping or rounding on each iterative value, a parameter table for specifying the measurement basis and quantum gate operation can be obtained. For example, when the iterative value interval falls in [0,0.3) corresponds to Z-basis measurement, the interval [0.3,0.6) corresponds to X-basis measurement, and the interval [0.6,1.0) corresponds to phase-shift gate ( ) and then measure again. The system and user end perform layered measurements on their respective entangled sub-states based on the parameter table, including the groups of bits retained after different layer iterations. Multi-layer measurement means that in the fractal structure Iteration value is used on layer qubits The corresponding measurement base and gate operation, at the same time The layer executes another set of measurement instructions to produce multi-channel measurement results. The advantage of this is that if the bits in one layer decoherence or attenuation occur, the data in other layers can still provide reference information.

[0052] After the measurement is complete, the system and user compare and correct their respective measurement results over a classical channel. To improve the consistency of the measurement results, either short-code error correction or repetition-code error correction can be used. Short-code error correction corrects single-bit flip errors within a fixed-length data block (k=7 or k=15), while repetition-code error correction makes decisions based on repeated measurement results. For example, in a 7-bit short-code error correction scheme, single-bit mismatches are randomly detected and corrected. In a repetition-code scheme, if a majority of bits are 1, they are considered 1, otherwise they are considered 0. After error correction, the corrected correlation data is further verified using a preset statistical threshold (for example, an entanglement correlation of 0.85). When the entanglement correlation exceeds this threshold, the user's identity is confirmed. If the entanglement correlation falls below the threshold, it may indicate excessive noise or a malicious attack. The system will reject the authentication attempt and retain a record of the anomaly.

[0053] The technical effects of this process demonstrate the following advantages in dynamic encryption scenarios: First, the diverse measurement bases and quantum gate operations generated by the iterative chaos scheduler significantly increase the difficulty of eavesdropping by attackers; second, the combination of multi-layer measurement and error correction enables the complementary correlation information at different measurement levels, resulting in high fault tolerance; third, the combination of statistical thresholds and short-code error correction makes identity verification quantitatively verifiable. In actual tests, if the entanglement correlation threshold is set to 0.8, the scheme can maintain a high correct judgment rate in over 95% of scenarios under common quantum channel bit error rates (approximately 1-2%). However, if the threshold is increased to 0.9, although identity verification becomes more stringent, some high-noise links will cause the verification pass rate to drop by approximately 15%, requiring a balance between security and usability in specific application scenarios.

[0054] Preferably, the chaos scheduler iterates the initial chaos parameters based on the discrete chaos equation, and outputs the parameters of the measurement basis and quantum gate operation in each iteration, so that the system end and the user end apply the parameters to their respective fractal entangled state resources for multi-layer measurement after the cutting is completed.

[0055] The core function of the chaos scheduler in this invention is to dynamically specify the measurement basis and quantum gate operations, thereby eliminating the security risks associated with fixed measurement patterns in the encryption process of quantum key distribution and enhancing the system's resilience to sudden noise or attacks. The discrete chaos equations used are typically logistic maps or similar forms, for example:

[0056]

[0057] in Indicates the The state quantity output by the iteration is is the chaos control parameter. In the range of 3.57 to 4, the system will show chaotic behavior. Considering that in the simulation process, if When the chaotic characteristics are not obvious, if When the iteration value exceeds the definition domain, the actual test often Take the range of 3.8--3.99, for example It can ensure strong chaos. The output after each iteration is Falling in the interval [0,1], the present invention is Perform segment mapping and set as follows:

[0058] when When specifying Z-based measurement and applying a controlled phase-shift gate ( );

[0059] when When X-based measurement is used and phase shift is introduced ;

[0060] when When the Hadamard gate is combined with the controlled NOT gate, several bits are operated and then measured.

[0061] The system and the user save the same initial parameters of the chaos scheduler (such as and After completing the spatial division of the fractal entangled state resources (for example, 64 quantum bits are divided into 32 held by the system side and 32 held by the user side), the system side and the user side will run the chaos scheduler synchronously when they need to perform multi-layer measurements, and according to the current number of iterations calculate .from The decoded measurement basis and quantum gate operations will be used for this measurement. Because chaotic iterations can be continuously pushed forward in time, the measurement basis generated each time is difficult to predict, posing an obstacle to potential eavesdroppers.

[0062] In practical applications, the number of iteration steps and the refresh frequency are usually between 10 and 50. If the number of steps is less than 10, the basic chaos is insufficient; if it is greater than 50, a periodic window is likely to appear, making Falling into some repetitive sequences, thus losing the randomness it should have.

[0063] Segment boundaries. Experimental testing determined the aforementioned thresholds of 0.4 and 0.7. If there are too many segments (e.g., five or seven), the frequent gate switching imposed on the hardware will result in an additional quantum gate error increase of approximately 0.03. If there are only two segments, the randomness is insufficient, and the comparison measurement basis selection tends to be single, resulting in reduced security.

[0064] Through the present invention, since the discrete chaotic sequence is distributed in [0,1] and the iteration is pseudo-random, the measurement basis and quantum gate operation adopted by the system and user ends at each moment present an unpredictable distribution. In actual measurements, under the noise level (phase damping of about 2%), the fidelity can be maintained above 0.80, while without a chaotic scheduler, it is only 0.65.

[0065] The chaos scheduler allows the measurement base to be generated adaptively, making it impossible for eavesdroppers to conduct long-term targeted analysis of a single measurement base. In simulated attack tests, the successful interception rate dropped from 5.2% to 1.5%.

[0066] Multi-layer measurement refers to performing a measurement once at the third or fifth layer of the fractal structure. The specific timing and measurement method are dynamically selected by the chaos scheduler. After detecting some noise, it can switch to another measurement channel, reducing the overall entanglement destruction rate by about 40%.

[0067] Example 1 (Basic Implementation): Discrete chaotic map simulation is performed on an AWS EC2 instance (t3.xlarge, 4 vCPUs, 16GB memory, quantum simulation environment deployed via Docker container), with initial chaotic parameters , , with segment boundaries set at 0.4 and 0.7. After performing a four-layer fractal slice on the 64 qubits, both the system and user sides obtained 32 qubits. During the measurement process, the chaos scheduler refreshed the measurement basis every 10 iterations. The final entanglement correlation was no less than 0.82, and the accuracy of user identity determination reached 96%.

[0068] Example 2 (Extended Implementation): Based on Example 1, the number of iteration steps is increased to 20, and another discrete chaotic function ( ) replaces the Logistic mapping. Experimental results show that its random distribution begins to exhibit small periodic peaks at iterations >15, resulting in uneven distribution of the measurement basis and a decrease in entanglement correlation from 0.82 to 0.79. However, in some high-noise scenarios, it still improves security by 22% compared to the fixed measurement basis approach (assessed by the success rate of measurement attacks). Although randomness is slightly affected, this modification improves hardware compatibility with Edge TPU devices and reduces resource usage by 10%, making it an improved solution for scenarios with limited computing power.

[0069] From the above discussion, it can be seen that the chaos scheduler iterates the initial chaos parameters based on the discrete chaos equation and outputs the parameters of the measurement basis and quantum gate operation in each iteration, allowing the system and user ends to perform multi-layer measurements on their respective cut fractal entangled state resources based on these parameters. It can effectively defend against targeted measurement attacks in the dynamic encryption process based on quantum key distribution, and its feasibility and good robustness have been verified in various experimental scenarios.

[0070] Preferably, when the system end and the user end correlate and compare the measurement results, they first use short code error correction or repetition code error correction to correct the single-bit error, and after the error correction, judge whether the entanglement correlation degree meets the qualified standard according to the statistical threshold. If the entanglement correlation degree is not lower than the statistical threshold, it is determined that the user identity is passed.

[0071] Quantum bits will output random bit sequences under different measurement bases or quantum gate operations. The system end and the user end correlate and compare these sequences. If the noise level is low, the two can theoretically maintain high similarity. However, affected by phase damping, thermal decoherence or other physical interference, single-bit flips or random differences will appear in the measurement results. The present invention uses two simple coding correction methods, short code error correction or repeated code error correction, to deal with random small bit errors, and then recalculates the entanglement correlation and compares it with the statistical threshold. If the entanglement correlation exceeds the threshold, it proves that the system end and the user end have indeed maintained high consistency, thereby confirming the user's identity.

[0072] In practical applications, the present invention uses either a (7,4) Hamming code or a (15,11) code for short-code error correction, depending on available hardware resources and the target bit error rate. Taking the (7,4) code as an example, the encoder generates a 7-bit codeword for every 4 bits of the original measurement result. After the measurement result is recovered, if a single-bit error is detected, the check bits are used to locate the flipped bit and repair it. Because this error correction method has low overhead, it is suitable for processing small bit errors immediately after a quantum measurement. If the (7,4) code is insufficient to correct higher noise levels (≥5%), a (15,11) code can be used to accommodate more check bits, but this increases the overall computational effort.

[0073] Repetition code error correction involves repeating each measured bit multiple times (for example, three or five times). If most of the repetitions result in a "1," the bit is considered "1," otherwise it is considered "0." This method is easy to implement in hardware and is primarily suitable for applications with noise intensity ≤2%. If the number of repetitions is too high (>7), overall efficiency decreases by approximately 30% due to latency and additional measurement resource consumption. Based on experimental results, a value of 3 or 5 is commonly used.

[0074] After error correction, the system and user sides each obtain a more consistent bit sequence. At this time, the entanglement correlation is calculated. For example:

[0075]

[0076] in represents the number of bits that match after error correction, is the total number of bits. When the The statistical threshold is usually selected between 0.8 and 0.9. Tests show that: if May be easily exploited by attackers if This will result in an excessively high rejection rate under common noise (>1.5%).

[0077] After completing the measurement, the system and the user (which can be an edge node) exchange bit data mapping tables before and after error correction via an encrypted classical channel to synchronously locate and repair single-bit flips. This process can be combined with the measurement basis generated by the chaotic scheduler to dynamically select short or repetitive codes, thereby maintaining a high fault tolerance rate under varying noise levels or requirements.

[0078] The "error correction first, then threshold-based decision" approach can reduce the drop in measurement correlation caused by single-bit errors by approximately 50%, compared to not using error correction or relying solely on a fixed CRC checksum. Actual tests show that when the noise level is approximately 2%, the correlation improves from 0.75 to 0.82 after error correction, reducing the false decision rate by 3.5%.

[0079] If key integrity is relied upon in subsequent encryption processes, correcting single-bit errors can ensure a high degree of matching between subsequently generated key sequences, reducing the eavesdropper's success rate in attack scenarios from 7% to 2.5%.

[0080] When users have higher security requirements, they can Set to 0.9, in the simulation environment (phase damping noise 3%), the identity pass rate is maintained at 87%. The pass rate can reach 95%, but the potential misjudgment rate is also relatively higher by 2%.

[0081] Example 1 (basic implementation) deploys fractal entanglement construction for 64 qubits on a superconducting quantum hardware simulation platform (see the previous description of fractal entanglement). The system and user terminals each hold 32 bits, and (7,4) Hamming code is used for error correction after each measurement. Statistical threshold When the noise level is around 1.5%, the correlation of the corrected bit sequence remains around 0.88, and the identity confirmation success rate reaches 97%. Without error correction or if the threshold is too high (>0.9), the success rate drops sharply by 10%. It is easy to misjudge the attack scenario.

[0082] Example 2 (Extended Implementation): Based on Example 1, the "(7,4) Hamming code" is replaced with a "triple repetition code." This change corresponds to an additional feature: the repetition code does not require complex encoding and decoding logic, requiring less computing power at the edge node, but is only suitable for scenarios with noise <3%. Field measurements show that when the noise increases to 2.5%, the triple repetition code, combined with a threshold of 0.85, still maintains a 92% identity pass rate. When the noise exceeds 4%, the correction effect is inferior to the (7,4) Hamming code, with a pass rate drop of 15%, but the system CPU usage is reduced by approximately 20%, making it suitable for scenarios with limited computing power. The technical effect of this change is primarily reflected in the trade-off between resources and performance, allowing devices to select the appropriate error correction method.

[0083] All parameter ranges were tested against critical values. For triple-repetition codes, exceeding 5 repetitions significantly increased measurement resource usage, leading to a 30% increase in latency at edge nodes under limited computing power. If the threshold was below 0.8, correlation fluctuations compromised security. Combining a statistical threshold of 0.85 with a repetition count of 3 achieved relatively stable measurement correction and identity determination under moderate noise levels (3%).

[0084] From the above description, it can be seen that the process of first using short code or repeated code error correction to correct single-bit errors and then using statistical thresholds to evaluate the entanglement correlation can enhance the fault tolerance to noise and a small amount of attack disturbances in quantum key distribution application scenarios, and achieve a good balance between reliability and security in complex network / edge node environments.

[0085] Preferably, the statistical threshold is a preset entanglement fidelity value, and the user identity is confirmed to be passed when the entanglement fidelity value is higher than or equal to the statistical threshold.

[0086] In the dynamic encryption process based on quantum key distribution of the present invention, user identity authentication mainly relies on the comparison of entangled state measurement results between the system end and the user end, and the measurement of the entanglement fidelity between the quantum states of both parties. Entanglement fidelity can be regarded as an indicator to measure the degree of consistency of measurement results, which is used to quantify the matching ratio between the system end and the user end in measurement mode or measurement bit, or to characterize the fidelity between the two states with a more rigorous mathematical definition. The present invention uses a pre-set entanglement fidelity value as a "statistical threshold" to provide a clear numerical threshold for judging user identity. When the entanglement fidelity exceeds or equals this value, it is confirmed that the identity information submitted by the user end is sufficiently consistent with the system end, thereby determining that the verification is passed.

[0087] In practical applications, the present invention typically selects an entanglement fidelity value between 0.75 and 0.90 in experiments or simulations. If the threshold is too low (<0.75), noise-sensitive environments can lead to increased false positives, making it easier for attackers to obtain a "qualified" correlation by inserting random measurement perturbations. If the threshold is too high (>0.9), the pass rate will drop significantly if the quantum channel is affected by phase damping noise exceeding 2%. Taking into account practical situations, a threshold between 0.80 and 0.85 can be selected. If the noise level in the experimental environment is maintained at 1% to 2%, this balance between safety and pass rate is achieved.

[0088] In specific implementation, after completing error correction (such as short code or repetition code error correction), the system and the user end jointly count the matching bit ratio, or use quantum state reconstruction method ( is the joint state operator, is the target state), based on:

[0089]

[0090] (in and The consistency of the entangled state is quantified by a threshold (reconstructed from the measured data). If the measured result is not lower than the threshold, it means that the quantum states observed by the system and the user are sufficiently consistent with the ideal entangled state.

[0091] When noise intensity or line loss increases, entanglement fidelity naturally decreases. This invention dynamically adjusts the threshold based on the communication scenario. For example, if noise levels are high in a satellite link, a threshold of 0.75 can be configured to achieve a higher throughput rate. When fiber network conditions are stable, a threshold of 0.85-0.9 can be set to improve security. To this end, the system typically conducts noise benchmarking before deployment to determine the critical value selection range.

[0092] Through this invention, in a moderately noisy environment (phase damping of approximately 1.5%), if the threshold is set to 0.85, after the system and user perform three rounds of entanglement measurement and error correction, the average entanglement fidelity can reach approximately 0.86, and the identity determination accuracy rate exceeds 95%. If the threshold is increased to 0.90, the pass rate drops to 85%, but the security is more resistant to sudden attacks.

[0093] Some traditional approaches generate random entropy values ​​based solely on entangled state measurements without incorporating a fidelity statistical threshold, making them prone to misjudgment in high-noise environments. However, the implementation of a fidelity threshold in our proposed approach reduced the success rate from 7% to 3% in simulated attack tests (where the attacker perturbs the measurement of a portion of the channel), without significantly reducing the system's pass rate (which remains around 90%).

[0094] If additional error correction methods or enhanced quantum routing strategies are introduced in subsequent systems, entanglement fidelity is expected to be further improved. In this invention, by dynamically updating entangled state subsets (e.g., by periodically purifying or redistributing them) in conjunction with a statistical threshold determination mechanism, it is also possible to meet the requirements for identity determination in larger-scale quantum networks.

[0095] Basic Implementation (Implementation 1): Deploy a 64-bit fractal entangled state resource in an edge node environment, setting an initial threshold of 0.80 as the fidelity threshold. The noise level in this environment is tested to be approximately 1.2%. When the user initiates authentication, the system and the user each measure the corresponding entangled state. After short-code error correction, the average fidelity is calculated to be approximately 0.83, successfully passing the authentication in most scenarios. However, if network fluctuations temporarily increase noise, the fidelity may drop to 0.78. The system will then determine that the threshold has not been met and reject or retry the authentication.

[0096] Extended Implementation (Implementation 2): Based on Implementation 1, the threshold is raised to 0.88, and a repetition code error correction is added to each round of entanglement measurement. This increases hardware usage by 10% and reduces the number of available entangled bits by approximately 15%. However, the mean fidelity remains stable between 0.87 and 0.9 under the same noise conditions, meeting the threshold judgment and achieving an overall higher security level than Implementation 1. Compared to Implementation 1, the time consumption is slightly increased (approximately 20%), making this method more practical in scenarios with high security requirements (such as financial-level transmission).

[0097] In summary, using "entanglement fidelity greater than or equal to the statistical threshold" as the quantitative basis for user identity verification can not only adapt to the noise and loss commonly present in quantum channels, but also provide adjustable parameters (thresholds) for flexible adjustment of security strategies in subsequent encryption processes. In actual measurements, under most iterative measurements and error correction, the fidelity is maintained in the range of 0.80 to 0.90, demonstrating good stability and quantifiable judgment effects in both laboratory and production environments.

[0098] After the identity verification is passed, the fractal entangled state is subjected to multi-layer measurement to generate a shared quantum key, and the data is encrypted and decrypted in slices according to the encryption strategy output by the chaos scheduler;

[0099] The central idea of ​​the present invention is that the fractal entangled state itself has cross-layer entanglement redundancy after multi-layer gate operations. If the user identity verification is confirmed to be qualified, multi-layer measurements can be further performed on the entangled sub-states retained on the system and user ends to generate a large-capacity and secure shared quantum key; then the iterative output of the chaos scheduler is used to generate encryption parameters (such as shard size, symmetric algorithm, initialization vector selection method, etc.), and the plaintext data is encrypted and decrypted in slices to ensure communication security and robustness.

[0100] In a fractal entangled state, each layer may contain some high-fidelity quantum bits. After completing identity verification, the system and user coordinate to perform the same measurement basis or quantum gate operation on their respective entangled sub-states at multiple levels (such as the first, third, or fifth layers), thereby obtaining a multi-path random bit sequence. To compensate for the decrease in available bit rate caused by noise, the present invention can combine the bits measured at different layers and then amplify privacy (such as through a hash function) to ultimately form a shared quantum key sequence. For example, when the number of quantum bits is 64, if each of the three layers can maintain 20-25 available bits, the combination can produce a 60-70-bit effective key. After hashing, this can be expanded or simplified to 128 or 256 bits to meet actual encryption requirements.

[0101] The chaos scheduler plays the role of dynamic measurement base distributor in the authentication and key generation process mentioned above. It can also be used for adaptive configuration of encryption strategy. For example, the discrete chaos iterative mapping:

[0102]

[0103] in is about 3.95, making the iteration value Distributed in the interval [0,1], and then output the shard size and encryption algorithm type according to the specific mapping function.

[0104] Shard size: When The time slice size is 1KB, 4KB when the time slice is between 0.3 and 0.7, and 16KB when the time slice is greater than 0.7.

[0105] Encryption algorithm: When If it falls within (0, 0.5), AES-256 is enabled; if it falls within [0.5, 1), stream encryption is used instead. The system and the user synchronize the initial chaos parameters and generate the same sharding and algorithm mode through the same iteration to ensure the consistency of encryption and decryption.

[0106] In practical applications, plaintext data is split into several blocks at the transmitter, and the data is divided according to the shard size mapped by the chaotic scheduler. Each shard is symmetric-encrypted using a subkey derived from the shared quantum key. If the system uses AES-256, the block size is set to 128 bits. If a stream cipher (such as ChaCha20) is selected, the key stream is generated based on the subkey and a random initialization vector.

[0107] Fragment number Corresponding subkey segment . Assume that the length of the shared quantum key is ,but Can be from Position to Bit interception, or generation using XOR mapping.

[0108] Chaos scheduler every Each shard refreshes the algorithm mode once, making it more difficult for attackers to make stable guesses.

[0109] To prevent residual measurement leakage, all quantum keys undergo privacy amplification steps, such as hashing, after merging. For example, SHA-256 or other hash functions are used to form the final usable key. The specific hash implementation (OpenSSL or BoringSSL) can be determined based on performance requirements in actual deployments.

[0110] The system and user sides maintain the same number of iteration steps and track timestamps in orchestration containers (such as Kubernetes) to avoid shard encryption algorithm asynchrony due to time offset.

[0111] The present invention conducts NIST testing on the randomness of the key: when the bits generated by multi-layer measurement of fractal entangled states are combined with the chaotic sharding strategy, if the noise is less than 3%, the pass rate exceeds 98%. Compared with the single-layer fixed encryption strategy, the attack test success rate is reduced from 5.5% to 1.8%.

[0112] The fragment size is dynamically determined by the Chaos Iteration value, preventing timeouts caused by fixed large fragments during sudden bandwidth fluctuations. In actual tests, when network fluctuations are around 30%, the Chaos Scheduler's fragmentation scheme reduces timeout retransmissions by approximately 20% compared to a fixed 2KB fragmentation scheme.

[0113] Compared with the traditional single-shot QKD with fixed key and TCP retransmission mechanism, the present invention improves bandwidth utilization by approximately 25%, reduces packet loss rate from 2.0% to 1.2%, and reduces the standard deviation of data arrival delay by 30%.

[0114] Preferably, in the process of performing multi-layer measurement on the fractal entangled state resource to generate the shared quantum key, quantum gate operations are applied in sequence according to the layers and the measurement results of each layer are recorded, and the obtained bit sequences are merged into the final shared quantum key after hash processing.

[0115] After completing identity verification, the fractal entangled states shared by the system and user can be measured multiple times at each level. Each level, after iterative quantum gate placement, can potentially form several entangled subsets. The corresponding qubits on both the system and user sides use the same measurement basis or quantum gate operations, resulting in an independent random bit sequence at each level. To mitigate the potential for insufficient usable bits due to noise or corruption at any one level, the present invention employs layer-by-layer superposition and combines the results.

[0116] In practical applications, the initial formation of a fractal entangled state may go through 3-5 layers of iteration (Hadamard gate, controlled NOT gate, controlled phase gate). When starting measurement, the present invention selects the measurement basis given by the chaos scheduler at the first layer (or the kth layer); after the measurement is completed, the bits are recorded, and then another set of gate operations (such as phase shift) are applied at the second layer. Through this cycle of "measuring layer by layer → recording bits", multiple sets of random sequences are obtained.

[0117] If there are three layers of fractal entanglement structure, it is possible to obtain three bit sequences (for example The system and user end each have corresponding sequences, which are compared and corrected through encrypted classical channels (short codes or repeated codes can be used) and then merged into a complete bit string. If the failure rate of measurement results at a certain layer due to noise is high (higher than 10%), the layer can be eliminated or its weight can be reduced to retain the measurement results at other layers.

[0118] In order to avoid leakage of residual statistical information, the present invention performs privacy amplification processing on the merged bit string, such as using the SHA-256 hash function to increase the length The bit string is mapped to a 256-bit output. This can be written as:

[0119]

[0120] in Instantiate a function for the hash algorithm. To generate a 128-bit key, you can either take only 128 bits or configure the hash algorithm to output a 128-bit digest.

[0121] When the multi-layer structure has 4 or more layers, the total number of bits measured often far exceeds the required number. Exceeding 512 bits may impose additional computational burden during subsequent hashing (increasing CPU usage by approximately 20%); falling below 128 bits limits security strength. Testing has shown that limiting the combined length to between 256 and 512 bits offers the best balance between performance and security. If using SHA-512 or higher hashing, it is necessary to evaluate the computing power consumption of edge nodes.

[0122] This invention enables multi-layer measurements to maintain overall entanglement fidelity by relying on other layers when a single layer performs poorly. In actual measurements, under 2% phase damping interference, the multi-layer approach can increase the number of usable bits retained by approximately 30% (from an average of 50 bits to 65 bits) compared to using only a single layer.

[0123] Due to the application of different quantum gate operations at different layers and the measurement basis combination of the chaos scheduler output, the final merged random sequence distribution presents a higher entropy value, and the pass rate of the NIST randomness test is increased by 8% to 10%.

[0124] Hashing the combined bit sequence eliminates potential correlations and imbalances, increasing the probability of the key passing detection. Even if an attacker obtains partial measurement base or layer information, it is difficult to reverse engineer the final key. Compared to a solution without hashing, the eavesdropping success rate drops from 2.5% to approximately 1.0%.

[0125] In the basic implementation (completely characterized), three layers of iterations are performed on a 32-qubit fractal entangled state, with each layer retaining ≥10 qubits. After layer-by-layer measurement, the system and user end concatenate the resulting three-bit sequences to form a "preliminary key" with a total length of approximately 30 bits. After short-code error correction removes mismatches, 28 bits are retained. The final 128-bit shared quantum key is then hashed using SHA-256 to generate the final shared quantum key for AES encryption. Experimental records show that this multi-layer concatenation method can maintain more than 27 valid bits in an environment with less than 2% noise, and the hashed key has a pass rate exceeding 95% for NIST testing.

[0126] Extended embodiment (additional features), based on the basic embodiment, the number of fractal structure layers is expanded to 4, and the complexity of the measurement gate operation (including phase The combined gates yield an average of 40-50 effective bits, and the first 256 bits are hashed using SHA-512 as the key. This approach maintains excellent security even with 2.5% noise (eavesdropping simulation success rate is less than 1.2%). However, the additional gate operation delay increases overall measurement time by approximately 15%, and CPU usage during hashing increases by 10%. Compared to the case without multi-layer stacking, the measurement entropy increases by approximately 12%.

[0127] In summary, in the process of performing multi-layer measurements on the fractal entangled state resources to generate shared quantum keys, the entropy value and anti-interference ability of the quantum key can be significantly enhanced by applying quantum gate operations layer by layer, recording the results of each layer and merging the hashes, so that the dynamic encryption process based on quantum key distribution can maintain high security and efficiency under various networks and noise levels.

[0128] Preferably, when the plaintext data is encrypted in slices according to the encryption strategy output by the chaotic scheduler, a subkey segment extracted from the shared quantum key is selected for each data slice, and symmetric encryption and decryption operations are performed in combination with a preset grouping mode.

[0129] After the present invention completes the multi-layer entangled state measurement, the system and user terminals each obtain a shared quantum key. At this point, the chaos scheduler generates a series of encryption strategy parameters, including shard size, symmetric algorithm type, and initialization vector selection method, using discrete chaos equations or other iterative models. The core of the shard encryption strategy is to divide the plaintext data into multiple shards of a certain size and apply a different subkey segment to each shard. This makes it difficult for attackers to identify a unified encryption pattern and maintains resilience in fluctuating or noisy network environments.

[0130] In practical applications, the chaos scheduler is based on the iteration value. (falls in [0,1]) for segmented mapping, if The shard size is set to 2KB, if it is between 0.4 and 0.7, it is set to 8KB, if it is ≥0.7, it is split into 16KB. In the encryption policy configuration table formed by the system and the user, these shard sizes and the corresponding subkey segments ( ) one-to-one correspondence. If the total length of the shared quantum key is , which can be split into Segments (16 or 32 bits per segment) etc., depending on the specific needs. For example:

[0131]

[0132] (in is the binary representation of the shared quantum key, For the The system and the user have the same , you can keep synchronization in encryption and decryption.

[0133] In common implementations, this invention uses AES-256 or a symmetric algorithm based on stream encryption (such as ChaCha20). The packet mode can be pre-set to CBC or GCM. If the iteration value output by the chaos scheduler indicates a need for improved data confidentiality, AES-256-GCM is selected. If communication bandwidth bottlenecks or CPU usage are critical, the system automatically switches to stream encryption to reduce packet operation overhead.

[0134] If AES-256-GCM is used, the initialization vector (IV) length is 12 bytes. The system and the user end use the same chaos scheduler iteration value combined with the fragment sequence number. generate Ensure that each shard is unique.

[0135] If the stream encryption ChaCha20 is used, a 12-byte Nonce is randomly generated and concatenated with the subkey segment to form a 32-byte Key+Nonce structure. Encryption of shard data.

[0136] Through the present invention, the system end for each slice (such as shard) Selected subkey segment , algorithm type (such as AES-256) and initialization vector (or Nonce), perform symmetric encryption on the plaintext fragment and output the ciphertext fragment; when the client receives the fragment, it will use the same fragment sequence number Subkey segment found The plaintext fragment is decrypted with the corresponding initialization vector or Nonce. To avoid fragment sequence mismatch caused by disorder or retransmission, the present invention keeps the clock and queue information synchronized between the edge node and the central server. Once packet loss occurs, the ciphertext fragment identifier is retrieved through the classic channel.

[0137] Because each subkey segment is independently intercepted and the chaotic scheduler periodically changes the shard size, attackers cannot launch long-term decryption attempts against fixed-size or fixed keys. While the simulated attack success rate reached 5.2% using conventional single-key block encryption, the success rate of the combined shard encryption and chaotic strategy dropped to 1.5%.

[0138] Dynamic fragment size adjustment reduces congestion by using smaller fragments (2KB) when network bandwidth is limited, and improves transmission efficiency by selecting larger fragments (16KB) when bandwidth is restored. Internal tests have shown that the chaotic fragmentation mechanism reduces packet loss by approximately 20% and reduces latency standard deviation by 30%.

[0139] Fixed 4KB sharding cannot adapt to temporary network jitter or CPU usage fluctuations. The adaptive sharding strategy introduced by chaotic sequences improves average throughput by 25%, reducing the occurrence of lags for QoS-sensitive tasks such as video streaming.

[0140] The basic implementation example uses an AWS EC2 instance (model t3.xlarge, 4 vCPUs, 16GB memory) to connect to the edge node, and a 256-bit shared quantum key has been generated in advance. , divided into 16 segments (each 16 bits). The chaos scheduler iteration value varies between 0.3 and 0.9. If the iteration value is <0.5, AES-256-CBC encryption is used with a 2KB fragment size; if it is ≥0.5, AES-256-GCM is used with an 8KB fragment size. Internal testing shows that it can maintain a stable throughput of approximately 90Mbps under 1% packet loss, with a fragment retransmission rate of <1.8%. Compared to a fixed algorithm (all AES-256-GCM), CPU utilization is essentially the same (±5%), but with greater adaptability.

[0141] An extended implementation, building on the above, introduces distributed quantum routing (using three optical fibers to concurrently transmit the quantum key) and replaces AES-256 with ChaCha20 to reduce encryption hardware overhead. The chaotic scheduler parameters remain unchanged, extracting subkey segments in segments and dynamically adjusting the segment size to 2KB or 16KB. In high-traffic scenarios (average edge node load of 70%), system memory usage increases by approximately 15%, while message latency decreases by 12%, and throughput increases from 90Mbps to 100Mbps. Even with 3% packet loss, the retransmission rate remains below 3.5%, a decrease of approximately 2% compared to the fixed segmentation algorithm. This modification is suitable for applications with high real-time requirements, such as industrial control or financial messaging.

[0142] As can be seen from the above, when performing fragmented encryption on the plaintext according to the encryption strategy output by the chaotic scheduler, by selecting sub-key segments extracted from the shared quantum key and performing symmetric encryption in combination with different grouping modes, the randomness and elasticity characteristics of the present invention in quantum key distribution and chaotic scheduling can be fully utilized, not only maintaining high security, but also effectively adapting to diverse network environments and load requirements.

[0143] The fractal entangled state resources are monitored, and when an anomaly is detected, self-repair operations such as entanglement purification or key update are performed. At the end of the communication, the remaining fractal entangled state resources are recovered and the temporary parameters of the chaos scheduler are cleared.

[0144] The monitoring of fractal entangled state resources by the system end or edge node includes:

[0145] Extract a small number of entangled bits at specified time intervals (e.g., extract ≥ 4 qubits from the remaining entangled sub-states every 60 seconds) for test measurements;

[0146] Calculate the entanglement fidelity of the measurement results. If the result is lower than a threshold (e.g., 0.80), it is determined that there is a noise surge or eavesdropping risk.

[0147] Initiate entanglement purification or key update: Entanglement purification uses multiple rounds of gate operations to remove damaged bits and retain a high-fidelity subset; key update re-extracts usable bits based on the remaining entangled sub-states, hashes them together into a new key, and then switches to the new sub-key segment in subsequent shard encryption;

[0148] After the communication is completely completed, the entangled bits that still retain fidelity ≥ a certain threshold are recovered to save some of the initial preparation overhead in the next session; the initial parameters or iteration sequence records of the chaos scheduler are synchronously deleted to avoid reusing the previous configuration in the new session.

[0149] In practical applications, the system can sample entangled sub-states every 8MB of data transmitted or every 60 seconds, with the number of samples typically ranging from 3 to 8 qubits. If the number is less than 3, accurate fidelity statistics cannot be calculated; if it is ≥8, resource consumption can increase by 10%.

[0150] Entanglement purification refers to re-applying gate operations to some sub-states after anomalies are detected ( ) to filter out high-noise bits. After 2-3 rounds of purification, if the fidelity is still below 0.7, the substate is discarded and the key is updated instead. If the purification is successful, the fidelity can be improved by about 0.1.

[0151] If purification is determined to be insufficient, the present invention performs new multi-layer measurements on the remaining entangled substates to regenerate the shared quantum key. After the system and the user negotiate the activation of the new key via a classical channel, subsequent encryption segments automatically switch to the new subkey segment. For example, if bits 64-95 of the first 128 bits are selected as the new subkey segment, this can be synchronized with the chaotic scheduler output, preventing attackers from using the old key to maintain a decrypted data stream.

[0152] When the communication process is over, some quantum bits in the fractal entangled state resources still maintain a fidelity of ≥0.80, which can be directly stored in the local quantum storage module for the next communication; if the fidelity is <0.80, they are destroyed to avoid the risk of residual eavesdropping. In addition, the initial parameters of the chaos scheduler are and the number of iterations Records such as these need to be completely deleted to prevent new sessions from reusing the same measurement base.

[0153] Preferably, in the process of monitoring the fractal entangled state resources, the system end extracts unmeasured entangled sub-states at fixed time intervals and performs multi-layer measurements, compares the measured correlation with the statistical threshold, and performs entanglement purification or key update operations if the correlation is lower than the statistical threshold.

[0154] The system selects unused or unmeasured entangled sub-states from the reserved fractal entangled state resources and obtains the entanglement correlation through multi-layer quantum measurement. When noise or external attack damage causes the correlation of the measurement results to drop below a certain threshold, it may endanger the subsequent key generation and encryption. To this end, the system triggers the entanglement purification or key update process:

[0155] Entanglement purification: Screening out noisy bits and applying additional quantum gate operations (such as Hadamard gates, controlled NOT gates, phase-shift gates, etc.) to remove or repair degraded quantum bits, thereby bringing the overall fidelity back to a usable level.

[0156] Key update: If purification is insufficient to compensate for degradation, a new key bit sequence is obtained by re-measurement based on the remaining unmeasured or purified entangled substates. This is then combined with hashing or short-code error correction to replace or supplement the existing key.

[0157] In practical applications, the system can extract ≥4 entangled bits every 64 seconds or after transmitting ≥50MB of data for multi-layer measurement, using discrete chaotic sequences to specify measurement bases and quantum gate operations. For example, when the chaotic iteration value When ≥ 0.5, select Z-basis measurement; when ≥ 0.5, select X-basis measurement. Each time a bit is extracted, it is necessary to ensure that the substate has not been used for authentication or key generation to avoid repeated measurements affecting subsequent fidelity.

[0158] After the measurement is completed, the correlation degree (or entanglement fidelity) is calculated ,in To match the number of bits, is the total number of bits extracted. If the value is less than a threshold (e.g., 0.80), the fractal resource is marked as severely disturbed. Multiple measurements can be configured and compared. If all values ​​are below the threshold, the fractal resource is considered abnormal.

[0159] If the purification method is selected, the controlled NOT gate (CNOT) and phase shift gate ( ) performs error correction and discards high-noise bits after each round, repeating 2 to 3 rounds. If the fidelity is ≥ 0.80, the decryption is considered successful; otherwise, the key is updated.

[0160] During a key update, multiple layers of measurements are performed on the purified or undisturbed fractal substates, and the bit sequences are combined to generate a new shared key using a hashing method. The system and user simultaneously switch to the new key segment to prevent adversaries from continuing attacks using outdated keys.

[0161] By periodically extracting ≥4 bits, the present invention can detect signs of correlation decay at the early stage of noise occurrence (such as a 2% increase in decoherence), and perform entanglement purification or key update in advance. Actual measurements show that the duration of high packet loss can be reduced by about 40%.

[0162] In an environment with a noise level of approximately 2.5%, if the probability of purification success is ≥70%, the overall quantum fidelity of the system will be maintained above 0.80, which is an increase of approximately 0.12 compared to the non-purification scenario.

[0163] In traditional QKD, if correlation degradation cannot be quickly detected and corrected, a rise in noise can easily lead to communication interruption or key failure. This new technology maintains online key updates through monitoring and purification, ensuring uninterrupted communication and making it difficult for eavesdroppers to continuously exploit noise vulnerabilities. This improves bandwidth utilization from 90% to approximately 95%.

[0164] Performing cleansing or updates increases GPU / CPU resource usage by approximately 10%. However, in a 5G base station or AWS EC2t3.xlarge node configuration, this additional load impacts the overall communication process efficiency by no more than 15%. For resource-sensitive scenarios, you can set a longer monitoring interval (such as 120 seconds) or a slightly lower threshold (such as 0.75) to reduce frequent error correction actions when noise levels stabilize.

[0165] In a basic implementation, when the scale of fractal entangled states deployed is ≥32 bits, the system extracts four unmeasured bits every 64 seconds. When the correlation is found to be <0.80, entanglement cleanup is performed (two rounds). If the result is still <0.75, a key update process is initiated, the previous key is discarded, and a new 128-bit quantum key is generated. Compared to a scenario without a monitoring strategy, the communication failure rate can be reduced from 5% to 2%.

[0166] This enhanced implementation adds a parallel measurement mechanism to the basic implementation. This extracts 8 bits for simultaneous measurement and automatically calculates correlation in two subgroups (4 bits each). Localized noise reduction is performed on subgroups where strong noise is present. This enhanced version can further reduce the average failure rate to 1.5% in large-scale applications, but increases CPU usage by approximately 8%. Compared to traditional single-shot QKD, data throughput is increased by 25%.

[0167] Through the above method, the present invention can continuously monitor the quality of fractal entangled state resources in the dynamic encryption process based on quantum key distribution, and perform entanglement purification or key update in time when correlation abnormalities are detected. This not only greatly reduces communication interruptions and attack success rates, but also improves the system's adaptability to various noise environments.

[0168] Preferably, when performing the key update operation, quantum gate operations and multi-layer measurements are applied again to the fractal entangled state resources after entanglement purification, and the measurement results are hashed and the entanglement correlation is verified according to the initial key generation method to obtain a new shared quantum key.

[0169] When monitoring steps or abnormality assessments indicate severe fractal entangled state decay or a high risk of key exposure, the present invention first purifies the fractal entangled state resources to remove substandard qubits. It then applies iterative quantum gates (such as Hadamard gates, controlled-NOT gates, and controlled phase-shift gates) for multi-layer measurements. The measurement results are corrected for short or repeated codes and evaluated for entanglement correlation. A new shared quantum key is then generated using a hashing method for privacy amplification. The system and user then replace the old key, providing a secure update point for subsequent sharding or other encryption strategies.

[0170] In practical applications, entanglement purification is performed when the correlation is lower than 0.75 or the fidelity is less than 0.8 at the system end, with additional quantum gates (CNOT or phase shift ) Repeat this operation and discard noisy bits. For example, if only 50% of the original 64 bits are available, 2-3 rounds of cleansing are performed to retain ≥ 30 high-fidelity quantum bits (≥ 0.85 fidelity).

[0171] After purification is complete, layered gate operations are applied sequentially to the remaining entangled bits. For example, Z-basis and X-basis measurements are performed on the first and third layers, respectively. The results are combined to form the base bit string for this round of updates. If the noise level is still high, an additional CNOT operation can be performed for further error correction.

[0172] The system and user end first perform short code error correction or repetition code error correction (such as (7,4 Hamming code) on the measurement results to obtain the corrected bit string, and then use a hash function (such as SHA-256) to generate a final shared quantum key of fixed length (128 bits or 256 bits) and use an entanglement correlation degree ≥ 0.80 as the passing standard.

[0173] After the system and user share a new key, the chaos scheduler notifies the encryption module to switch encryption subkeys. The old key is gradually invalidated, ensuring that attackers cannot continue to use the previous key bits for decryption or replay.

[0174] In this method, if interference or eavesdropping threats arise during long-term communications, timely key updates are performed to ensure that subsequent encryption strategies maintain high security strength. Compared with single-shot QKD without a post-cleaning and refresh mechanism, the attack success rate can be reduced from 6% to 2.5%.

[0175] Each update will incur additional CPU / GPU overhead (increase by approximately 10%), but experiments show that the impact on data bandwidth is not significant. If the cloud node (t3.xlarge, 4 vCPUs, 16GB RAM) can complete the purification + measurement + hashing process in parallel, the new key can be put in place in an average of less than 1.2 seconds.

[0176] If the Chaos Scheduler decides to activate a new key when the shard number is ≥ 100, the system and the user will synchronize the subkey segment number, preventing confusion with the old key and improving security. This is more flexible than traditional periodic updates (e.g., every 30 minutes) and significantly improves continuous availability in noisy environments.

[0177] In a basic implementation, a 64-qubit fractal entangled state resource was deployed at an edge node for communication. After 120 minutes of operation, noise levels increased, and the fidelity dropped from 0.82 to 0.76. This triggered an entanglement cleanup operation, and after cleanup, the fidelity was remeasured and restored to 0.81. The measurement results were then combined and hashed to generate a new 256-bit key, replacing the original one. Compared to a control experiment without the update, the attack simulation success rate dropped from 5% to 2.2%.

[0178] Extended embodiment, based on the basic embodiment (4 layers of entanglement), attempts to purify with a stricter threshold of 0.85 and add one round of phase shift gate ( Although measurement time is increased by 14%, fidelity is improved to 0.88, and the randomness of new keys (as tested by NIST) passes 8%. Memory usage increases by 15%, but this is acceptable in high-security scenarios, reducing the attack success rate to 1.5%.

[0179] It can be seen that when performing the key update operation, quantum gate operations and multi-layer measurements are applied again to the fractal entangled state resources after entanglement purification, and hash processing and entanglement correlation evaluation are performed in combination with the initial key generation method. This can effectively deal with noise growth or potential eavesdropping, allowing dynamic encryption based on quantum key distribution to continue to maintain high security and communication quality.

[0180] Preferably, at the end of the communication, the remaining fractal entangled state resources are recycled after secondary purification, and the initial parameters and iterative output of the chaos scheduler are deleted to prevent subsequent sessions from reusing previous measurement bases and quantum gate operations.

[0181] After all encrypted transmissions are complete, the fractal entangled state resource typically still contains a number of unmeasured or partially measured qubits that still maintain high fidelity. To avoid having to prepare the entire entangled state resource from scratch for the next communication, a secondary purification process can be performed to remove low-quality bits and retain those with fidelity exceeding a threshold (e.g., 0.8), thereby reducing subsequent communication overhead. However, to prevent subsequent sessions from reusing the same measurement basis, quantum gate operations, and chaos scheduler iteration outputs, the system must delete all previous initialization and iteration records to avoid security risks.

[0182] In practical applications, at the end of communication, the system performs entanglement purification on the remaining subset of fractal entangled states:

[0183] If the number of qubits is ≥32, set two rounds of purification, using controlled NOT gates and phase shift gates ( ) Gradually eliminate bits with severe decoherence; if the available bits after purification are still ≥16, they are marked as "recyclable resources".

[0184] If the fidelity is less than 0.8, or if the actual measured fidelity is less than 0.7, these bits are completely discarded. This secondary cleanup allows the subsequent available bits to continue providing initial entanglement in the next round of communication, saving 15%-20% of the preparation delay (based on simulation results).

[0185] Delete the initial parameters of the chaos scheduler ( etc.) with the entire iterative output list ( ), while also clearing the sub-measurement basis mapping tables and quantum gate sequences generated midway. This prevents the reuse of the same iteration sequence in subsequent sessions, which could lead to duplicate measurement bases and potential for attackers to predict. Logging only retains statistics such as fidelity and packet loss, but does not include internal details of the chaos scheduler.

[0186] Entangled bits marked as "recyclable resources" are stored in quantum storage modules, such as those using low-temperature superconducting cavities or ion traps within edge node clusters. This process preserves quantum gate interfaces and index information, allowing new sessions to directly access these resources without having to prepare and reprocess them from scratch.

[0187] By deleting the chaos scheduler parameters, this method prevents subsequent sessions from repeating or reversing the previous measurement base. Even if an attacker records part of the communication process, they cannot use the old parameters to replay the attack. Compared to retaining the old configuration file, the success rate of simulated attacks is reduced by approximately 50%.

[0188] The entangled state resources remaining after the second purification can serve as the initial entangled subset in the next communication, avoiding the need to re-execute the entire set of fractal iterations and shortening the startup preparation time by approximately 15%. If the fidelity is ≥0.85, the subsequent quantum key distribution speed can be improved.

[0189] Cleaning up the iterative output of the Chaos Scheduler helps reduce log bloat and storage redundancy, reducing disk usage by an average of 10%-15% on system nodes and lowering the probability of failures caused by misconfiguration.

[0190] In the basic implementation, after the edge node completes the communication (lasting about 2 hours), the remaining 32 bits are cleaned for 2 rounds, and finally 20 bits are retained (fidelity ≥ 0.82). Delete the chaos scheduler initialization file ( ) and the iteration value ( ), the log only stores statistical information such as "final fidelity = 0.82, packet loss rate = 2%." The next time a communication is made, these 20 bits can be directly reused as the initial entangled state subset, reducing startup time by approximately 15%.

[0191] An expanded implementation incorporates dynamic routing into the basic implementation: if ≥24 bits remain after secondary cleanup, data is stored in optical fiber routing nodes; if <24 bits remain, data is stored on the superconducting quantum chip test platform instead. This change allows for more flexible resource allocation and can reduce scheduling latency by approximately 20% when extended to interconnected scenarios across multiple edge nodes. However, this requires additional tracking of fidelity drift across nodes, increasing system design complexity by 10%. Final evaluations show that this variable storage strategy maintains approximately 90% stability of resources required for the next session even in complex networks with high noise levels (>3%).

[0192] In summary, the present invention performs secondary purification and recycling on the remaining fractal entangled state resources at the end of communication, and deletes the initial parameters and iterative output of the chaos scheduler. This not only maintains quantum security and fidelity levels, but also realizes resource reuse, cost reduction and efficiency improvement in long-period communication environments, and avoids security vulnerabilities caused by the reuse of historical parameters, thereby continuously meeting the actual requirements of dynamic encryption based on quantum key distribution for high security and high availability.

[0193] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included within the scope of the claims of the present application.

Claims

1. A dynamic encryption method based on quantum key distribution, characterized in that: The following steps are involved: Perform multi-level quantum gate operations on the quantum bit set to generate a fractal entangled state resource with a multi-layer entangled structure; perform multiple rounds of iterative operations on the initial quantum bit set according to the following steps: in each iteration, first apply the Hadamard gate to some quantum bits, and then apply the controlled NOT gate CNOT and the controlled phase gate CZ between the selected quantum bits; after completing one iterative operation, based on the random sampling results of the entangled subset, eliminate the quantum bits whose measurement fidelity does not meet the requirements, and only retain the high-fidelity part, and let these high-fidelity quantum bits enter the next round of iterative operations; thus forming a layered embedding The fractal structure of this set: at the first level, qubits form primary entanglement through preliminary Hadamard gates and a small number of CNOT gates; at the second level, extended operations are applied to the qubits retained in the first level to further spread the quantum entanglement in space; at the third level and above, operations such as controlled phase gates are continued to be performed on qubits that still maintain high fidelity, thus forming a three-dimensional entangled network; after the kth iteration, some qubits still maintain entangled associations, and these entangled associations can be superimposed across levels to form a fractal quantum state arrangement, called a fractal entangled state resource; The fractal entangled state resources are allocated to the system end and the user end respectively. After the allocation is completed, the chaos scheduler generates a measurement basis and quantum gate operations through iterative calculation, so that the system end and the user end can perform multi-layer measurements on the fractal entangled states they hold. The measurement results of the system end and the user end are correlated and compared, and error correction methods are combined. If the statistical threshold is verified to be qualified, the user identity is determined to be passed. After the identity verification is passed, the fractal entangled state is subjected to multi-layer measurement to generate a shared quantum key, and the data is encrypted and decrypted in slices according to the encryption strategy output by the chaos scheduler; The fractal entangled state resources are monitored, and when an anomaly is detected, self-repair operations such as entanglement purification or key update are performed. At the end of the communication, the remaining fractal entangled state resources are recovered and the temporary parameters of the chaos scheduler are cleared.

2. The dynamic encryption method based on quantum key distribution according to claim 1, characterized in that: When performing multi-level quantum gate operations on the quantum bit set, Hadamard gate, controlled NOT gate and controlled phase gate are used in sequence and at least three iterations are performed. After each iteration, some quantum bits are selected to enter the next layer, thereby forming an entangled relationship in the multi-layer structure.

3. The dynamic encryption method based on quantum key distribution according to claim 1, characterized in that: The chaos scheduler iterates the initial chaos parameters based on the discrete chaos equation and outputs the parameters of the measurement basis and quantum gate operation in each iteration, so that the system end and the user end can apply the parameters to their respective fractal entangled state resources for multi-layer measurement after the cutting is completed.

4. The dynamic encryption method based on quantum key distribution according to claim 1, characterized in that: When the system and user sides correlate and compare the measurement results, they first use short code error correction or repetition code error correction to correct single-bit errors. After the error correction, they judge whether the entanglement correlation degree meets the qualified standard based on the statistical threshold. If the entanglement correlation degree is not lower than the statistical threshold, the user identity is determined to be passed.

5. The dynamic encryption method based on quantum key distribution according to claim 1, characterized in that: The statistical threshold is a preset entanglement fidelity value. When the entanglement fidelity value is higher than or equal to the statistical threshold, the user identity is confirmed to be passed.

6. The dynamic encryption method based on quantum key distribution according to claim 1, characterized in that: In the process of performing multi-layer measurement on the fractal entangled state resource to generate the shared quantum key, quantum gate operations are applied in sequence according to the layers and the measurement results of each layer are recorded. The obtained bit sequences are hashed and then merged into the final shared quantum key.

7. The dynamic encryption method based on quantum key distribution according to claim 1, characterized in that: When sharding and encrypting plaintext data according to the encryption strategy output by the chaotic scheduler, a subkey segment extracted from the shared quantum key is selected for each data shard, and symmetric encryption and decryption operations are performed in combination with a preset grouping mode.

8. The dynamic encryption method based on quantum key distribution according to claim 1, characterized in that: In the process of monitoring the fractal entangled state resources, the system side extracts unmeasured entangled sub-states at fixed time intervals and performs multi-layer measurements, compares the measured correlation with the statistical threshold, and performs entanglement purification or key update operations if the correlation is lower than the statistical threshold.

9. The dynamic encryption method based on quantum key distribution according to claim 1, characterized in that: When performing the key update operation, quantum gate operations and multi-layer measurements are applied again to the fractal entangled state resources after entanglement purification, and the measurement results are hashed and the entanglement correlation is verified according to the initial key generation method to obtain a new shared quantum key.

10. The dynamic encryption method based on quantum key distribution according to claim 1, characterized in that: At the end of the communication, the remaining fractal entangled state resources are purified twice and then recycled, and the initial parameters and iterative output of the chaos scheduler are deleted to prevent subsequent sessions from reusing previous measurement bases and quantum gate operations.

Citation Information

Patent Citations

  • Communication system for realizing data dynamic encryption based on quantum key technology

    CN118138235A

  • Digital key security management method and system based on quantum encryption technology

    CN118890153A

  • Quantum random number secure generation method and device based on quantum entanglement and medium

    CN119647611A