Quantum computing systems, analog data transmission and generation methods and related devices
By decomposing the simulation process into quantum computing units and basic computing units for separate processing, and utilizing the quantum barrier comparison operation of the quantum computing units, the performance limitations of classical computers are solved, thereby reducing simulation time and improving efficiency.
Patent Information
- Application Number
- CN202311444370.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-10-31
AI Technical Summary
In the existing technology, classical computers are limited by their computing performance and cannot complete the processing of massive amounts of simulation data in a short time when performing simulation calculations, resulting in long calculation times and low efficiency, which makes it difficult to meet the needs of real-time simulation.
The simulation process is decomposed into two parts: the second simulation index value generation process, which has higher computational performance requirements, is performed by the quantum computing unit, and the third simulation index value generation process, which has lower computational performance requirements, is performed by the basic computing unit. The quantum barrier comparison operation of the quantum computing unit is used to improve the simulation efficiency.
Quantum computing systems shorten simulation time, improve overall computational efficiency, and meet the needs of real-time simulation.
Smart Images

Figure CN117494825B_ABST
Abstract
Description
Technical Field
[0001] The embodiments described in this specification relate to the field of quantum computing, specifically to a quantum computing system, a method for transmitting analog data, a method for generating analog data, and related apparatus. Background Technology
[0002] With the advent of the era of cloud computing and big data, data simulation has been increasingly widely used in various fields of the economy and society. Users can build simulation models based on the characteristics of the simulated object, and then input the initial simulation data into the simulation model to perform simulation calculations and obtain simulation result data, which reflects the actual changes of the simulated object.
[0003] In related technologies, simulations are typically performed using classical computers. To improve the accuracy of the simulation results in reflecting actual changes in the simulated object, it is usually necessary to input massive amounts of initial simulation data into the simulation model. Therefore, the computing power requirements for the devices performing the simulations are relatively high.
[0004] However, due to the limitations of classical computer computing performance, it is difficult to process massive amounts of simulation data in a short time, resulting in problems such as long computation time and low computational efficiency when performing simulation operations. Summary of the Invention
[0005] In view of this, various embodiments of this specification aim to provide a quantum computing system, a method for transmitting analog data, a method for generating analog data, and related apparatus to improve the computational efficiency of performing analog operations.
[0006] One embodiment of this specification provides a quantum computing system, comprising a basic computing unit and a quantum computing unit; wherein the basic computing unit is configured to perform the following steps: acquiring a simulated dataset; wherein the simulated dataset is used to simulate the fluctuation of a first simulated index of a target object within a specified time period; the specified time period includes a specified number of sub-time periods; sending the simulated dataset to the quantum computing unit; generating a third simulated index of the target object based on the second simulated index received from the quantum computing unit and a specified calculation rule; wherein the quantum computing unit is configured to perform the following steps: receiving the simulated dataset sent by the basic computing unit; performing a specified number of quantum barrier comparison operations based on the simulated dataset to obtain the second simulated index of the target object after the specified time period; wherein each quantum barrier comparison operation is used to compare the first simulated index of the target object within any sub-time period with a specified barrier level; and sending the second simulated index of the target object to the basic computing unit.
[0007] One embodiment of this specification provides a method for transmitting simulated data, applied to a quantum computing unit. The method includes: receiving a simulated dataset transmitted by a basic computing unit; wherein the simulated dataset is used to simulate the fluctuation of a first simulated indicator of a target object within a specified time period; the specified time period includes a specified number of sub-time periods; performing a specified number of quantum barrier comparison operations based on the simulated dataset to obtain the value data of a second simulated indicator of the target object after the specified time period; wherein each quantum barrier comparison operation is used to compare the value data of the first simulated indicator within any sub-time period with a specified barrier level; the value data of the second simulated indicator is used to represent the amount by which the value data of the first simulated indicator after the specified time period exceeds a specified threshold; and transmitting the value data of the second simulated indicator to the basic computing unit.
[0008] One embodiment of this specification provides a method for generating simulated data, applied to a basic computing unit; the method includes: acquiring a simulated dataset; wherein the simulated dataset is used to simulate the fluctuation of a first simulated indicator of a target object within a specified time period; the specified time period includes a specified number of sub-time periods; sending the simulated dataset to a quantum computing unit, so that the quantum computing unit performs a specified number of quantum barrier comparison operations based on the simulated dataset to obtain the value data of a second simulated indicator of the target object after the specified time period; wherein each quantum barrier comparison operation is used to compare the value data of the first simulated indicator within any sub-time period with a specified barrier level; the value data of the second simulated indicator is used to represent the amount by which the value data of the first simulated indicator after the specified time period exceeds a specified threshold; and generating the value data of a third simulated indicator of the target object based on the value data of the second simulated indicator received from the quantum computing unit and a specified calculation rule.
[0009] One embodiment of this specification provides a simulated data transmission device applied to a quantum computing unit. The device includes: a receiving module for receiving a simulated dataset transmitted by a basic computing unit; wherein the simulated dataset is used to simulate the fluctuation of a first simulated index of a target object within a specified time period; the specified time period includes a specified number of sub-time periods; an execution module for performing a specified number of quantum barrier comparison operations based on the simulated dataset to obtain the value data of a second simulated index of the target object after the specified time period; wherein each quantum barrier comparison operation is used to compare the value data of the first simulated index within any sub-time period with a specified barrier level; the value data of the second simulated index is used to represent the amount by which the value data of the first simulated index after the specified time period exceeds a specified threshold; and a transmitting module for transmitting the value data of the second simulated index to the basic computing unit.
[0010] One embodiment of this specification provides a simulation data generation device applied to a basic computing unit; the device includes: an acquisition module for acquiring a simulation dataset; wherein the simulation dataset is used to simulate the fluctuation of a first simulation index of a target object within a specified time period; the specified time period includes a specified number of sub-time periods; a sending module for sending the simulation dataset to a quantum computing unit, so that the quantum computing unit performs a specified number of quantum barrier comparison operations based on the simulation dataset to obtain the value data of a second simulation index of the target object after the specified time period; wherein each quantum barrier comparison operation is used to compare the value data of the first simulation index within any sub-time period with a specified barrier level; the value data of the second simulation index is used to represent the amount by which the value data of the first simulation index after the specified time period exceeds a specified threshold; and a generation module for generating the value data of a third simulation index of the target object based on the value data of the second simulation index received from the quantum computing unit and a specified calculation rule.
[0011] This specification provides a computer device including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the methods described in the above embodiments.
[0012] This specification provides a computer-readable storage medium storing computer program instructions that, when executed by a processor, implement the methods described in the above embodiments.
[0013] In several embodiments provided in this specification, the basic computing unit in the quantum computing system acquires a simulation dataset containing the values of a first simulation index for simulating a target object, and sends the simulation dataset to a quantum computing unit belonging to the same quantum computing system. Upon receiving the simulation dataset, the quantum computing unit performs a specified number of quantum barrier comparison operations to obtain the values of a second simulation index of the target object after a specified time period, and sends the values of the second simulation index to the basic computing unit. Upon receiving the values of the second simulation index, the basic computing unit generates the values of a third simulation index of the target object based on the values of the second simulation index and specified calculation rules. By having the quantum computing unit execute the generation process of the second simulation index value, which has higher computational performance requirements, and the basic computing unit execute the generation process of the third simulation index value, which has lower computational performance requirements, the computation time for performing the simulation operations is shortened, and the overall computational efficiency of the quantum computing system used to perform the simulation operations is improved. Attached Figure Description
[0014] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 A schematic diagram of a quantum computing system provided for one embodiment of this specification.
[0016] Figure 2 This is a flowchart illustrating a simulated data transmission method provided for one embodiment of this specification.
[0017] Figure 3 A schematic diagram of a quantum circuit for obtaining the value data of a second simulation index of a target object, provided as one embodiment of this specification.
[0018] Figure 4 This is a schematic flowchart illustrating a method for generating simulated data according to one embodiment of this specification.
[0019] Figure 5 This is a schematic diagram illustrating a specified time period divided according to three division rules, as provided in one embodiment of this specification.
[0020] Figure 6 This is a schematic diagram of an analog data transmission apparatus provided for one embodiment of this specification.
[0021] Figure 7This is a schematic diagram of a simulation data generation apparatus provided for one embodiment of this specification.
[0022] Figure 8 A schematic diagram of a computer device provided for one embodiment of this specification. Detailed Implementation
[0023] In various economic and social fields such as transportation, weather forecasting, and population data analysis, the values of specific indicators may fluctuate significantly over time, and the future trends of these indicator values can have a significant impact on current decision-making. Therefore, it is necessary to predict the trends of specified indicator values over a future period to provide a basis for current decision-making.
[0024] Currently, forecasting data demanders typically utilize classical computers to perform simulations, obtaining simulation results that reflect the future actual fluctuation trends of specified indicator values for the simulated object. Specifically, the simulation process may include the following steps: first, constructing a simulation model based on the historical changes in the specified indicator values; second, generating initial simulation data based on the changing patterns of the specified indicator values; third, inputting the initial simulation data into the simulation model; and finally, using the output of the simulation model as the simulation result data.
[0025] Because the factors influencing the future trend of a specified indicator's value are complex, when the initial simulation data volume is small, the simulation results output by the simulation model differ significantly from the actual future fluctuation trend of the specified indicator's value; that is, the simulation effect is poor. To improve the simulation effect, a massive amount of initial simulation data needs to be input into the simulation model. However, due to the limitations of classical computers' computing power, the simulation process based on this massive initial simulation data is time-consuming and inefficient, making it difficult to meet the real-time requirements of the specified indicator's value.
[0026] Therefore, it is necessary to provide a quantum computing system that improves the overall computational efficiency of the quantum computing system used to perform simulation operations by decomposing the simulation operation process for the target simulation object into a first simulation index value data generation process, a second simulation index value data generation process, and a third simulation index value data generation process. The second simulation index value data generation process, which has higher computational performance requirements, is executed by the quantum computing unit, while the third simulation index value data generation process, which has lower computational performance requirements, is executed by the basic computing unit.
[0027] Please see Figure 1One embodiment of this specification provides a system for generating simulated index value data. This system can be implemented using a quantum computing system. The quantum computing system may include basic computing units and quantum computing units.
[0028] A basic computing unit can be an electronic device with a certain level of computing and display capabilities. Specifically, for example, a basic computing unit can include desktop computers, tablets, laptops, smartphones, smart TVs, and smart wearable devices equipped with displays. A basic computing unit may include a network communication module, a processor, and memory.
[0029] In some implementations, the basic computing unit can act as a client. Alternatively, the basic computing unit can be deployed with client software. The basic computing unit can send specified data or data computation tasks to the quantum computing unit for computation, receive the quantum computation results from the quantum computing unit, and process and display the quantum computation results from the quantum computing unit.
[0030] Based on existing computer architecture, the basic computing unit may also include servers or workstations. The server can be a distributed server, or a system with multiple processors, memory, network communication modules, etc., operating collaboratively. Alternatively, the server can be a server cluster formed by several servers. The basic computing unit can process the quantum computation results fed back by the quantum computing unit through the server or workstation, and then send the processing results to the client for display.
[0031] A quantum computing unit can be a device that utilizes the properties of quantum mechanics to achieve quantum computing. Specifically, a quantum computing unit can use the quantum states of qubits as data carriers, and drive the evolution of qubits based on the principle of linear superposition of quantum states to achieve a specified computation process. For example, a quantum computing unit can be a superconducting qubit control circuit based on ultra-low temperature technology. Alternatively, a quantum computing unit can be a qubit control circuit built using quantum well technology. Of course, a quantum computing unit can also be an integrated optical quantum chip, etc.
[0032] The basic computing unit and the quantum computing unit can communicate with each other. For example, they can communicate via a wired connection. Alternatively, they can communicate wirelessly via a network communication module.
[0033] Please see Figure 1 One embodiment of this specification provides a quantum computing system. The quantum computing system may include basic computing units and quantum computing units.
[0034] This basic computing unit can be used to perform the following steps:
[0035] Obtain a simulated dataset; wherein the simulated dataset is used to simulate the fluctuation of the value data of the first simulated indicator of the target object within a specified time period; the specified time period includes a specified number of sub-time periods.
[0036] The simulated dataset is sent to the quantum computing unit.
[0037] The third simulation index of the target object is generated based on the value data of the second simulation index received from the quantum computing unit and the specified calculation rules.
[0038] This quantum computing unit can be used to perform the following steps:
[0039] Receives the simulated dataset sent by the basic computing unit.
[0040] Perform a specified number of quantum barrier comparison operations based on the simulated dataset to obtain the value data of the second simulated index of the target object after the specified time period; wherein, each quantum barrier comparison operation is used to compare the value data of the first simulated index of the target object within any sub-time period with the specified barrier level.
[0041] The value data of the second simulation index is sent to the basic computing unit.
[0042] Please see Figure 2 One embodiment of this specification provides a method for simulating data transmission, which can be applied to a quantum computing unit in a quantum computing system. The method may include the following steps.
[0043] S110: Receive a simulation dataset sent by the basic computing unit; wherein the simulation dataset is used to simulate the fluctuation of the value data of the first simulation index of the target object within a specified time period; the specified time period includes a specified number of sub-time periods.
[0044] In related technologies, after obtaining a simulated dataset of the fluctuations in the values of a first simulated index used to simulate the target object within a specified time period, the specified time period from a specified start time to a specified end time can be discretized into multiple sub-time periods. Then, a classical computer is used to simulate the fluctuations of the first simulated index values within each sub-time period, thereby obtaining the values of a second simulated index of the target object after the specified time period. Since simulation accuracy can be improved by increasing the degree of discretization of the time period, i.e., increasing the number of sub-time periods, a large number of sub-time periods is required for high simulation accuracy. Due to the limitations of classical computer computing performance, the overall computation time required to generate the values of the second simulated index is long. Therefore, the quantum superposition characteristics and the coherence between qubits can be utilized to allow a quantum computing unit to execute the generation process of the second simulated index values, thereby shortening the computation time required to obtain these values.
[0045] In this embodiment, the target object and its first simulated index can be determined based on the technical field of the data simulation method. Specifically, for example, when the data simulation method is applied to the transportation field, the target object can be the traffic flow of a specified road segment, and the first simulated index of the target object can be the vehicle density of the specified road segment. When the data simulation method is applied to the weather forecasting field, the target object can be the weather of a specified region, and the first simulated index of the target object can be the temperature of the specified region. When the data simulation method is applied to the population data analysis field, the target object can be the population of a specified country or region, and the first simulated index of the target object can be the natural growth rate of the population of the specified country or region. When the data simulation method is applied to the financial derivatives calculation field, the target object can be a barrier option, and the first simulated index of the target object can be the price of the underlying asset of the barrier option.
[0046] In this embodiment, the specified time period can be the time interval between a specified start time and a specified end time. Specifically, for example, the time scale of the specified start time and specified end time can differ depending on the target object being simulated. For target objects with high data real-time requirements, such as traffic flow on a specified road segment and weather in a specified region, the specified start time and specified end time can be on an hourly time scale; that is, the specified start time can be the current hour. For target objects with moderate data real-time requirements, such as obstacle options, the specified start time and specified end time can be on a daily time scale; that is, the specified start time can be the current day, and the specified end time can be the option's expiration date. For target objects with low data real-time requirements, such as the population of a specified country or region, the specified start time and specified end time can be on a grade-level time scale; that is, the specified start time can be the current year.
[0047] In this embodiment, the specified quantity is a positive integer, and the specified quantity of sub-time periods can cover the specified time period; that is, any moment in the specified time period can fall into at least one sub-time period. Specifically, each sub-time period can have a start time and an end time, and each sub-time period can be the time interval between its corresponding start time and end time. At least one sub-time period has a start time that is the specified start time, and at least one sub-time period has an end time that is the specified end time. This embodiment does not impose specific limitations on the time intervals of the sub-time periods. For example, the time intervals of different sub-time periods can be equal or unequal.
[0048] In this embodiment, when the target asset is a barrier option, the underlying asset can be a stock, index, commodity, futures, or foreign exchange. Specifically, for example, referring to Formula 1, the price fluctuations of the underlying asset of the barrier option within a specified time period and within a specified sub-time period can be simulated using the Black-Scholes-Merton model. This model assumes that the price fluctuations of the underlying asset follow a normal distribution, and therefore the underlying asset price follows a log-normal distribution.
[0049]
[0050] Where t represents any time within a specified time period or any sub-time period, excluding the start date, and S t St represents the price of the underlying asset at time t, S0 represents the price of the underlying asset on the specified start date or the start date of any sub-period, σ is the volatility parameter, and Wt represents the price of the underlying asset at time t. t This indicates that the price of the underlying asset follows a geometric Brownian motion (GBM) at time t, where r is the return parameter (i.e., the risk-free rate).
[0051] In this embodiment, the fluctuation of the first simulated index's value data within a specified time period can be represented by the value data of the first simulated index at any time other than the start time within each sub-time period. Specifically, for example, the fluctuation of the first simulated index's value data within a specified time period can be represented by the value data of the first simulated index at the end time of each sub-time period.
[0052] In this embodiment, the simulated dataset sent by the basic computing unit can be received by directly receiving the complete simulated dataset.
[0053] In some implementations, the simulated dataset sent by the basic computing unit can be received, or a simulated dataset can be generated by receiving a subset of the simulated dataset or data, and then generating the simulated dataset based on all the received subsets or data.
[0054] S120: Perform a specified number of quantum barrier comparison operations based on the simulated dataset to obtain the value data of the second simulated index of the target object after the specified time period; wherein, each quantum barrier comparison operation is used to compare the value data of the second simulated index within any sub-time period with the specified barrier level.
[0055] In this embodiment, after receiving the simulated dataset, a quantum barrier comparison operation can be performed based on the simulated dataset, and then the value data of the second simulated index of the target object after a specified time period can be obtained based on the quantum barrier comparison result, thereby improving the computational efficiency of obtaining the value data of the second simulated index.
[0056] In this embodiment, the simulated dataset may include a specified number of simulated datasets of the value distributions of the first simulated indicator and simulated comparison data. Specifically, for example, the simulated dataset of the value distributions of each first simulated indicator may include multiple sets of data pairs representing the probability distribution of the value data of the first simulated indicator within any sub-time period, wherein the value of the first simulated indicator within any sub-time period is a random process. The simulated comparison data may include obstacle level data and specified threshold data. Since the value data of the first simulated indicator at any time t within the sub-time period, excluding the start time, can be used to characterize the value data of the first simulated indicator within the sub-time period, the value of the first simulated indicator at time t is not a single numerical value, but a continuous numerical value conforming to a continuous probability distribution. Taking the target object as a barrier option and the underlying asset price as the first simulation indicator as an example, as shown in Formula 1, the underlying asset price follows a log-normal distribution. Therefore, according to the simulation principle of Monte Carlo simulation, uniform sampling is performed on the continuous sample price data that follows a log-normal distribution to obtain multiple discrete underlying asset price simulation data and the distribution probability data corresponding to each price simulation data. Each data pair in the price distribution simulation dataset is composed of the corresponding price simulation data and distribution probability data.
[0057] In this embodiment, the value of the second simulated indicator can be used to represent the excess of the value of the first simulated indicator after the specified time period relative to a specified threshold. Specifically, for example, different target objects can correspond to different second simulated indicators and specified thresholds. When the target object is the traffic flow of a specified road segment, the second simulated indicator can be the traffic flow saturation of the specified road segment, and the specified threshold can represent the road congestion threshold. When the target object is the weather of a specified region, the second simulated indicator can be the high temperature level of the specified region, and the specified threshold can be the high temperature warning threshold. When the target object is the population of a specified country or region, the second simulated indicator can be the population change rate of the specified country or region, and the specified threshold can be the population warning threshold. When the target object is a barrier option, the second simulated indicator is the barrier option payoff, and the specified threshold can be the strike price.
[0058] In this embodiment, the value of the first simulated indicator within any sub-time period can be the value of the first simulated indicator at any time other than the start time within any sub-time period. Specifically, for example, it can be the value of the first simulated indicator at the end time of any sub-time period.
[0059] In this embodiment, the obstacle level can be used as a comparison benchmark value for comparison with the value data of the first simulated index of the target object. Specifically, the specified threshold and the obstacle level may be equal or unequal. This specification does not specifically limit the numerical relationship between the specified threshold and the obstacle level in this embodiment.
[0060] In this embodiment, the function of performing a specified number of quantum barrier comparison operations differs depending on the target object, the corresponding second simulation index, and the specified threshold. Specifically, for example, when the target object is the traffic flow of a specified road segment, the corresponding second simulation index is the traffic flow saturation of the specified road segment, and the corresponding specified threshold represents the road congestion threshold, the function of performing a specified number of quantum barrier comparison operations is to determine whether the specified road segment is congested within a specified time period. When the target object is the weather of a specified region, the corresponding second simulation index is the temperature level of the specified region, and the corresponding specified threshold can be a high-temperature warning threshold, the function of performing a specified number of quantum barrier comparison operations is to determine whether the temperature of the specified region remains high within a specified time period. When the target object is the population of a specified country or region, the corresponding second simulation index is the population change rate of the specified country or region, and the corresponding specified threshold is a population warning threshold, the function of performing a specified number of quantum barrier comparison operations is to determine whether the population of the specified country or region is consistently in a negative growth state within a specified time period. When the target object is a barrier option, the corresponding second simulation indicator is the barrier option payoff, and the corresponding specified threshold is the strike price, a specified number of quantum barrier comparison operations are performed according to the barrier option payoff calculation rules.
[0061] In some implementations, performing a specified number of quantum obstacle comparison operations based on the simulated dataset to obtain the value data of a second simulated indicator of the target object after the specified time period may include: constructing an obstacle comparison circuit based on the simulated dataset; running the obstacle comparison circuit to perform a specified number of quantum obstacle comparison operations to obtain the value data of a first simulated indicator of the target object and the obstacle comparison result of a specified obstacle level; constructing a value data generation circuit for a second simulated indicator based on the simulated dataset and the obstacle comparison result; and running the value data generation circuit for the second simulated indicator to obtain the value data of the second simulated indicator of the target object after the specified time period.
[0062] In some cases, the value of the second simulated index of the target object can depend on the comparison result of the value of the first simulated index of the target object with the specified barrier level in each sub-time period. Taking the target object as a barrier option, the corresponding first simulated index as the underlying asset price, and the corresponding second simulated index as the barrier option payoff as an example, according to the payoff calculation rules of barrier options, the expected payoff of the barrier option depends on the comparison result of the price of its underlying asset with the specified barrier level in each sub-time period. To obtain this barrier comparison result using a quantum circuit, the same quantum barrier comparison unit can be used to perform a quantum barrier comparison operation once for each sub-time period, and the barrier comparison result can be mapped to an auxiliary bit to obtain the barrier comparison result. Since the same quantum barrier comparison unit is used, the complexity of constructing the barrier comparison circuit can be reduced, the construction efficiency of the barrier comparison circuit can be improved, and thus the computational efficiency of the quantum computing unit can be improved to a certain extent.
[0063] In this embodiment, the obstacle comparison circuit may include a specified number of identical quantum obstacle comparison units. Each quantum obstacle comparison unit can be used to perform one quantum obstacle comparison operation. Specifically, for example, each quantum obstacle comparison unit may include a variable bit register, obstacle bits, and a quantum obstacle comparator. The variable bit register may consist of variable bits used to characterize the probability distribution of the first simulated index value of the target object. The state of the obstacle bits can be used to characterize the obstacle comparison sub-result corresponding to any sub-time period. The quantum obstacle comparator can be used to compare the magnitude relationship between the first simulated index value data of the target object and a specified obstacle level.
[0064] In this embodiment, the number of quantum barrier comparison units can be equal to the number of sub-time periods.
[0065] In this embodiment, the obstacle comparison result can be determined based on a specified number of obstacle comparison sub-results corresponding to a specified number of sub-time periods. Specifically, for different target objects, different calculation rules can be used to calculate the specified number of obstacle comparison sub-results to obtain the obstacle comparison result. For example, when the target object is the traffic flow of a specified road segment, the corresponding first simulation index is the vehicle density of the specified road segment, and the corresponding second simulation index is the traffic flow saturation of the specified road segment, an OR operation can be performed on the specified number of obstacle comparison sub-results, and the OR operation result can be used as the obstacle comparison result. When the target object is the weather of a specified region, the corresponding first simulation index is the temperature of the specified region, and the corresponding second simulation index is the degree of high temperature in the specified region; and when the target object is the population of a specified country or region, the corresponding first simulation index is the natural population growth rate of the specified country or region, and the corresponding second simulation index is the degree of population change in the specified country or region, an AND operation can be performed on the specified number of obstacle comparison sub-results, and the AND operation result can be used as the obstacle comparison result. In the case of an obstacle option, for a knock-in obstacle option, an OR operation can be performed on the specified number of obstacle comparison sub-results, and the OR operation result can be used as the obstacle comparison result. For knock-out options, a bitwise AND operation can be performed on a specified number of barrier comparison sub-results, and the result of the bitwise AND operation can be used as the barrier comparison result.
[0066] In this embodiment, the second simulated index value generation circuit can be used to generate the value data of the second simulated index of the target object after a specified time period. Specifically, for example, the second simulated index value generation circuit can apply a quantum logic gate to a specified qubit, measure the probability that the specified qubit is in a specified quantum state, and then obtain the value data of the second simulated index of the target object based on this probability. The second simulated index value generation circuit may include a virtual control RY gate for adjusting the mapping result of the specified quantum state based on a specified mapping rule to 0. The specified mapping rule can be used to map the value data of the second simulated index of the target object to the amplitude of the specified quantum state of the specified qubit.
[0067] In some implementations, constructing a barrier comparison circuit based on the simulated dataset may include: determining the number of variable bits in each variable bit register based on the number of data pairs in the value distribution dataset of each first simulated index; determining the parameters of each quantum barrier comparator based on the barrier level data; establishing the specified number of identical quantum barrier comparison units; establishing the control relationship between the barrier bits in each quantum barrier comparison unit and the controlled quantum logic gate; and establishing the interaction relationship between the controlled quantum logic gate and the auxiliary bits to form the barrier comparison circuit.
[0068] In some cases, quantum circuits can be constructed by determining the number of qubits in a qubit register, determining the quantum barrier comparator, and specifying the control and interaction relationships between quantum logic gates and different qubits, thus providing a basis for the execution of the quantum barrier comparison operation.
[0069] Please refer to Formula 2. In this embodiment, the number of variable bits in each variable bit register can be determined based on the number of data pairs in the value distribution dataset of each first simulated index. The logarithm of the number of data pairs in the value distribution dataset of each first simulated index can be used as the number of variable bits in each variable bit register. Since the number of variable bits in each variable bit register is a positive integer, when sampling data pairs in the value distribution dataset of each first simulated index using the Monte Carlo simulation method, the sampling number can be a positive integer power of 2.
[0070] n=log2N Formula 2
[0071] Where n represents the number of variable bits in each variable bit register, and N represents the number of data pairs in the value distribution dataset of each first simulation index.
[0072] In this embodiment, the parameters of each quantum obstacle comparator are determined based on the obstacle level data. This can be achieved by setting the numerical value of the obstacle level data as the comparison benchmark value for the quantum obstacle comparator. Specifically, the number of obstacle level data values can vary depending on the target object. For example, if the target object is the population of a specified country or region, and the corresponding first simulation index is the natural population growth rate of the specified country or region, the obstacle level data may have only one value. In this case, this value can be set as the comparison benchmark value for all quantum obstacle comparators. If the target object is the traffic flow of a specified road segment, and the corresponding first simulation index is the vehicle density of the specified road segment, and the corresponding second simulation index is the traffic flow saturation of the specified road segment, the obstacle level data may have multiple values. In this case, according to the calculation rules of the second simulation index of the target object, the different values of the obstacle level data can be set as the comparison benchmark values for different quantum obstacle comparators. When the target object is an obstacle option, for a single obstacle option, the obstacle level data may have only one value, while for a double obstacle option or a multi-obstacle option, the obstacle level data may have multiple values.
[0073] In this embodiment, the specified number of identical quantum barrier comparison units can be established by repeatedly executing the establishment process of a single quantum barrier comparison unit a specified number of times. Specifically, a single quantum barrier comparison unit can be established through the following process: first, establishing the correspondence between any variable bit in a variable bit register and any barrier bit; then, establishing the control relationship between the variable bit in the variable bit register and a quantum barrier comparator with determined parameters, and the interaction relationship between the quantum barrier comparator and the barrier bit corresponding to the variable bit register.
[0074] In this embodiment, a control relationship is established between the barrier bit and the controlled quantum logic gate in each quantum barrier comparison unit; and an interaction relationship is established between the controlled quantum logic gate and the auxiliary bit. The controlled quantum logic gate can be controlled using the barrier bit in each quantum barrier comparison unit, and the controlled quantum logic gate can then be applied to the auxiliary bit. Specifically, the type of controlled quantum logic gate can be determined based on the target object and the corresponding first and second simulation indicators. For example, if the target object is the traffic flow of a specified road segment, the corresponding first simulation indicator is the vehicle density of the specified road segment, and the corresponding second simulation indicator is the traffic flow saturation of the specified road segment, the controlled quantum logic gate can be a controlled OR gate. If the target object is the weather of a specified region, the corresponding first simulation indicator is the temperature of the specified region, and the corresponding second simulation indicator is the degree of high temperature in the specified region; and if the target object is the population of a specified country or region, the corresponding first simulation indicator is the natural population growth rate of the specified country or region, and the corresponding second simulation indicator is the degree of population change in the specified country or region, the controlled quantum logic gate can be a controlled AND gate. When the target is a barrier option, for a knock-in barrier option, the controlled quantum logic gate can be a controlled OR gate, and for a knock-out barrier option, the controlled quantum logic gate can be a controlled AND gate.
[0075] Please see Figure 3 The obstacle comparison circuit is illustrated using a controlled quantum logic gate, specifically a controlled OR gate. Figure 3 In the diagram, the obstacle comparison line is outlined by a dashed line. |i1> to |i d > indicates a variable bit register, n1 to n d They represent |i1> to |i d The number of variable bits in each variable bit register, |b1> to |b d > represents the barrier bit, d represents the number of variable bit registers, |b ⊥ > represents auxiliary bits, C B[i1≥B] represents a quantum barrier comparator, where B indicates the specified barrier level. A quantum barrier comparator unit consists of a variable bit register, a barrier bit, and a quantum barrier comparator with the same subscript.
[0076] In some implementations, running the barrier comparison circuit to perform a specified number of quantum barrier comparison operations to obtain the value data of the first simulated index of the target object and the barrier comparison result of a specified barrier level may include: preparing multiple sets of data pairs included in the value distribution dataset of each first simulated index onto the variable bits in each variable bit register, so as to characterize the probability distribution of the value of the first simulated index of the target object in any sub-time period through the state of the variable bits in each variable bit register; performing a specified number of quantum barrier comparison operations using a specified number of quantum barrier comparison units to obtain a specified number of barrier comparison sub-results; and using a specified number of barrier bits to control the controlled quantum logic gate to act on the auxiliary bit, so as to map the specified number of barrier comparison sub-results onto the auxiliary bit to obtain the barrier comparison result.
[0077] In some cases, the value data of the first simulated index of the target object within a sub-time period can be prepared onto the variable bits in the variable bit register. The quantum barrier comparison operation process can be performed using the quantum barrier comparison unit to obtain a specified number of barrier comparison sub-results. Then, the specified number of barrier comparison sub-results can be mapped onto auxiliary bits to obtain the barrier comparison result, which provides a basis for the generation process of the value data of the second simulated index.
[0078] In this embodiment, a specified number of quantum barrier comparison operations are performed using a specified number of quantum barrier comparison units to obtain a specified number of barrier comparison sub-results. For each quantum barrier comparison unit, the variable bits in each variable bit register can be used to control the quantum barrier comparator to act on the barrier bit, thereby obtaining the value data of the first simulated index of the target object in each sub-time period and the barrier comparison sub-result of the specified barrier level.
[0079] In some implementations, running the second simulated index value generation circuit to obtain the value data of the second simulated index of the target object after the specified time period may include: using the variable bits in the specified variable bit register and the auxiliary bits to control the quantum threshold comparator to act on the comparison bit, obtaining the comparison result of the value of the first simulated index of the target object within the specified sub-time period and the specified threshold; using the variable bits in the specified variable bit register, the auxiliary bits, and the comparison bits to control the real-controlled RY gate to act on the result bit, so that the result bit is in a specified quantum state; using the variable bits in the specified variable bit register, the auxiliary bits, and the comparison bits to control the virtual-controlled RY gate to act on the result bit, so that the mapping result of the specified quantum state after mapping according to the specified mapping rule is 0; measuring the amplitude of the result bit in the specified quantum state to obtain the value data of the second simulated index.
[0080] In some cases, a quantum comparator can be applied to the comparison bit to simulate the comparison of the value data of the first simulated index of the target object with a specified threshold. Then, the simulated gain data can be mapped to the specified quantum state amplitude of the result bit through a real-controlled RY gate with specific parameters and a virtual-controlled RY gate for compensation. This realizes the process of generating the value data of the second simulated index using quantum circuits, obtains the value data of the second simulated index of the target object, and improves the computational efficiency of the simulation operation.
[0081] In this embodiment, the circuit for generating the value of the second simulated index may further include a comparison bit, a result bit, a quantum price comparator, and a real-controlled RY gate. Specifically, the state of the comparison bit can be used to characterize the comparison result between the value of the first simulated index of the target object at a specified termination time and a specified threshold. The quantum threshold comparator can be used to compare the magnitude relationship between the value of the first simulated index of the target object at a specified termination time and the specified threshold. The result bit can be used to store the value data of the second simulated index of the target object. The gate parameters of the real-controlled RY gate can be determined according to the calculation rules of the value data of the second simulated index.
[0082] In this embodiment, the value range of the second simulated indicator can include 0 and the difference between the value of the first simulated indicator after a specified time period and a specified threshold K. Specifically, if the value of the first simulated indicator after the specified time period is not greater than the specified threshold K, the second simulated indicator can be 0. If the value of the first simulated indicator after the specified time period is greater than the specified threshold K, the second simulated indicator can be the difference between the value of the first simulated indicator after the specified time period and the specified threshold K.
[0083] In this embodiment, a one-to-one correspondence can exist between the variable bit register and the sub-time period. Specifically, a one-to-one correspondence can exist between the variable bit register and the value distribution dataset of the first simulated indicator, and a one-to-one correspondence can exist between the value distribution dataset of the first simulated indicator and the sub-time period. For example, the variable bit register, the price distribution simulation dataset, and the sub-time period can have identifiers indicating a corresponding relationship.
[0084] In this embodiment, the sub-time period corresponding to the specified variable bit register can have the same termination time as the specified time period.
[0085] In this embodiment, after using the variable bits, auxiliary bits, and comparison bits in the specified variable bit register to control the real-controlled RY gate to act on the result bit, so that the result bit is in a specified quantum state, the mapping result obtained by the specified quantum state based on the specified mapping rule is not 0. At this time, it is impossible to obtain the value data of the second simulation index by measuring the result bit. Specifically, if the auxiliary bit is |0>, then the result bit cannot be |0>, and the mapping result obtained by |0> based on the specified mapping rule is not 0. Therefore, the variable bits, auxiliary bits, and comparison bits in the specified variable bit register can be used to control the virtual-controlled RY gate to act on the result bit, so that the mapping result after the specified quantum state is mapped based on the specified mapping rule is 0. Specifically, the real-controlled bit of the virtual-controlled RY gate is the variable bit in the specified variable bit register, and the virtual-controlled bit is the auxiliary bit.
[0086] Please see Figure 3 For different target objects, the same second simulated indicator value generation circuit can be run to obtain the second simulated indicator value data for the target object. Figure 3 In the diagram, the data generation path for the second simulated index is the part enclosed by the dashed line. |c> represents the comparison bits, |p> represents the result bits, and C K [i d [≥K] represents a quantum threshold comparator, where K represents the specified threshold and R... y [θ1] represents the real-controlled RY gate, R y [θ2] represents the virtual control RY gate.
[0087] S130: Send the value data of the second simulation index to the basic computing unit.
[0088] In this embodiment, after the obstacle comparison circuit and the second simulated index value generation circuit are run, the value data of the second simulated index of the target object can be obtained through the measurement result bits. The value data of the second simulated index is sent to the basic computing unit, so that the basic computing unit can perform the subsequent calculation process of the value data of the third simulated index based on the received value data of the second simulated index. The quantum computing unit performs the generation process of the value data of the second simulated index, which shortens the operation time of the simulation operation and improves the operation efficiency of the quantum computing system.
[0089] In the embodiments described in this specification, the quantum computing unit receives a simulation dataset sent by the basic computing unit, performs a process of generating the value data of the second simulation index according to the simulation dataset, obtains the value data of the second simulation index of the target object, and sends the value data of the second simulation index to the basic computing unit, thereby shortening the computation time of performing simulation operations and improving the overall computational efficiency of the quantum computing system used to perform simulation operations.
[0090] Please see Figure 4 One embodiment of this specification provides a method for generating simulated data, which can be applied to the basic computing unit in a quantum computing system. This method may include the following steps.
[0091] S210: Obtain a simulated dataset; wherein the simulated dataset is used to simulate the fluctuation of the value data of the first simulated indicator of the target object within a specified time period; the specified time period includes a specified number of sub-time periods.
[0092] In this embodiment, the simulated dataset can be obtained by directly receiving the simulated dataset input by the user.
[0093] In some implementations, obtaining a simulation dataset may include: receiving initial simulation data; wherein the initial simulation data includes simulation parameter data, simulation comparison data, and simulation time data; dividing the specified time period into a specified number of sub-time periods according to a specified division rule; generating a specified number of value distribution datasets of first simulation indicators based on the specified number of sub-time periods and the simulation parameter data; and determining the simulation dataset based on the specified number of value distribution datasets of first simulation indicators and the simulation comparison data.
[0094] The accuracy of simulating the actual fluctuations of the first simulated indicator for the target object depends on the time interval length and start and end times of each sub-time period. Taking a barrier option as an example, according to the payoff calculation rules of barrier options and the simulation principle of Monte Carlo simulation, the accuracy of the price simulation data depends on the time interval length and start and end times of each sub-time period. Since the time interval and start and end times of a specified number of sub-time periods are determined by the method of dividing the specified time period, the method of dividing the specified time period has a significant impact on the simulation accuracy of the first simulated indicator's value data. By dividing the specified time period into a specified number of sub-time periods with equal time intervals and partial overlap between adjacent sub-time periods, the fluctuations of the first simulated indicator's value data within each sub-time period include some of the fluctuations of the first simulated indicator's value data within adjacent sub-time periods, thereby improving the simulation accuracy of the first simulated indicator's value data.
[0095] In this embodiment, the simulated parameter data can be used to generate the value data of the first simulated index of the target object. Specifically, different target objects correspond to different simulated parameter data. For example, when the target object is the traffic flow of a specified road segment, the simulated parameter data may include the length, geometry, number of lanes, lane width, number of intersections, and traffic light timing of the specified road segment. When the target object is the weather of a specified region, the simulated parameter data may include the geographical location, area, topography, and climate of the specified region. When the target object is the population of a specified country or region, the simulated parameter data may include the economic development level, land area, geographical environment, cultural traditions, and population policies of the specified country or region. When the target object is a barrier option, the simulated parameter data may include the price data of the underlying asset of the barrier option on the current day, volatility parameters, and yield parameters (i.e., the risk-free interest rate).
[0096] In this embodiment, the simulated time data may include a specified time period and a specified quantity. Specifically, the specified start and end times at different time scales correspond to the specified time periods at different time scales. For example, at a daily time scale, the specified time period can be the date of the specified end time, in which case the specified time period is calculated from the date of the current day.
[0097] In this embodiment, the simulated comparison data may include obstacle level data and specified threshold data. The obstacle level data may include different values for different target objects, and the specific details are the same as in the embodiments described above, so they will not be repeated here.
[0098] In this embodiment, after the specified time period is divided into a specified number of sub-time periods according to the specified division rules, the time interval of each sub-time period can be equal, and there can be partial overlap between adjacent sub-time periods.
[0099] Please see Figure 5 Assuming the time interval length for the specified period is T, Figure 5 Three rules for dividing a specified time period are shown.
[0100] Taking the target object as a barrier option and the corresponding first simulated indicator as the underlying asset price as an example, the impact of different division rules on the simulation accuracy of the first simulated indicator's value data is explained as follows. Since the time scale corresponding to the barrier option is a daily time scale, the start time of the following sub-time periods is replaced by the start date, and the end time is replaced by the end date.
[0101] The first division rule divides the specified time period into 5 equal parts, with no overlap between the resulting sub-time periods. Each sub-time period has a duration of T / 5, and the start date of each sub-time period is the end date of the previous sub-time period. Since each sub-time period does not include previous sub-time periods, the price distribution trend of the underlying asset within each sub-time period does not include the price distribution trend of the underlying asset within previous sub-time periods. For example, the price distribution trend of the underlying asset within the sub-time period from T / 5 to 2T / 5 does not include the price distribution trend of the underlying asset within the sub-time period from 0 to T / 5.
[0102] Please refer to Formula 3. Assuming the time interval Δt = T / d, where d is a specified quantity, then according to the BSM model, the price of the underlying asset follows a log-normal distribution, and the price fluctuation of the underlying asset follows a normal distribution over each Δt.
[0103] X i ~N(μ) i , iσ 2 ), i∈1,2,3…n Formula 3
[0104] Among them, X i μ represents the normal distribution that the price fluctuation of the underlying asset follows over the sub-time period from 0 to iΔt. i σ represents the mean of the normal distribution, and σ represents the volatility parameter.
[0105] At this point, please refer to Formula 4. The covariance of the underlying asset price has the following diagonal form:
[0106]
[0107] For barrier options, when calculating the simulated price of the underlying asset, the initial price in each sub-period obtained by dividing the specified time period according to the first division rule is based on the value S of the previous sub-period. t-1The expectation is fixed, leading to lower volatility and a lower probability of breaking through the barrier level, which in turn results in lower simulated option prices. Meanwhile, the time intervals for each sub-period obtained according to the first division rule are shorter, and the sampling points are more dense, which can better reflect the changes in the underlying asset price within each sub-period. However, the overall volatility is smaller, making it difficult to reflect the overall changes in the underlying asset price over a specified period.
[0108] The second division rule divides time T into 5 segments, each sub-segment including the previous sub-segment. That is, the start date of each sub-segment is the same as the start date of the specified time segment, and the end dates of each sub-segment are T / 5, 2T / 5, 3T / 5, 4T / 5, and T, respectively. Since each sub-segment contains the previous one, the price distribution trend of the underlying asset within each sub-segment can encompass the price distribution trend of the underlying asset within all previous sub-segments. For example, the price distribution trend of the underlying asset within the sub-segment T / 5 to 2T / 5 can encompass the price distribution trend of the underlying asset within the sub-segment 0 to T / 5.
[0109] For the second partitioning rule, since each X i Inherited from the previous X i-1 Then, a random Brownian motion is superimposed, denoted as Y. i And each Y i Independent of each other and related to X i Independent. Please refer to Equations 5 and 6. When i ≤ j, the covariance is as follows:
[0110] COV(X i X j )=COV(X i X i +Y i+1 +···)=D(X i )=min(i,j)σ 2 Formula 5
[0111]
[0112] Since the starting date of each sub-time period obtained according to the second division rule is the same as the starting date of the specified time period, the price fluctuation of the underlying asset calculated based on the sub-time periods obtained according to the second division rule is closer to the actual fluctuation. The probability of breaking through the barrier level and the final simulated option price data are closer to the actual values. At the same time, each sub-time period obtained according to the second division rule includes the previous sub-time period, and the sampling points are more dispersed. The precision of the changes in the underlying asset price within each sub-time period is lower, but it can better reflect the overall fluctuation of the underlying asset price within the specified time period.
[0113] To address the problems of the two aforementioned division rules, this implementation provides a specified division rule: a specified time period is divided into four sub-time periods with a time interval length of 2T / 5, and the start and end dates of each sub-time period increase by T / 5 sequentially from 0 and 2T / 5. Since there is partial overlap between adjacent sub-time periods, the distribution trend of the underlying asset price within each sub-time period includes a portion of the distribution trend of the underlying asset price within the previous sub-time periods. For example, the distribution trend of the underlying asset price within the sub-time period from T / 5 to 3T / 5 includes the distribution trend of the underlying asset price within the time interval from T / 5 to 2T / 5 within the sub-time period from 0 to 2T / 5. Because there is partial overlap between adjacent sub-time periods obtained according to the specified division rule, the underlying asset price fluctuations calculated based on the sub-time periods obtained according to the specified division rule can more accurately reflect the fluctuations of the underlying asset price in each sub-time period and the overall fluctuation.
[0114] In this embodiment, a specified number of value distribution datasets for the first simulated indicator are generated based on a specified number of sub-time periods and simulation parameter data. For each sub-time period, based on the simulation parameter data and the start and end times of that sub-time period, sample data of the first simulated indicator at a time other than the start time within that sub-time period is calculated. This sample data is then sampled to obtain multiple value data points conforming to the same distribution pattern, along with corresponding probability distribution data. A data pair is formed by the corresponding value data points and their corresponding probability distribution data. Multiple data pairs constitute a first simulated indicator value distribution dataset. Taking the target object as a barrier option and the corresponding first simulated indicator as the underlying asset price as an example, for each sub-time period, based on the simulation parameter data and the start and end times of that sub-time period, simulated price sample data of the underlying asset at a time point other than the start date within that sub-time period is calculated. This simulated price sample data is then sampled to obtain multiple simulated price data points conforming to a log-normal distribution, along with corresponding probability distribution data. A data pair is formed by the corresponding simulated price data points and their corresponding probability distribution data. Multiple data pairs constitute a price distribution simulation dataset.
[0115] In this embodiment, the simulation dataset is determined based on the value distribution dataset of the specified number of first simulation indicators and the simulation comparison data. The simulation dataset can be formed by packaging the value distribution dataset of the specified number of first simulation indicators and the simulation comparison data.
[0116] In some embodiments, the basic computing unit can act as a client to directly receive initial simulation data or simulation datasets input by the user. In some embodiments, the basic computing unit can also act as a server to receive initial simulation data or simulation datasets transmitted by the client or other servers. This specification does not impose specific limitations on the source of the initial simulation data or simulation datasets.
[0117] S220: The simulated dataset is sent to the quantum computing unit for the quantum computing unit to perform a specified number of quantum barrier comparison operations based on the simulated dataset to obtain the value data of the second simulated index of the target object after the specified time period; wherein, each quantum barrier comparison operation is used to compare the value data of the first simulated index within any sub-time period with a specified barrier level; the value data of the second simulated index is used to represent the amount by which the value data of the first simulated index after the specified time period exceeds a specified threshold.
[0118] S230: Generate the value data of the third simulation index of the target object based on the value data of the second simulation index received from the quantum computing unit and the specified calculation rules.
[0119] In this implementation, different target objects can correspond to different third simulation indicators. Specifically, for example, when the target object is the traffic flow of a specified road segment, the third simulation indicator can be congestion warning information for that road segment. When the target object is the weather of a specified region, the third simulation indicator can be high-temperature warning information for that region. When the target object is the population of a specified country or region, the third simulation indicator can be population warning information for that country or region. When the target object is a barrier option, the third simulation indicator is the option price of the barrier option.
[0120] In this embodiment, the specified calculation rule can represent the mapping relationship between the values of the second simulated indicator and the third simulated indicator of the target object. Specifically, for example, when the target object is the traffic flow of a specified road segment, and the corresponding third simulated indicator can be the congestion warning information of the specified road segment, the specified calculation rule can be a congestion level warning rule. That is, when the value of the second simulated indicator is 0, the value of the third simulated indicator indicates that the specified road segment is smooth; when the value of the second simulated indicator falls within a first value range, the value of the third simulated indicator indicates that the specified road segment is moderately congested; when the value of the second simulated indicator falls within a second value range, the value of the third simulated indicator indicates that the specified road segment is very congested. When the target object is the weather of a specified region, and the corresponding third simulation indicator can be a high-temperature warning for that region, the specified calculation rule can be a high-temperature graded warning rule. Specifically, if the second simulation indicator is 0, the value of the third simulation indicator indicates suitable temperature; if the value of the second simulation indicator falls within the third value range, the value of the third simulation indicator indicates a yellow high-temperature warning; if the value of the second simulation indicator falls within the fourth value range, the value of the third simulation indicator indicates an orange high-temperature warning; and if the value of the second simulation indicator falls within the fifth value range, the value of the third simulation indicator indicates a red high-temperature warning. When the target object is the population of a specified country or region, and the corresponding third simulation indicator can be a population warning for that country or region, the specified calculation rule can be a population decrease warning rule. Specifically, if the value of the second simulation indicator is greater than 0, it indicates positive population growth in the specified country or region, and the value of the third simulation indicator indicates no population warning is issued; if the value of the second simulation indicator is 0, it indicates negative population growth in the specified country or region, and the value of the third simulation indicator indicates a population warning is issued. When the target asset is a barrier option and the corresponding third simulation indicator is the option price of the barrier option, the specified calculation rule can be a discount formula. Please refer to Formula 7.
[0121] C t =PV[E(max(0,S t -K))]=e -r(T-t) [E(max(0,S t Formula 7
[0122] Among them, C t This represents the price data for barrier options, PV represents the discount factor, and E(max(0,S)) represents the price of the barrier option. t -K)) represents the simulated payoff data for the barrier option, r represents the risk-free interest rate, T represents the option expiration date, and t represents the current day.
[0123] In the embodiments described in this specification, the basic computing unit acquires a simulation dataset and sends it to the quantum computing unit to perform an option expected payoff simulation process. Then, based on the simulated payoff data of the barrier option sent by the quantum computing unit, it performs an option price calculation process to obtain the price data of the barrier option. This shortens the computation time for simulating the expected payoff of the barrier option using the Monte Carlo simulation method and improves the overall computational efficiency of the quantum computing system used to perform the barrier option pricing process.
[0124] Please see Figure 6 One embodiment of this specification provides a simulated data transmission device, which can be applied to a quantum computing unit. The data transmission device may include: a receiving module for receiving a simulated dataset sent by a basic computing unit; wherein the simulated dataset is used to simulate the fluctuation of a first simulated index of a target object within a specified time period; the specified time period includes a specified number of sub-time periods; an execution module for performing a specified number of quantum barrier comparison operations based on the simulated dataset to obtain the value data of a second simulated index of the target object after the specified time period; wherein each quantum barrier comparison operation is used to compare the value data of the first simulated index within any sub-time period with a specified barrier level; the value data of the second simulated index is used to represent the amount by which the value data of the first simulated index after the specified time period exceeds a specified threshold; and a sending module for sending the value data of the second simulated index to the basic computing unit.
[0125] Please see Figure 7 One embodiment of this specification provides a simulation data generation device, which can be applied to a basic computing unit. The data generation device may include: an acquisition module for acquiring a simulation dataset; wherein the simulation dataset is used to simulate the fluctuation of a first simulation index of a target object within a specified time period; the specified time period includes a specified number of sub-time periods; a sending module for sending the simulation dataset to a quantum computing unit, so that the quantum computing unit can perform a specified number of quantum barrier comparison operations based on the simulation dataset to obtain the value data of a second simulation index of the target object after the specified time period; wherein each quantum barrier comparison operation is used to compare the value data of the first simulation index within any sub-time period with a specified barrier level; the value data of the second simulation index is used to represent the amount by which the value data of the first simulation index after the specified time period exceeds a specified threshold; and a generation module for generating the value data of a third simulation index of the target object based on the value data of the second simulation index received from the quantum computing unit and a specified calculation rule.
[0126] The specific functions and effects of the analog data transmitting device and the analog data generating device can be explained by referring to other embodiments in this specification, and will not be repeated here. Each module in the analog data transmitting device and the analog data generating device can be implemented entirely or partially through software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor in the computer device in hardware form, or it can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0127] Please see Figure 8 This specification also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor, when executing the computer program, implements the analog data transmission method and the analog data generation method of any of the above embodiments. The computer device may be a classical computer. The computer device may also be a quantum computer.
[0128] This specification also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, causes the computer to perform the analog data transmission method and the analog data generation method in any of the above embodiments.
[0129] This specification also provides a computer program product containing instructions that, when executed by a computer, cause the computer to perform the analog data transmission method and the analog data generation method in any of the above embodiments.
[0130] It is understood that the specific examples in this specification are only intended to help those skilled in the art better understand the implementation methods described herein, and are not intended to limit the scope of the invention.
[0131] It is understood that in the various embodiments of this specification, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not limit the implementation process of the embodiments of this specification in any way.
[0132] It is understood that the various implementation methods described in this specification can be implemented individually or in combination, and the implementation methods in this specification are not limited in this respect.
[0133] Unless otherwise stated, all technical and scientific terms used in the embodiments of this specification have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of this specification. The term "and / or" as used in this specification includes any and all combinations of one or more of the associated listed items. The singular forms "a," "the," and "the" as used in the embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0134] It is understood that the processor in the embodiments of this specification can be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this specification. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this specification can be directly implemented by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory; the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above methods.
[0135] It is understood that the memory in the embodiments of this specification may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may be random access memory (RAM). It should be noted that the memory in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0136] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this specification.
[0137] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the aforementioned method implementations, and will not be repeated here.
[0138] In the several embodiments provided in this specification, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0139] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0140] In addition, the functional units in the various embodiments of this specification can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0141] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of this specification, in essence, or the parts that contribute to the prior art, or parts of the technical solutions, can be embodied in the form of software products. These computer software products are stored in a storage medium and include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this specification. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0142] The above description is merely a specific embodiment of this specification, but the scope of protection of this invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this specification should be included within the scope of protection of this specification. Therefore, the scope of protection of this invention should be determined by the scope of the claims.
Claims
1. A quantum computing system, characterized in that, The quantum computing system includes basic computing units and quantum computing units; The basic computing unit is used to acquire a simulation dataset; wherein, the simulation dataset is used to simulate the fluctuation of the value data of a first simulated indicator of the target object within a specified time period; the specified time period includes a specified number of sub-time periods; the simulation dataset includes a specified number of value distribution datasets of the first simulated indicators and simulated comparison data; the simulated comparison data includes obstacle level data and specified threshold data; wherein, each value distribution dataset of the first simulated indicator includes multiple sets of data pairs representing the probability distribution of the value of the first simulated indicator of the target object within any sub-time period; the simulation dataset is sent to the quantum computing unit; and the value data of the third simulated indicator of the target object is generated according to the value data of the second simulated indicator received from the quantum computing unit and specified calculation rules; The quantum computing unit is used to receive a simulated dataset sent by the basic computing unit; and to construct a barrier comparison circuit based on the simulated dataset; wherein the barrier comparison circuit includes a specified number of identical quantum barrier comparison units; each quantum barrier comparison unit is used to perform one quantum barrier comparison operation; each quantum barrier comparison unit includes a variable bit register, a barrier bit, and a quantum barrier comparator; wherein constructing the barrier comparison circuit based on the simulated dataset includes: determining the number of variable bits in each variable bit register based on the number of data pairs in the value distribution dataset of each first simulated index; determining the parameters of each quantum barrier comparator based on the barrier level data; and establishing the specified number of identical quantum barriers. The comparison unit establishes a control relationship between the barrier bit and the controlled quantum logic gate in each quantum barrier comparison unit; and establishes an interaction relationship between the controlled quantum logic gate and the auxiliary bit to form the barrier comparison circuit; wherein the controlled quantum logic gate is a controlled OR gate or a controlled AND gate; the barrier comparison circuit is run to perform a specified number of quantum barrier comparison operations to obtain the value data of the first simulated index of the target object and the barrier comparison result of the specified barrier level, including: preparing multiple sets of data pairs included in the value distribution dataset of each first simulated index onto the variable bits in each variable bit register, so as to characterize the target object through the state of the variable bits in each variable bit register. The probability distribution of the value of the first simulated index within any sub-time period; a specified number of quantum barrier comparison operations are performed using a specified number of quantum barrier comparison units to obtain a specified number of barrier comparison sub-results; wherein, each quantum barrier comparison operation is used to compare the value data of the first simulated index of the target object within any sub-time period with a specified barrier level; wherein, each barrier comparison sub-result represents the comparison result of the value data of the first simulated index of the target object within each sub-time period with the specified barrier level; a specified number of barrier bits are used to control the controlled quantum logic gate to act on the auxiliary bit, so as to map the specified number of barrier comparison sub-results onto the auxiliary bit to obtain the barrier comparison result; A value generation circuit for a second simulated index is constructed based on the simulated dataset and the obstacle comparison results. The value of the second simulated index represents the excess of the value of the first simulated index after the specified time period relative to a specified threshold. The value generation circuit for the second simulated index includes a virtual control RY gate for adjusting the mapping result of a specified quantum state mapped according to a specified mapping rule to 0. The value range of the second simulated index includes 0 and the difference between the value of the first simulated index after the specified time period and the specified threshold. When the value of the first simulated index after the specified time period is not greater than the specified threshold, the second simulated index takes the value of 0.If the value of the first simulated index after the specified time period is greater than the specified threshold, the second simulated index is the difference between the value of the first simulated index after the specified time period and the specified threshold. The value generation circuit of the second simulated index further includes a comparison bit, a result bit, a quantum threshold comparator, and a real-controlled RY gate. Running the value generation circuit of the second simulated index to obtain the value of the second simulated index of the target object after the specified time period includes: using the variable bit in the specified variable bit register and the auxiliary bit to control the quantum threshold comparator to act on the comparison bit, to obtain the value of the first simulated index of the target object within the specified sub-time period and the value of the result bit. The comparison results are as follows: The sub-time period corresponding to the specified variable bit register has the same termination time as the specified time period; the variable bits in the specified variable bit register, the auxiliary bits, and the comparison bits are used to control the real-controlled RY gate to act on the result bit, so that the result bit is in the specified quantum state; the variable bits in the specified variable bit register, the auxiliary bits, and the comparison bits are used to control the virtual-controlled RY gate to act on the result bit, so that the mapping result of the specified quantum state based on the specified mapping rule is 0; the amplitude of the result bit in the specified quantum state is measured to obtain the value data of the second simulation index; the value data of the second simulation index is sent to the basic computing unit.
2. A method for simulating data transmission, characterized in that, Applied to quantum computing units, the method includes: The system receives a simulation dataset sent by a basic computing unit. The simulation dataset is used to simulate the fluctuation of a first simulated indicator value of a target object within a specified time period. The specified time period includes a specified number of sub-time periods. The simulation dataset includes a specified number of first simulated indicator value distribution datasets and simulated comparison data. The simulated comparison data includes obstacle level data and specified threshold data. Each first simulated indicator value distribution dataset includes multiple data pairs representing the probability distribution of the first simulated indicator value of the target object within any sub-time period. A barrier comparison circuit is constructed based on the simulated dataset; wherein the barrier comparison circuit includes a specified number of identical quantum barrier comparison units; each quantum barrier comparison unit is used to perform one quantum barrier comparison operation; each quantum barrier comparison unit includes a variable bit register, a barrier bit, and a quantum barrier comparator; wherein constructing the barrier comparison circuit based on the simulated dataset includes: determining the number of variable bits in each variable bit register based on the number of data pairs in the value distribution dataset of each first simulated index; determining the parameters of each quantum barrier comparator based on the barrier level data; establishing the specified number of identical quantum barrier comparison units; establishing the control relationship between the barrier bit in each quantum barrier comparison unit and the controlled quantum logic gate; and establishing the interaction relationship between the controlled quantum logic gate and the auxiliary bit to form the barrier comparison circuit; wherein the controlled quantum logic gate is a controlled OR gate or a controlled AND gate; Running the barrier comparison circuit to perform a specified number of quantum barrier comparison operations to obtain the value data of the first simulated index of the target object and the barrier comparison result of a specified barrier level includes: preparing multiple data pairs included in the value distribution dataset of each first simulated index onto the variable bits in each variable bit register, so as to characterize the probability distribution of the value of the first simulated index of the target object in any sub-time period through the state of the variable bits in each variable bit register; performing a specified number of quantum barrier comparison operations using a specified number of quantum barrier comparison units to obtain a specified number of barrier comparison sub-results; wherein, each quantum barrier comparison operation is used to compare the value data of the first simulated index in any sub-time period with the specified barrier level; wherein, each barrier comparison sub-result represents the comparison result of the value data of the first simulated index of the target object in each sub-time period with the specified barrier level; and using a specified number of barrier bits to control the controlled quantum logic gate to act on the auxiliary bit, so as to map the specified number of barrier comparison sub-results onto the auxiliary bit to obtain the barrier comparison result; A data generation circuit for a second simulated index is constructed based on the simulated dataset and the obstacle comparison results. The value of the second simulated index represents the excess of the value of the first simulated index after the specified time period relative to a specified threshold. The data generation circuit for the second simulated index includes a virtual-controlled RY gate for adjusting the mapping result of a specified quantum state mapped according to a specified mapping rule to 0. The value range of the second simulated index includes 0 and the difference between the value of the first simulated index after the specified time period and the specified threshold. Specifically, if the value of the first simulated index after the specified time period is not greater than the specified threshold, the second simulated index takes the value of 0; if the value of the first simulated index after the specified time period is greater than the specified threshold, the second simulated index takes the difference between the value of the first simulated index after the specified time period and the specified threshold. The data generation circuit for the second simulated index also includes a comparison bit, a result bit, a quantum threshold comparator, and a real-controlled RY gate. Running the second simulated index value generation circuit to obtain the value data of the second simulated index of the target object after the specified time period includes: using the variable bits in the specified variable bit register and the auxiliary bits to control the quantum threshold comparator to act on the comparison bit, obtaining the comparison result of the value of the first simulated index of the target object in the specified sub-time period and the specified threshold; wherein, the sub-time period corresponding to the specified variable bit register has the same termination time as the specified time period; using the variable bits in the specified variable bit register, the auxiliary bits and the comparison bits to control the real-controlled RY gate to act on the result bit, so that the result bit is in the specified quantum state; using the variable bits in the specified variable bit register, the auxiliary bits and the comparison bits to control the virtual-controlled RY gate to act on the result bit, so that the mapping result of the specified quantum state after mapping according to the specified mapping rule is 0; measuring the amplitude of the result bit in the specified quantum state to obtain the value data of the second simulated index; The value data of the second simulation index is sent to the basic computing unit.
3. A method for generating simulated data, characterized in that, Applied to basic computing units; the method includes: Obtain a simulation dataset; wherein the simulation dataset is used to simulate the fluctuation of the value data of a first simulated indicator of the target object within a specified time period; the specified time period includes a specified number of sub-time periods; the simulation dataset includes a specified number of value distribution datasets of the first simulated indicators and simulated comparison data; the simulated comparison data includes obstacle level data and specified threshold data; wherein each value distribution dataset of the first simulated indicator includes multiple sets of data pairs representing the probability distribution of the value of the first simulated indicator of the target object within any sub-time period; The simulated dataset is sent to the quantum computing unit for the quantum computing unit to construct a barrier comparison circuit based on the simulated dataset; wherein, the barrier comparison circuit includes a specified number of identical quantum barrier comparison units; each quantum barrier comparison unit is used to perform one quantum barrier comparison operation; each quantum barrier comparison unit includes a variable bit register, a barrier bit, and a quantum barrier comparator; wherein, constructing the barrier comparison circuit based on the simulated dataset includes: determining the number of variable bits in each variable bit register based on the number of data pairs in the value distribution dataset of each first simulated index; determining the parameters of each quantum barrier comparator based on the barrier level data; and establishing the specified number of identical quantum... The system comprises: a barrier comparison unit; establishing a control relationship between the barrier bit and the controlled quantum logic gate in each quantum barrier comparison unit; and establishing an interaction relationship between the controlled quantum logic gate and the auxiliary bit to form the barrier comparison circuit; wherein the controlled quantum logic gate is a controlled OR gate or a controlled AND gate; running the barrier comparison circuit to perform a specified number of quantum barrier comparison operations to obtain the value data of the first simulated index of the target object and the barrier comparison result of a specified barrier level, including: preparing multiple sets of data pairs included in the value distribution dataset of each first simulated index onto the variable bits in each variable bit register, so as to characterize the target object through the state of the variable bits in each variable bit register. The probability distribution of the value of the first simulated index of the object within any sub-time period; performing a specified number of quantum barrier comparison operations using a specified number of quantum barrier comparison units to obtain a specified number of barrier comparison sub-results; wherein, each quantum barrier comparison operation is used to compare the value data of the first simulated index within any sub-time period with a specified barrier level; wherein, each barrier comparison sub-result represents the comparison result of the value data of the first simulated index of the target object within each sub-time period with the specified barrier level; using a specified number of barrier bits to control the controlled quantum logic gate to act on the auxiliary bit, so as to map the specified number of barrier comparison sub-results onto the auxiliary bit to obtain the barrier comparison result; A value generation circuit for a second simulated index is constructed based on the simulated dataset and the obstacle comparison results. The value of the second simulated index represents the excess of the value of the first simulated index after the specified time period relative to a specified threshold. The value generation circuit for the second simulated index includes a virtual control RY gate for adjusting the mapping result of a specified quantum state mapped according to a specified mapping rule to 0. The value range of the second simulated index includes 0 and the difference between the value of the first simulated index after the specified time period and the specified threshold. When the value of the first simulated index after the specified time period is not greater than the specified threshold, the second simulated index takes the value of 0.If the value of the first simulated index after the specified time period is greater than the specified threshold, the second simulated index is the difference between the value of the first simulated index after the specified time period and the specified threshold. The value generation circuit of the second simulated index further includes a comparison bit, a result bit, a quantum threshold comparator, and a real-controlled RY gate. Running the value generation circuit of the second simulated index to obtain the value of the second simulated index of the target object after the specified time period includes: using the variable bit in the specified variable bit register and the auxiliary bit to control the quantum threshold comparator to act on the comparison bit, to obtain the value of the first simulated index of the target object after the specified time period. The comparison result of the value within the time period with a specified threshold; wherein, the sub-time period corresponding to the specified variable bit register has the same termination time as the specified time period; using the variable bits in the specified variable bit register, the auxiliary bits, and the comparison bits to control the real-controlled RY gate to act on the result bit, so that the result bit is in a specified quantum state; using the variable bits in the specified variable bit register, the auxiliary bits, and the comparison bits to control the virtual-controlled RY gate to act on the result bit, so that the mapping result of the specified quantum state after mapping according to the specified mapping rule is 0; measuring the amplitude of the result bit in the specified quantum state to obtain the value data of the second simulation index; The third simulation index of the target object is generated based on the value data of the second simulation index received from the quantum computing unit and the specified calculation rules.
4. The method according to claim 3, characterized in that, The steps to obtain a simulated dataset include: Receive initial simulation data; wherein, the initial simulation data includes simulation parameter data, simulation comparison data, and simulation time data; the simulation parameter data is used to generate the value data of the first simulation index of the target object; the simulation time data includes a specified time period and a specified quantity; The specified time period is divided into a specified number of sub-time periods according to the specified division rules; wherein the time interval of each sub-time period is equal, and there is partial overlap between adjacent sub-time periods; Generate a specified number of value distribution datasets for first simulated indicators based on the specified number of sub-time periods and the simulated parameter data; wherein, each value distribution dataset for the first simulated indicator includes multiple sets of data pairs representing the probability distribution of the value of the first simulated indicator of the target object within any sub-time period; The simulation dataset is determined based on the specified number of value distribution datasets of the first simulation index and the simulation comparison data.
5. An analog data transmission device, characterized in that, The device, applied to a quantum computing unit, includes: A receiving module is used to receive a simulated dataset sent by a basic computing unit; wherein, the simulated dataset is used to simulate the fluctuation of the value data of a first simulated indicator of a target object within a specified time period; the specified time period includes a specified number of sub-time periods; the simulated dataset includes a specified number of value distribution datasets of the first simulated indicators and simulated comparison data; the simulated comparison data includes obstacle level data and specified threshold data; wherein, each value distribution dataset of the first simulated indicator includes multiple sets of data pairs representing the probability distribution of the value of the first simulated indicator of the target object within any sub-time period; An execution module is configured to construct an obstacle comparison circuit based on the simulated dataset; wherein the obstacle comparison circuit includes a specified number of identical quantum obstacle comparison units; each quantum obstacle comparison unit is configured to perform one quantum obstacle comparison operation; each quantum obstacle comparison unit includes a variable bit register, obstacle bits, and a quantum obstacle comparator; wherein constructing the obstacle comparison circuit based on the simulated dataset includes: determining the number of variable bits in each variable bit register based on the number of data pairs in the value distribution dataset of each first simulated index; determining the parameters of each quantum obstacle comparator based on the obstacle level data; establishing the specified number of identical quantum obstacle comparison units; establishing each quantum obstacle... The control relationship between the barrier bit and the controlled quantum logic gate in the barrier comparison unit; and the interaction relationship between the controlled quantum logic gate and the auxiliary bit to form the barrier comparison circuit; wherein the controlled quantum logic gate is a controlled OR gate or a controlled AND gate; running the barrier comparison circuit to perform a specified number of quantum barrier comparison operations to obtain the value data of the first simulated index of the target object and the barrier comparison result of a specified barrier level, including: preparing multiple sets of data pairs included in the value distribution dataset of each first simulated index onto the variable bits in each variable bit register, so as to characterize the value of the first simulated index of the target object through the state of the variable bits in each variable bit register. The probability distribution of the value within any sub-time period; performing a specified number of quantum barrier comparison operations using a specified number of quantum barrier comparison units to obtain a specified number of barrier comparison sub-results; wherein, each quantum barrier comparison operation is used to compare the value data of the first simulated index within any sub-time period with a specified barrier level; wherein, each barrier comparison sub-result represents the comparison result of the value data of the first simulated index of the target object within each sub-time period with the specified barrier level; using a specified number of barrier bits to control the controlled quantum logic gate to act on the auxiliary bit, so as to map the specified number of barrier comparison sub-results onto the auxiliary bit to obtain the barrier comparison result; according to the simulation The dataset and the obstacle comparison results construct a data generation circuit for the value of the second simulated index; the value of the second simulated index is used to represent the excess of the value of the first simulated index after the specified time period relative to a specified threshold; wherein, the data generation circuit for the value of the second simulated index includes a virtual control RY gate for adjusting the mapping result of the specified quantum state mapped according to a specified mapping rule to 0; the value range of the second simulated index includes 0 and the difference between the value of the first simulated index after the specified time period and the specified threshold; wherein, if the value of the first simulated index after the specified time period is not greater than the specified threshold, the second simulated index takes the value of 0;If the value of the first simulated index after the specified time period is greater than the specified threshold, the second simulated index is the difference between the value of the first simulated index after the specified time period and the specified threshold. The value generation circuit of the second simulated index further includes a comparison bit, a result bit, a quantum threshold comparator, and a real-controlled RY gate. Running the value generation circuit of the second simulated index to obtain the value of the second simulated index of the target object after the specified time period includes: using the variable bit in the specified variable bit register and the auxiliary bit to control the quantum threshold comparator to act on the comparison bit, to obtain the value of the first simulated index of the target object after the specified time period. The comparison result of the value within the time period with a specified threshold; wherein, the sub-time period corresponding to the specified variable bit register has the same termination time as the specified time period; using the variable bits in the specified variable bit register, the auxiliary bits, and the comparison bits to control the real-controlled RY gate to act on the result bit, so that the result bit is in a specified quantum state; using the variable bits in the specified variable bit register, the auxiliary bits, and the comparison bits to control the virtual-controlled RY gate to act on the result bit, so that the mapping result of the specified quantum state after mapping according to the specified mapping rule is 0; measuring the amplitude of the result bit in the specified quantum state to obtain the value data of the second simulation index; The sending module is used to send the value data of the second simulation index to the basic computing unit.
6. A simulation data generation device, characterized in that, Applied to a basic computing unit; the device includes: An acquisition module is used to acquire a simulated dataset; wherein the simulated dataset is used to simulate the fluctuation of the value data of a first simulated indicator of the target object within a specified time period; the specified time period includes a specified number of sub-time periods; the simulated dataset includes a specified number of value distribution datasets of the first simulated indicators and simulated comparison data; the simulated comparison data includes obstacle level data and specified threshold data; wherein each value distribution dataset of the first simulated indicator includes multiple sets of data pairs representing the probability distribution of the value of the first simulated indicator of the target object within any sub-time period; A sending module is configured to send the simulated dataset to a quantum computing unit, so that the quantum computing unit can construct an obstacle comparison circuit based on the simulated dataset; wherein, the obstacle comparison circuit includes a specified number of identical quantum obstacle comparison units; each quantum obstacle comparison unit is used to perform one quantum obstacle comparison operation; each quantum obstacle comparison unit includes a variable bit register, obstacle bits, and a quantum obstacle comparator; wherein, constructing the obstacle comparison circuit based on the simulated dataset includes: determining the number of variable bits in each variable bit register based on the number of data pairs in the value distribution dataset of each first simulated index; determining the parameters of each quantum obstacle comparator based on the obstacle level data; and establishing the specified number of... The same quantum barrier comparison unit is used; a control relationship is established between the barrier bit and the controlled quantum logic gate in each quantum barrier comparison unit; and an interaction relationship is established between the controlled quantum logic gate and the auxiliary bit to form the barrier comparison circuit; wherein the controlled quantum logic gate is a controlled OR gate or a controlled AND gate; the barrier comparison circuit is run to perform a specified number of quantum barrier comparison operations to obtain the value data of the first simulated index of the target object and the barrier comparison result of the specified barrier level, including: preparing multiple sets of data pairs included in the value distribution dataset of each first simulated index onto the variable bits in each variable bit register, so as to characterize the target object through the state of the variable bits in each variable bit register. The probability distribution of the value of the first simulated index of the target object within any sub-time period is determined. A specified number of quantum barrier comparison operations are performed using a specified number of quantum barrier comparison units to obtain a specified number of barrier comparison sub-results. Each quantum barrier comparison operation compares the value of the first simulated index within any sub-time period with a specified barrier level. Each barrier comparison sub-result represents the comparison result of the value of the first simulated index of the target object within each sub-time period with the specified barrier level. A specified number of barrier bits are used to control the controlled quantum logic gate to act on auxiliary bits, thereby mapping the specified number of barrier comparison sub-results onto the auxiliary bits to obtain the barrier comparison result. A second simulation index value generation circuit is constructed based on the simulated dataset and the obstacle comparison results. The value of the second simulation index is used to represent the excess of the value of the first simulation index after the specified time period relative to a specified threshold. The value generation circuit of the second simulation index includes a virtual control RY gate for adjusting the mapping result of the specified quantum state mapped according to the specified mapping rule to 0. The value range of the second simulation index includes 0 and the difference between the value of the first simulation index after the specified time period and the specified threshold. The second simulation index is set to 0 when the value of the first simulation index after the specified time period is not greater than the specified threshold.If the value of the first simulated index after the specified time period is greater than the specified threshold, the second simulated index is the difference between the value of the first simulated index after the specified time period and the specified threshold. The value generation circuit of the second simulated index further includes a comparison bit, a result bit, a quantum threshold comparator, and a real-controlled RY gate. Running the value generation circuit of the second simulated index to obtain the value of the second simulated index of the target object after the specified time period includes: using the variable bit in the specified variable bit register and the auxiliary bit to control the quantum threshold comparator to act on the comparison bit, to obtain the value of the first simulated index of the target object after the specified time period. The comparison result of the value within the time period with a specified threshold; wherein, the sub-time period corresponding to the specified variable bit register has the same termination time as the specified time period; using the variable bits in the specified variable bit register, the auxiliary bits, and the comparison bits to control the real-controlled RY gate to act on the result bit, so that the result bit is in a specified quantum state; using the variable bits in the specified variable bit register, the auxiliary bits, and the comparison bits to control the virtual-controlled RY gate to act on the result bit, so that the mapping result of the specified quantum state after mapping according to the specified mapping rule is 0; measuring the amplitude of the result bit in the specified quantum state to obtain the value data of the second simulation index; The generation module is used to generate the value data of the third simulation index of the target object based on the value data of the second simulation index received from the quantum computing unit and the specified calculation rules.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 2 to 4.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 2 to 4.
Citation Information
Patent Citations
Simulation result data comparison display method and related device
CN116777540A
Data volatility change trend display method and device, equipment and storage medium
CN116841676A
