Quantum computing systems, data transmission methods, data generation methods, and related devices
Quantum simulation operations using quantum computing systems solve the problem of low efficiency of classical computers in large-scale data simulation calculations, enabling more efficient generation of simulation results and supporting timely early warning of emergency situations.
Patent Information
- Application Number
- CN202311445155.1
- 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
Classical computers are inefficient at processing large amounts of data in simulations, resulting in insufficient simulation efficiency of relevant indicators of the research object and affecting the timeliness of decision-making.
A quantum computing system is used to acquire a dataset through a basic computing unit and send it to a quantum computing unit for quantum simulation operations to generate the first simulation result data. The basic computing unit then generates the second simulation result data according to the rules.
The efficient computation of quantum computing units shortens the time for generating simulation results data, improves simulation efficiency, and supports timely emergency alerts or warnings.
Smart Images

Figure CN117494827B_ABST
Abstract
Description
Technical Field
[0001] The embodiments described in this specification relate to the field of quantum computing, and in particular to a quantum computing system, a data transmission method, a data generation method, and related apparatus. Background Technology
[0002] To analyze and predict potential future conditions of research subjects, such as future weather conditions and traffic flow, researchers typically simulate the values of relevant indicators of the research subjects over a future period. This simulation data allows them to understand the future distribution of these indicator values, enabling further analysis and prediction. For example, temperature can be used as a weather indicator. By simulating temperature values, researchers can analyze and predict possible weather conditions over a future period, providing timely alerts or warnings for potential emergencies, such as high-temperature warnings. Currently, classical computers are primarily used to simulate relevant indicators of research subjects using mathematical models and simulation algorithms (such as Monte Carlo simulations). However, when the amount of data used for simulation is large, classical computers suffer from limitations in computational performance, resulting in longer calculation times and lower efficiency, which to some extent affects the efficiency of simulating relevant indicators of research subjects. Summary of the Invention
[0003] In view of this, various embodiments of this specification aim to provide a quantum computing system, a data transmission method, a data generation method, and related apparatus to improve the efficiency of simulating relevant indicators of a research object.
[0004] One embodiment of this specification provides a quantum computing system, which includes a basic computing unit and a quantum computing unit. The basic computing unit is used to acquire multiple datasets. The multiple datasets are used to simulate the change process of a specified indicator of a specified object within a specified time period. The specified time period includes multiple specified sub-time periods, each corresponding one-to-one with one of the multiple datasets. Each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value. Each dataset represents the probability distribution of the specified indicator within the corresponding specified sub-time period. The multiple datasets are sent to the quantum computing unit. The system receives a first quantum simulation result obtained by running the specified quantum simulation operation. The simulation results data; based on the first simulation results data, a second simulation results data for the specified object is generated according to a specified calculation rule; the quantum computing unit is used to receive multiple datasets sent by the basic computing unit; for the multiple datasets, a specified quantum simulation operation process is executed; wherein, the specified quantum simulation operation process is used to generate first simulation results data for the specified index, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average value of the specified index within the specified time period; wherein, the first simulation results data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold; the first simulation results data obtained by running the specified quantum simulation operation process is sent to the basic computing unit.
[0005] One embodiment of this specification provides a simulated data transmission method applied to a quantum computing unit. The method includes: receiving multiple datasets transmitted by a basic computing unit; the multiple datasets being used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein the specified time period includes multiple specified sub-time periods, each of which corresponds one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period; and executing a specified quantum simulation for the multiple datasets. The simulation process includes a quantum simulation operation process; wherein the specified quantum simulation operation process is used to generate first simulation result data for the specified index, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average value of the specified index within the specified time period; wherein the first simulation result data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold; the first simulation result data obtained by running the specified quantum simulation operation process is sent to the basic computing unit, so that the basic computing unit can generate second simulation result data for the specified object based on the first simulation result data and according to specified calculation rules.
[0006] One embodiment of this specification provides a method for generating simulated data, applied to a basic computing unit. The method includes: acquiring multiple datasets; the multiple datasets being used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein the specified time period includes multiple specified sub-time periods, and the multiple specified sub-time periods correspond one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period; sending the multiple datasets to a quantum computing unit for the quantum computing unit to simulate the change process of the specified indicator within the specified sub-time period. Multiple datasets are used to execute a specified quantum simulation operation process; wherein the specified quantum simulation operation process is used to generate first simulation result data for the specified index, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average value of the specified index within the specified time period; wherein the first simulation result data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold; the first simulation result data obtained by running the specified quantum simulation operation process is received from the quantum computing unit; based on the first simulation result data, a second simulation result data for the specified object is generated according to specified calculation rules.
[0007] One embodiment of this specification provides a simulation data transmission device, the device comprising: a receiving module for receiving multiple datasets transmitted by a basic computing unit; the multiple datasets being used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein the specified time period includes multiple specified sub-time periods, each of the multiple specified sub-time periods corresponding one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period; and an execution module for performing a specified quantum simulation on the multiple datasets. The computation process includes a quantum simulation computation process for generating first simulation result data for the specified index, and the specified quantum simulation computation process includes a quantum weighted summation computation process for calculating the average value of the specified index within the specified time period; wherein the first simulation result data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold; and a sending module for sending the first simulation result data obtained by running the specified quantum simulation computation process to a basic computing unit, so that the basic computing unit can generate second simulation result data for the specified object based on the first simulation result data and according to specified computation rules.
[0008] One embodiment of this specification provides a simulation data generation apparatus, the apparatus comprising: an acquisition module for acquiring multiple datasets; the multiple datasets being used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein the specified time period includes multiple specified sub-time periods, each of the multiple specified sub-time periods corresponding one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period; and a transmission module for transmitting the multiple datasets to a quantum computing unit for the quantum computing unit to process the multiple datasets. The system executes a specified quantum simulation operation process; wherein the specified quantum simulation operation process is used to generate first simulation result data for the specified index, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average value of the specified index within the specified time period; wherein the first simulation result data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold; a receiving module is used to receive the first simulation result data obtained by running the specified quantum simulation operation process sent by the quantum computing unit; and a generating module is used to generate second simulation result data for the specified object based on the first simulation result data and according to specified calculation rules.
[0009] One embodiment of this specification provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the analog data transmission method or analog data generation method described in the above embodiment.
[0010] One embodiment of this specification provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implements the analog data transmission method or analog data generation method described in the above embodiments.
[0011] The various implementation methods provided in this specification involve acquiring multiple datasets from a basic computing unit to simulate the changes of a specified indicator of a specified object over a specified time period. These datasets are then sent to a quantum computing unit, which performs a specified quantum simulation operation on each dataset. The resulting first simulation result data, representing the excess of the average value of the specified indicator over the specified time period relative to a specified threshold, is sent back to the basic computing unit. Based on the received first simulation result data, the basic computing unit generates second simulation result data for the specified object according to specified rules. By having the computationally powerful quantum computing unit perform the computationally intensive first simulation result data generation process, and the basic computing unit performs the less computationally intensive second simulation result data generation process, the overall time required to generate the second simulation result data can be shortened, thus improving the efficiency of the quantum computing system in simulating relevant indicators of the research object. Attached Figure Description
[0012] Figure 1 A schematic diagram of a quantum computing system provided for embodiments of this specification.
[0013] Figure 2 A schematic diagram of a simulated data transmission method provided for the embodiments of this specification.
[0014] Figure 3 A schematic diagram of a quantum weighted summation circuit provided for the implementation of this specification.
[0015] Figure 4 A schematic diagram of a quantum weighted summation circuit provided for the implementation of this specification.
[0016] Figure 5 A schematic diagram illustrating the simulation data generation method provided in the embodiments of this specification.
[0017] Figure 6 A schematic diagram illustrating the time slicing method provided for the implementation of this specification.
[0018] Figure 7 A schematic diagram of the analog data transmission device provided for the embodiments of this specification.
[0019] Figure 8 A schematic diagram of the simulation data generation apparatus provided for the embodiments of this specification.
[0020] Figure 9 A schematic diagram of a computer device provided for embodiments of this specification. Detailed Implementation
[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0022] In the description of the embodiments of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0023] In related technologies, to analyze and predict the potential future conditions of research subjects, researchers can use computers to simulate the values of relevant indicators of the research subjects over a future time period. Research subjects can be weather conditions, traffic conditions, and relevant indicators can be temperature, air pressure, wind speed, or vehicle and pedestrian traffic. Specifically, the simulation process for a particular indicator typically involves first generating multiple random paths based on stochastic models to simulate the indicator's changes over a certain period. Then, the average value of the simulated indicator over that period is used to determine the expected state of the research subject. In the event of potential emergencies, this data can provide feedback or warnings to researchers, helping them make timely decisions.
[0024] However, to make the simulated changes in indicators over time more closely resemble reality, it is usually necessary to sample a large number of values from the established stochastic process model to improve simulation accuracy and make the generated stochastic paths closer to the model's theoretical values. For example, in simulating the changes in temperature indicators over time to provide weather warnings and alerts, the average temperature value over a period of time depends on the values at multiple time points within that period. During the simulation, a large amount of simulated temperature indicator data needs to be generated for each time point to represent the temperature distribution at that current time point, thus simulating the temperature change over time. This results in a large computational load when calculating a large amount of simulated indicator data, requiring significant computational resources. Classical computers, limited by their computing power, require a long computation time to complete such tasks, resulting in low computational efficiency. This reduces the overall efficiency of simulating relevant indicators of the research object to some extent, thus affecting the timeliness of researchers' analysis and decision-making based on option pricing simulation results.
[0025] Therefore, it is necessary to provide a quantum computing system, including a basic computing unit and a quantum computing unit. This system can acquire multiple datasets from the basic computing unit to simulate the changes of a specified indicator of a given object over a specified time period. These datasets are then sent to the quantum computing unit, which performs a specified quantum simulation operation on each dataset. The resulting first simulation result data, representing the excess of the average value of the specified indicator over the specified time period relative to a specified threshold, is sent to the basic computing unit. Based on the received first simulation result data, the basic computing unit generates second simulation result data for the given object according to specified rules. By having the computationally powerful quantum computing unit perform the computationally intensive first simulation result data generation, and the basic computing unit performs the less computationally intensive second simulation result data generation, the overall time required to generate the second simulation result data can be shortened. This improves the efficiency of the quantum computing system in simulating relevant indicators of the research object, enabling the generated second simulation data to provide timely alerts or warnings about potential future emergencies and helping researchers make more efficient decisions.
[0026] Please see Figure 1One embodiment of this specification provides a quantum computing system, which includes a basic computing unit and a quantum computing unit. The basic computing unit is used to acquire multiple datasets. The multiple datasets are used to simulate the change process of a specified indicator of a specified object within a specified time period. The specified time period includes multiple specified sub-time periods, each corresponding to one of the multiple datasets. Each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value. Each dataset represents the probability distribution of the specified indicator within the corresponding specified sub-time period. The multiple datasets are sent to the quantum computing unit. The system receives a first quantum simulation result obtained by running the specified quantum simulation operation. The simulation results data; based on the first simulation results data, a second simulation results data for the specified object is generated according to a specified calculation rule; the quantum computing unit is used to receive multiple datasets sent by the basic computing unit; for the multiple datasets, a specified quantum simulation operation process is executed; wherein, the specified quantum simulation operation process is used to generate first simulation results data for the specified index, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average value of the specified index within the specified time period; wherein, the first simulation results data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold; the first simulation results data obtained by running the specified quantum simulation operation process is sent to the basic computing unit.
[0027] In this embodiment, the basic computing unit can be an electronic device with certain computing and display capabilities. Specifically, for example, the basic computing unit may include desktop computers, tablet computers, laptop computers, smartphones, smart TVs, and smart wearable devices equipped with displays. The basic computing unit may include a network communication module, a processor, and memory.
[0028] 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.
[0029] 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.
[0030] In this embodiment, the quantum computing unit can be a device that utilizes the properties of quantum mechanics to realize quantum computing. Specifically, the 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, the quantum computing unit can be a superconducting qubit control circuit based on ultra-low temperature technology. Alternatively, the quantum computing unit can be a qubit control circuit built using quantum well technology. Of course, the quantum computing unit can also be an integrated optical quantum chip, etc.
[0031] In some implementations, the quantum computing unit can act as a server. The quantum computing unit can provide computing services to clients connected to it. Clients can communicate with the quantum computing unit and send tasks requiring quantum computing to the unit for processing. The quantum computing unit can execute these tasks and return the results to the client.
[0032] In this embodiment, the basic computing unit and the quantum computing unit can communicate with each other. For example, the basic computing unit and the quantum computing unit can communicate via a wired connection. Alternatively, the basic computing unit and the quantum computing unit can communicate wirelessly via a network communication module.
[0033] Please see Figure 2 One embodiment of this specification provides a method for simulating data transmission. This method can be applied to a quantum computing unit. The method may include the following steps.
[0034] Step S110: Receive multiple datasets sent by the basic computing unit; the multiple datasets are used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein, the specified time period includes multiple specified sub-time periods, and the multiple specified sub-time periods correspond one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period.
[0035] In some cases, a quantum computing unit can receive multiple datasets sent by a basic computing unit to simulate the changes of a specified index of a specified object over a specified time period. The received data can then be used to perform quantum simulation operations to obtain the first simulation result data.
[0036] In this embodiment, the designated object can serve as the research subject. Its future possible situations can be predicted through simulation analysis of its relevant indicators, thereby providing researchers with corresponding decision-making basis. The designated indicators can serve as influencing factors of the designated object, affecting the possible situations of the designated object. The designated indicators can be influencing factors of different dimensions. Specifically, for example, the designated object can be weather, traffic flow, etc., then the corresponding designated indicators can be weather influencing factors such as temperature, wind force, and humidity, or traffic flow influencing factors such as vehicle flow and pedestrian flow.
[0037] In this embodiment, multiple datasets can be used to simulate the change process of a specified indicator of a specified object within a specified time period. The specified time period can represent the time interval between the current moment as the starting point of the simulated time period and the end point of the simulated time period. Specifically, the specified time period can include an initial time point and an end time point. It can be understood that the initial time point represents the current moment, the end time point represents the end point of the time period, and the specified time period can represent the time interval between the two.
[0038] In this embodiment, the specified time period may include multiple specified sub-time periods. Each specified sub-time period has a start and end point, and can represent the time interval between them. Specifically, to simulate the change process of a specified indicator within the specified time period, the continuous time interval represented by the specified time period can be discretized into multiple specified sub-time periods using time slicing. The asset price distribution within each sub-time period is then calculated based on the established mathematical model. In this way, the continuous change process of the specified indicator within the specified time period can be approximately simulated by discretizing the indicator values corresponding to multiple sub-time periods in the order of time slices.
[0039] In this embodiment, each dataset can represent the probability distribution of a specified indicator's value within a sub-time period. Specifically, the probability distribution data of a specified indicator for a specified object within each sub-time period can be obtained based on an established mathematical model. Then, for the corresponding probability distribution data, multiple sampling points are acquired. Each sampling point can include the price data of the specified asset and the corresponding probability data, serving as a data pair in each dataset. Thus, a dataset can represent the probability distribution of a specified indicator for a specified object within a corresponding specified sub-time period. For example, in the case of temperature as the specified indicator, corresponding datasets for each sub-time period can be obtained through sampling based on some prediction models in related technologies, such as time series models and numerical weather prediction (NWP) models.
[0040] In some implementations, the specified object can also be an asset, and the specified indicator can be the asset price. The data transmission method can be used to simulate the option price of a specified asset. Specifically, multiple datasets can be used to simulate the price change of a specified asset within a specified time period. Each dataset can include multiple data pairs consisting of price data representing the price and probability data representing the probability of the price occurring. In this case, each dataset can represent the probability distribution of the price of the specified asset within a corresponding specified sub-time period. Specifically, for example, the probability distribution data of the price of the specified asset within each specified sub-time period can be obtained based on an option pricing model (Black-Scholes-Merton Model). The specific calculation formula is as follows:
[0041]
[0042] Where t represents the expiration time, S t S0 represents the price of the specified asset, S0 represents the initial price of the specified asset, σ represents the volatility parameter, and W represents the price of the specified asset. t This represents the geometric Brownian motion (GBM) that the asset value of the target object follows at time t, where r is the rate of return parameter (i.e., the risk-free rate).
[0043] Step S120: For the multiple datasets, execute a specified quantum simulation operation process; wherein, the specified quantum simulation operation process is used to generate first simulation result data for the specified index, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average value of the specified index within the specified time period; wherein, the first simulation result data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold.
[0044] In some cases, by performing quantum simulation operations on multiple received datasets, the quantum circuit can calculate the distribution data of the specified index values in each sub-time period, i.e., each dataset, to obtain a calculation result representing the excess of the average value of the specified index over the specified time period relative to a specified threshold.
[0045] In this embodiment, performing a specified quantum simulation operation may include preparing the initial state of a qubit based on multiple received datasets, further performing a quantum weight summation operation based on the prepared qubit, and then calculating the average value of a specified index of a specified object obtained by performing the quantum weight summation operation within the specified time period, and calculating its excess amount relative to a specified threshold, thereby obtaining the first simulation result data.
[0046] In this embodiment, the amount by which the average value of a specified indicator over a specified time period exceeds a specified threshold can be used to determine the degree to which the indicator of a specified object exceeds a preset critical value, thereby providing further prompts or warnings regarding the possible state of the specified object. Specifically, the excess amount can be understood as the difference between the average value of the specified indicator and the specified threshold when the average value of the specified indicator is higher than the specified threshold, and the excess amount can be 0 when the value of the specified indicator is lower than the specified threshold. For example, when the specified indicator is temperature, the average value of the specified indicator over a specified time period can be 40, indicating that the average temperature of a certain region in the coming week is 40 degrees Celsius. The specified threshold can be 20, indicating that the more suitable temperature in the region is 20 degrees Celsius. The excess amount of the average value of the specified indicator over a specified time period relative to the specified threshold is 20, indicating that the average temperature of the region in the coming week is 20 degrees Celsius higher than the suitable temperature, reflecting that the temperature in the coming week may be hot, and further providing high temperature prompts or warnings regarding the weather.
[0047] In some implementations, the specified quantum simulation operation process further includes a first simulation result data generation process;
[0048] The steps for performing a specified quantum simulation operation on the multiple datasets include: preparing the multiple datasets onto multiple variable bits respectively; wherein, each prepared variable bit stores one dataset; performing the quantum weight summation operation based on the prepared multiple variable bits to obtain weighted sum result data; the weighted sum result data represents the average value of the specified index within the specified time period; and performing the first simulation result data generation process based on the weighted sum result data to obtain the first simulation result data.
[0049] In some implementations, each variable bit can be understood as a quantum register comprising multiple qubits. Thus, the variable bits can be prepared by exciting each qubit to a specified state, such that each eigenstate and its corresponding amplitude value can represent a data pair in the dataset, allowing each prepared variable bit to store a dataset. Specifically, for a dataset, if it includes 2... n For each data pair, a variable bit consisting of n qubits needs to be prepared to store the dataset.
[0050] In some implementations, the process of preparing a dataset onto a single variable bit may include determining the eigenstates corresponding to multiple qubits in the variable bit based on index data from multiple data pairs, and determining the amplitude values of the eigenstates corresponding to multiple qubits in the variable bit based on probability data from multiple data pairs, thereby completing the preparation of a single variable bit. This process can then be repeated for preparing variable bits for multiple datasets separately. Specifically, for example, for a dataset where the index data from multiple data pairs is 0-7, the eigenstates corresponding to the multiple qubits in the variable bit are |000>, |001>, |010>, |011>, |100>, |101>, |110>, and |111>, a total of eight eigenstates. Then, the amplitude corresponding to each eigenstate is determined based on the probability data corresponding to the index data in each data pair, thus completing the process of preparing the dataset onto a single variable bit.
[0051] In some implementations, considering that the sum of probability data in each dataset is uncertain to be 1, determining the amplitude value of each eigenstate corresponding to multiple qubits in the variable bit based on the probability data in multiple data pairs may include performing a normalization operation on the probability data. In this way, the amplitude value of each eigenstate can be determined based on the normalized probability data.
[0052] In some implementations, the step of performing the quantum weight summation operation based on the prepared plurality of variable bits to obtain the weighted sum result data may include: constructing a quantum weight summation circuit based on the prepared plurality of variable bits; wherein, the quantum weight summation circuit includes a summing bit, the plurality of variable bits, and a plurality of logic gates; the quantum weight summation circuit is used to perform a weighted summation operation on the plurality of datasets; the summing bit is used to store the summation operation result; and running the quantum weight summation circuit to obtain the weighted sum result data.
[0053] In some cases, for multiple variable bits after preparation, by constructing and running a quantum weighting circuit, a weighted operation can be performed on the dataset on the variable bits to obtain a weighted sum result that represents the average value of a specified index over a specified time period.
[0054] In some implementations, a quantum weighted summing circuit may include variable bits, summing bits, and multiple logic gates. The structure of the quantum weighted summing circuit can be determined based on the prepared variable bits and the weight values corresponding to each dataset. Specifically, depending on the type of logic gate, the quantum weighted summing circuit can be constructed in different ways. For example, the logic gates in the quantum weighted summing circuit can be controlled NOT gates or controlled rotation logic gates, resulting in different quantum weighted summing circuit construction methods.
[0055] In some implementations, the weighted summing circuit can be used to obtain the weighted sum result data by measuring the state of the summing bits in the quantum weighted summing circuit.
[0056] In some implementations, the plurality of logic gates include controlled NOT gates; the quantum weighted summing circuit also includes carry bits for temporarily storing summation carry information. Based on the prepared plurality of variable bits, the step of constructing the quantum weighted summing circuit may include: determining the number of summation bits and carry bits used to construct the quantum weighted summing circuit according to the number of variable bits and a specified weight value; wherein the specified weight value is used to represent the degree of influence of the value of the specified index within a specified sub-time period on the average value of the specified index within the specified sub-time period; obtaining the corresponding number of summation bits and carry bits; and applying controlled NOT gates to the variable bits, the summation bits, and the carry bits according to each binary bit in the binary value corresponding to the specified weight value, so that the summation bits are in the target state representing the summation calculation result.
[0057] In some implementations, since the quantum weight summation process is used to calculate the average value of a specified index over the specified time period, the specified weight values for each specified sub-time period can be the same. Specifically, for example, a specified time period may include d specified sub-time periods, and the weight of each specified sub-time period can be 1 / d. To facilitate calculation, 1 / d can be converted into an integer w first, and then the calculation result can be divided by 1 / (dw) to restore the original value.
[0058] In some implementations, determining the number of summation bits and carry bits used to construct the quantum weight summing circuit, based on the number of variable bits and specified weight values, may include calculating the sum of the specified weight values w corresponding to each variable bit, determining the number of summation bits required to represent the sum of w, and determining the number of carry bits, where the required number of carry bits is one less than the number of summation bits. Specifically, determining the number of summation bits required to represent the sum of w can be done by taking the logarithm of the sum of w, rounding it down, and then adding 1; the result is the required number of summation bits. For example, a specified time period may include three specified sub-time periods, and the weight of each specified sub-time period can be set to 2, meaning the specified weight value corresponding to each variable bit is 2. Determining the number of summation bits and carry bits used to construct the quantum weight summing circuit can be done by first calculating that the sum of the specified weight values corresponding to each variable bit is 6; in this case, the required number of summation bits is 3, and the required number of carry bits is 2.
[0059] In some implementations, the controlled NOT gate may include a Toffoli gate and a CNOT gate. Based on each bit in the binary value corresponding to the specified weight value, the controlled NOT gate is applied to the variable bit, the summation bit, and the carry bit, so that the summation bit is in the target state representing the summation result. This may include: if the value of a bit in the binary value is 1 and it is the least significant bit, then a first Toffoli gate is applied to the variable bit, the summation bit corresponding to the least significant bit, and the carry bit corresponding to the least significant bit; and a first CNOT gate is applied to the variable bit and the summation bit corresponding to the least significant bit. The control bit of the first Toffoli gate is the variable bit and the summation bit corresponding to the least significant bit, and the control bit of the first CNOT gate is the variable bit. If the value of a bit in the binary value is 1 and it is the most significant bit, then a second CNOT gate is applied to the variable bit and the summation bit corresponding to the most significant bit. The control bit of the second CNOT gate is the variable bit. If the value of a binary bit in the binary value is 1 and it is the middle bit, then the third CNOT gate is applied to the variable bit and the carry bit corresponding to the middle bit, and the control virtual Tooffoli gate is applied to the variable bit, the summation bit corresponding to the middle bit, the carry bit before the carry bit corresponding to the middle bit, and the carry bit corresponding to the middle bit. The control bit of the third CNOT gate is the variable bit, the control bit of the control virtual Tooffoli gate is the variable bit, and the virtual control bit of the control virtual Tooffoli gate is the summation bit corresponding to the middle bit and the carry bit before the carry bit corresponding to the middle bit. If the value of a binary bit in the binary value is 0 and it is the least significant bit, then no controlled NOT gate operation is performed on the variable bit, the summation bit, and the carry bit. If the value of a binary bit in the binary value is 0 and it is the most significant bit, then the fourth CNOT gate is applied to the summation bit corresponding to the most significant bit and the carry bit before the carry bit corresponding to the most significant bit. The control bit of the fourth CNOT gate is the carry bit before the carry bit corresponding to the most significant bit. If the value of a binary bit in the binary value is 0 and it is the middle bit, then the second Tooffoli gate is applied to the sum bit corresponding to the middle bit, the carry bit before the carry bit of the middle bit, and the carry bit corresponding to the middle bit. The fifth CNOT gate is applied to the sum bit corresponding to the middle bit and the carry bit before the carry bit corresponding to the middle bit. The control bit of the second Tooffoli gate is the carry bit before the sum bit corresponding to the middle bit and the carry bit corresponding to the middle bit. The control bit of the fifth CNOT gate is the carry bit before the carry bit corresponding to the middle bit.After applying controlled NOT gates to the variable bit, summation bit, and carry bit according to each binary bit in the binary value corresponding to the specified weight value, so that the summation bit is in the target state representing the summation calculation result, a target quantum logic gate can be determined based on the controlled NOT gates, and the target quantum logic gate can be applied to the carry bit. The target quantum logic gate can be used to reset the carry bit, facilitating reuse in the next variable bit operation, thereby saving computational resources.
[0060] Please see Figure 3 To facilitate understanding of the steps outlined above, which involve applying a controlled NOT gate to the variable bit, the summation bit, and the carry bit for each binary bit in the binary value corresponding to the specified weight value, so that the summation bit is in the target state representing the summation calculation result, an example is provided here. For instance... Figure 3As shown, q0, q1, and q2 are variable bits, each with a weight of 2. The sum of the weights is 6, therefore, at least 3 summation bits are needed to represent this weight sum. q3, q4, and q5 are summation bits, and q6 and q7 are carry bits. Real control bits are represented by solid black dots, and virtual control bits are represented by hollow circles. For q0, with a weight of 2, its binary value is 010, with the highest bit being 0, the middle bit being 1, and the lowest bit being 0. According to the above steps, for the lowest bit, no controlled NOT gate operation is performed on variable bit q0, summation bit q3, and carry bit q6. For the middle bit, the third CNOT gate is applied to the variable bit q0 and the carry bit q7 corresponding to the middle bit (corresponding to timing 1). The control virtual Tooffoli gate is applied to the variable bit q0, the summation bit q4 corresponding to the middle bit, the carry bit q6 preceding the carry bit q7, and the carry bit q7 corresponding to the middle bit (corresponding to timing 2). The control bit of the third CNOT gate is the variable bit q0, the control bit of the control virtual Tooffoli gate is the variable bit q0, and the virtual control bit of the control virtual Tooffoli gate is the summation bit q4 corresponding to the middle bit and the carry bit q6 preceding the carry bit q7. The fourth CNOT gate is applied to the summation bit q5 corresponding to the most significant bit and the carry bit q7 preceding the carry bit corresponding to the most significant bit (corresponding to timing 3). The control bit of the fourth CNOT gate is the carry bit q7 preceding the carry bit corresponding to the most significant bit. For q0, the weight is 2, and its binary value is 010. After applying the controlled NOT gates in sequences 1-3 to the variable bits, summation bits, and carry bits based on the weights, the binary values are traversed in reverse order. The target quantum logic gate U (sequence 4) for resetting the carry bit is determined based on the controlled NOT gates in sequences 1-3, and U is applied to the carry bit. Since the controlled NOT gates applied to carry bits q6 and q7 have also applied to other bits, such as CNOT (q0, q7) in sequence 1, the controlled virtual Tooffoli gate (q0, q4, q6, q7) in sequence 2, and CNOT (q7, q5) in sequence 3, the actual reset may also apply to the variable bits and summation bits. For the logic gate operations of variable bits q1 and q2, see [link to relevant documentation]. Figure 3 The timing sequences 5-8 and 9-12 are the same as the logic gate operations on the variable bit q0, and will not be described again.
[0061] In some embodiments, the plurality of logic gates includes controlled rotation logic gates; the step of constructing a quantum weighted summing circuit based on the prepared plurality of variable bits includes: determining the rotation parameters of the controlled rotation logic gates acting on the variable bits according to a specified weight value; wherein, the specified weight value is used to represent the degree of influence of the value of the specified index in a specified sub-time period on the average value of the specified index in the specified sub-time period; and using the phase estimation circuit constructed based on the plurality of variable bits and the controlled rotation logic gates with the rotation parameters as the quantum weighted summing circuit, so that the summing bit is in a target state representing the summation calculation result.
[0062] In some implementations, determining the rotation parameters of the controlled rotation logic gates acting on the variable bits, based on specified weight values, may include: determining the base angle of the controlled rotation logic gate, and then determining the rotation parameters of each controlled rotation logic gate based on the product of the base angle and w. Specifically, for example, the controlled rotation logic gates may be combinational logic gates of controlled RX gates, controlled RY gates, controlled RZ gates, and controlled U1 gates. When the controlled rotation logic gate is a controlled RX gate or a controlled RY gate, its corresponding characteristic value is... i is the imaginary sign, θ is the product of the base angle and the weight, and the base angle can be chosen to be either a controlled RY gate or a controlled RX gate. Where m is the number of summation bits, the rotation parameters of the controlled RY gate or controlled RX gate for each variable bit can be constructed based on this base angle, and the rotation parameters are 2. m-1 θ,···2θ,θ. in,
[0063] Please see Figure 4 For ease of understanding, Figure 4 A schematic diagram of a quantum weighted summing circuit is provided. q0, q1, and q2 are variable bits with a specified weight of 4; q3, q4, and q5 are summing bits; and q6 is an auxiliary bit. The controlled RY gates for the first variable bit are RY(θ)... 11 ), RY(θ) 12 ), RY(θ) 13 The controlled RY gates for the second variable bit are RY(θ) 21 ), RY(θ) 22 ), RY(θ) 23 The controlled RY gates for the third variable bit are RY(θ) 31 ), RY(θ) 32 ), RY(θ) 33 ), where θ 11 =θ 21 =θ 31 =2 2 θ、θ 12=θ 22 =θ 32 =2θ, θ 13 =θ 23 =θ 33 =θ, Figure 4 The roles of the H gate and Fourier transpose conjugate operation in this context are the same as those in the phase estimation quantum circuits of related technologies, and will not be elaborated upon here. For combinational logic gates consisting of controlled RZ gates and controlled U1 gates, the specific implementation process is the same as that of the controlled RY gates described above, except for the different base angles, and will not be repeated here.
[0064] In some implementations, the first simulation result data includes a zero value or the difference between the weighted sum result data and the specified threshold; wherein, when the weighted sum result data is less than the specified threshold, the first simulation result data is a zero value; when the weighted sum result data is greater than the specified threshold, the first simulation result data is the difference between the two; the step of generating the first simulation result data based on the weighted sum result data includes: constructing a corresponding quantum circuit based on the piecewise linear function relationship satisfied between the weighted sum result data and the first simulation result data; wherein, the quantum circuit is used to map the function value of the piecewise linear function to the result bit in the quantum circuit; calculating the first simulation result data based on the amplitude value of the result bit; and running the quantum circuit to obtain the first simulation result data.
[0065] In some cases, after obtaining the weighted sum of the average values of a specified indicator over the specified time period, it is necessary to further calculate the difference between the average value of the specified indicator and a specified threshold based on the weighted sum, i.e., the average value of the specified indicator, to obtain the amount by which the average value of the specified indicator over the specified time period exceeds the specified threshold. Specifically, a corresponding quantum circuit can be constructed and run for a piecewise linear function of the first simulation result data to obtain the first simulation result data representing the amount of excess.
[0066] In some implementations, the first simulated result data can be the maximum value between the difference between the average value of a specified indicator over a specified time period and a specified threshold, and 0. This can be used to construct a piecewise linear function between the weighted sum result data and the first simulated result data. Specifically, for example, when the weighted sum result data R > the specified threshold K, the first simulated result data is positive, f(R) = max{0, RK}; when R < the strike price K, the first simulated result data is negative, f(R) = max{RK, 0}. That is, when the weighted sum result data is less than the specified threshold, the first simulated result data is always 0. Here, f(R) represents the piecewise linear function of the first simulated result data.
[0067] In some implementations, the simulated data transmission method can be used to simulate the option price of a specified asset. The specified object can be a specified asset, and the specified indicator of the specified object can be the price of the specified asset. The first simulation result data generation process can include a quantum return calculation process, which can be used to determine the return simulation data based on the calculation results of the quantum weight summation process. The specified quantum simulation calculation process can include a quantum weight summation process and a quantum return calculation process, and the specified quantum simulation calculation process can be used to simulate the expected return of the specified asset after a specified time period. The quantum weight summation process can be used to calculate the average price of the specified asset within the specified time period.
[0068] In some implementations, the step of performing a specified quantum simulation operation on the plurality of datasets may further include: preparing the plurality of datasets onto a plurality of variable bits respectively; wherein each prepared variable bit stores one dataset; performing the quantum weight summation operation based on the prepared plurality of variable bits to obtain weighted sum result data; the weighted sum result data representing the average price of a specified asset within the specified time period; and performing the quantum return operation based on the weighted sum result data to obtain return simulation data; the return simulation data representing the return of the specified asset after the specified time period.
[0069] In some implementations, the return on a specified asset can be the maximum of two values: the difference between the average price of the specified asset over a specified period and a preset strike price, and zero. A piecewise linear function of the return on the specified asset can be constructed using this. Specifically, for example, when the average price S of the specified asset... t When the exercise price is K, the return is positive, f(S) t )=max{0,S t -K}, when S t When the strike price is K, the return is negative, f(S) t )=max{S t-K,0}. Where f(S t ) is a piecewise linear function of the returns of a specified asset.
[0070] In some implementations, by constructing a quantum return calculation circuit corresponding to the piecewise linear function of the specified asset's return, the function value of the piecewise linear function can be mapped to the result bit in the quantum return calculation circuit. Then, by running the quantum return calculation circuit, the amplitude value corresponding to the result bit can be calculated to determine the expected value of the piecewise linear function, which serves as the return simulation data. The specific steps for constructing the quantum return calculation circuit for the piecewise linear function of the asset's return can utilize existing related technologies and will not be elaborated here.
[0071] In some implementations, the revenue simulation data can be obtained by inverse mapping of the asset revenue function mapping value on the result bits.
[0072] In some implementations, when calculating the amplitude value corresponding to the result bit, existing related techniques can be used. By determining the amplification parameters of the amplified quantum circuit in each iterative step, the difference between the upper and lower bounds of the amplitude angle is continuously iterated to ensure that it is within the accuracy threshold, thus avoiding the problem of amplitude value non-convergence and improving the accuracy of the amplitude value. Specific details are not elaborated here.
[0073] In some implementations, after obtaining the weighted sum result data, it can also be sent directly to the basic computing unit, which will then calculate the first simulation result data so that the basic computing unit can subsequently generate the corresponding second simulation result data based on the first simulation result data.
[0074] Step S130: Send the first simulation result data obtained by running the specified quantum simulation operation to the basic computing unit, so that the basic computing unit can generate the second simulation result data of the specified object based on the first simulation result data and according to the specified calculation rules.
[0075] In some cases, quantum simulation calculations can yield first simulation results for large amounts of data targeting specific metrics. Compared to classical computers performing the same amount of computation, this saves computation time and increases computational speed. Therefore, by sending the first simulation results to the basic computing unit for the calculation of second simulation results, the overall efficiency of the quantum computing system in simulating specific metrics for a given object can be improved.
[0076] Please see Figure 5One embodiment of this specification provides a method for generating simulated data. This simulated data generation method can be applied to a basic computing unit. The simulated data generation method may include the following steps.
[0077] S210: Obtain multiple datasets; the multiple datasets are used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein, the specified time period includes multiple specified sub-time periods, and the multiple specified sub-time periods correspond one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period.
[0078] In some cases, to analyze and predict the state of a specified object over a future period, it is necessary to simulate the changes of a specified indicator of the specified object from the current time to the end of the specified time period. Specifically, the specified time period can be divided into multiple specified sub-time periods using time slicing. The Monte Carlo method can be used to simulate the probability distribution of the specified indicator's value within each time slice, and a dataset representing this distribution can be sampled. Multiple datasets can then be used to represent the probability distribution of the specified indicator's value within the corresponding time slices, thereby simulating the change process of the specified indicator of the specified object within the specified time period.
[0079] In this embodiment, the specified time period can represent the time interval between the current moment and the end of the specified time period. Furthermore, this time interval can be divided into multiple sub-time periods using a time-slicing method. Specifically, for example, assuming the specified time period is {0, T} and includes 5 sub-time periods, the sub-time periods can be {0, T / 5}, {T / 5, 2T / 5}, {2T / 5, 3T / 5}, {3T / 5, 4T / 5}, and {4T / 5, T}.
[0080] In some cases, considering the different factors simulating the change of a specified indicator, the specified time period can be divided using different time slicing methods. Different time slicing methods can have different effects on simulating the change process of the specified indicator. Specifically, in order to simulate the change process of the specified indicator, it is necessary to obtain multiple sampling points, including indicator data and corresponding probability data, for the probability distribution data of the specified indicator value within the sub-time period, as a dataset. Using different time slicing methods can make the sampled dataset have different effects on reflecting the trend of indicator change. This specification provides the following three implementation methods of time slicing. In some implementation methods, the specified sub-time period has corresponding start time points and end time points; the start time points of each specified sub-time period are different; according to the chronological order of each start time point, the start time point of each specified sub-time period is the same as the end time point of the previous specified sub-time period. For this time slicing method, each sub-time period is small, which can make the sampling points more dense and better reflect the change of the specified indicator value within each sub-time period, but the overall fluctuation is small and it is not easy to reflect the overall trend of change.
[0081] In some implementations, the specified sub-time periods have corresponding start and end times; the start times of each specified sub-time period are the same, while the end times of each specified sub-time period are different; each specified sub-time period includes the previous specified sub-time period according to the chronological order of its end times. This time slicing method, where each sub-time period includes the previous sub-time period, allows for more dispersed sampling points. With the same number of sampling points, the accuracy of the value changes of the specified indicators within each sub-time period is slightly lower than the previous time slicing method, but it considers overall fluctuations and better reflects the overall trend of change.
[0082] In some implementations, the specified sub-time periods have corresponding start and end times; the start times of each specified sub-time period are different; and each specified sub-time period partially overlaps with the previous specified sub-time period according to the chronological order of its start times. For this time slicing method, the sampling points effectively reflect the changes in the values of the specified indicators within each sub-time period and the overall fluctuation trend.
[0083] Please see Figure 6 To facilitate understanding of the various time slicing methods provided in this manual, Figure 6This diagram illustrates three time slicing methods. The time interval is T. The first method divides T into 5 equal parts with no overlap between sub-segments. Each sub-segment has a time interval of T / 5, and the start of each sub-segment is the end of the previous sub-segment. The second method includes the previous sub-segment within each sub-segment; each sub-segment starts at 0 and ends at T / 5, 2T / 5, 3T / 5, 4T / 5, and T, respectively. The third method divides T into 4 segments with a time interval of 2T / 5. Each sub-segment has a length of 2T / 5, and the start and end points of each sub-segment increase by T / 5 sequentially from 0 and 2T / 5. In this method, there is some overlap between each sub-segment and the previous sub-segment. For the first time slicing method, the current time slice does not contain the distribution trend of previous time slices. For example, {T / 5, 2T / 5} does not contain the distribution trend of {0, T / 5}. For the second time slicing method, the current time slice contains the distribution trend of all previous time slices. For example, {0, 2T / 5} contains the distribution trend of {0, T / 5}. For the third time slicing method, the current time slice contains the distribution trend of some previous time slices. For example, {T / 5, 3T / 5} contains the distribution trend of the {T / 5, 2T / 5} part of {0, 2T / 5}.
[0084] In this embodiment, multiple datasets can be obtained by establishing a mathematical model based on the fluctuation of the specified indicator values for a specified object to obtain the probability distribution data of the specified indicator values in each sub-time period. Then, for the probability distribution data corresponding to the sub-time period, multiple sampling points are obtained. Each sampling point may include indicator data and corresponding probability data as a data pair in each dataset. In this way, multiple datasets can be obtained for each specified sub-time period.
[0085] S220: The plurality of datasets are sent to the quantum computing unit for the quantum computing unit to perform a specified quantum simulation operation process on the plurality of datasets; wherein the specified quantum simulation operation process is used to generate first simulation result data for the specified index, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average value of the specified index within the specified time period; wherein the first simulation result data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold.
[0086] S230: Receive the first simulation result data obtained by running the specified quantum simulation operation process, sent by the quantum computing unit.
[0087] S240: Based on the first simulation result data, generate second simulation result data for the specified object according to the specified calculation rules.
[0088] In some cases, after receiving the first simulation result data, the basic computing unit can further generate second simulation result data according to specified rules based on the extent to which the average value of a specified indicator exceeds a specified threshold within the specified time period. Specifically, for example, during a simulation of temperature conditions, if the basic computing unit receives first simulation result data (x) sent by the quantum computing unit, indicating that the average temperature in a certain region exceeds the suitable temperature by x degrees in the coming week, then it can further generate corresponding high-temperature alerts or warning signals based on the magnitude of x. For instance, the degree of temperature exceedance can be categorized: a yellow warning signal for exceedances below 10 degrees, an orange warning signal for exceedances between 10 and 20 degrees, and a red warning signal for exceedances above 20 degrees.
[0089] In this embodiment, the specified calculation rule can represent the operational logic and process followed in generating the second simulation result data of the specified object based on the first simulation result data. Specifically, the specified calculation rule can be set according to specific needs. The specified calculation rule can be different for different specified objects or different indicators of the same specified object. For example, when simulating temperature conditions, the specified calculation rule can be the operational rule for generating different levels of high temperature warning signals as described above; if simulating traffic flow conditions, the specified calculation rule can be the operational rule for generating warning signals corresponding to different levels of congestion.
[0090] In some implementations, the simulation data generation method can be used to simulate the option price of a specified asset. The specified object can be a specified asset, and the specified indicator of the specified object can be the price of the specified asset. Accordingly, the simulation data generation method may include: acquiring multiple datasets, which are used to simulate the price change process of a specified asset within a specified time period; wherein each dataset includes multiple data pairs formed by price data representing the price and probability data representing the probability of the price occurring, and each dataset represents the probability distribution of the price of the specified asset in a corresponding specified sub-time period; sending the multiple datasets to a quantum computing unit for the quantum computing unit to perform a specified quantum simulation operation process on the multiple datasets; wherein the specified quantum simulation operation process is used to simulate the expected return of the specified asset after the specified time period, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average price of the specified asset within the specified time period; receiving return simulation data obtained by running the specified quantum simulation operation process from the quantum computing unit; and generating price result data based on the return simulation data, wherein the price result data represents the option price of the specified asset.
[0091] In some implementations, obtaining multiple datasets can be achieved by using a mathematical model to analyze the price fluctuations of a specified asset, resulting in the probability distribution data of the asset's price within each sub-time period. Then, for this probability distribution data, multiple sampling points are obtained. Each sampling point can include the asset's price data and its corresponding probability data, forming a data pair within each dataset. Thus, multiple datasets can be obtained for each specified sub-time period. Specifically, for example, multiple datasets can be obtained based on a Lake-Schuurs model. Since the geometric Brownian motion distribution in the Lake-Schuurs model is normal, the distribution of the specified asset is log-normal. Therefore, the asset price within each sub-time period after the expiration time is not a single point value, but rather a continuous set of points conforming to a continuous probability distribution. For each continuous point within a sub-time period, each point can include a value representing the asset's price and its corresponding probability of occurrence, where represents the asset price within that sub-time period, and represents the probability value of that price occurring. Further, uniform sampling is performed on the log-normally distributed continuous points to obtain discrete probability density distribution points, forming a dataset. It is understandable that for d sub-time periods, d sampling points are needed to obtain multiple datasets.
[0092] In some implementations, after receiving the return simulation data sent by the quantum computing unit, the basic computing unit can obtain price result data representing the price of the simulated option by discounting the expected return value of the specified asset on the maturity date represented by the return simulation data to the present value.
[0093] In some implementations, the generation of price result data based on revenue simulation data can be calculated using a discount formula to discount the expected revenue value to its present value, thus obtaining the price result data. In other implementations, depending on the specific problems and situations in the actual application, and in conjunction with other factors, more complex models can be used to calculate the price result data.
[0094] Please see Figure 7 One embodiment of this specification provides an analog data transmission apparatus. The analog data transmission apparatus may include:
[0095] A receiving module is used to receive multiple datasets sent by a basic computing unit; the multiple datasets are used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein, the specified time period includes multiple specified sub-time periods, and the multiple specified sub-time periods correspond one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period;
[0096] An execution module is configured to perform a specified quantum simulation operation process on the multiple datasets; wherein the specified quantum simulation operation process is configured to generate first simulation result data for the specified index, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average value of the specified index within the specified time period; wherein the first simulation result data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold.
[0097] The sending module is used to send the first simulation result data obtained by running the specified quantum simulation operation to the basic computing unit, so that the basic computing unit can generate the second simulation result data of the specified object based on the first simulation result data and according to the specified calculation rules.
[0098] Please see Figure 8 One embodiment of this specification provides a simulation data generation apparatus. The simulation data generation apparatus may include:
[0099] An acquisition module is used to acquire multiple datasets; the multiple datasets are used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein, the specified time period includes multiple specified sub-time periods, and the multiple specified sub-time periods correspond one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period;
[0100] A sending module is configured to send the plurality of datasets to a quantum computing unit, so that the quantum computing unit can perform a specified quantum simulation operation process on the plurality of datasets; wherein, the specified quantum simulation operation process is configured to generate first simulation result data for the specified index, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average value of the specified index within the specified time period; wherein, the first simulation result data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold;
[0101] The receiving module is used to receive the first simulation result data obtained by running the specified quantum simulation operation process, which is sent by the quantum computing unit;
[0102] The generation module is used to generate second simulation result data for the specified object based on the first simulation result data and according to specified calculation rules.
[0103] 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 a computer device in hardware form, or it can be stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0104] 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 or analog data generation method in any of the above embodiments.
[0105] 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 or analog data generation method in any of the above embodiments.
[0106] Please see Figure 9 This description describes an embodiment that can provide a computer device, the computer device including: a memory, and one or more processors communicatively connected to the memory; the memory stores instructions executable by the one or more processors, the instructions being executed by the one or more processors to cause the one or more processors to implement the analog data transmission method or analog data generation method in any of the above embodiments.
[0107] In some embodiments, the computer device may include a processor connected to a system bus, a non-volatile storage medium, internal memory, a communication interface, a display device, and an input device. The non-volatile storage medium may store an operating system and related computer programs.
[0108] The user information or user account information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, etc.) involved in various embodiments of this specification are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0109] It is understood that the specific examples in this document are only intended to help those skilled in the art better understand the embodiments described herein, and are not intended to limit the scope of the invention.
[0110] It is understood that in the various embodiments described in 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 constitute any limitation on the implementation process of the embodiments described in this specification.
[0111] 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.
[0112] 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.
[0113] 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.
[0114] 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.
[0115] 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.
[0116] 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.
[0117] 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.
[0118] 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.
[0119] 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.
[0120] 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.
[0121] 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 technical scope 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 multiple datasets; the multiple datasets are used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein, the specified time period includes multiple specified sub-time periods, and the multiple specified sub-time periods correspond one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period; the multiple datasets are sent to the quantum computing unit; the unit receives first simulation result data obtained by running a specified quantum simulation operation process sent by the quantum computing unit; based on the first simulation result data, the unit generates second simulation result data of the specified object according to specified calculation rules; The quantum computing unit is used to receive multiple datasets sent by the basic computing unit; and to execute a specified quantum simulation operation process for the multiple datasets; wherein the specified quantum simulation operation process is used to generate first simulation result data for the specified index, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average value of the specified index within the specified time period; the specified quantum simulation operation process also includes a first simulation result data generation process; wherein the first simulation result data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold; and the first simulation result data obtained by running the specified quantum simulation operation process is sent to the basic computing unit; The step of performing a specified quantum simulation operation on the multiple datasets includes: preparing the multiple datasets onto multiple variable bits respectively; wherein each prepared variable bit stores one dataset; constructing a quantum weighted summing circuit based on the prepared multiple variable bits; wherein the quantum weighted summing circuit includes a summing bit, the multiple variable bits, and multiple logic gates; the quantum weighted summing circuit is used to perform a weighted summation operation on the multiple datasets; the summing bit is used to store the summation result; the multiple logic gates include controlled NOT gates; the controlled NOT gates include a first Tooffoli gate, a second Tooffoli gate, a first CNOT gate, a second CNOT gate, a third CNOT gate, a fourth CNOT gate, a fifth CNOT gate, and a controlled virtual Tooffoli gate; the quantum weighted summing circuit also includes a carry bit for temporarily storing summation carry information; and running the quantum weighted summing circuit. The process involves: generating a quantum weighted summing circuit based on multiple prepared variable bits to obtain weighted sum result data; the weighted sum result data represents the average value of the specified index within the specified time period; and generating the first simulation result data based on the weighted sum result data. The step of constructing the quantum weighted summing circuit based on the prepared variable bits includes: determining the number of summing bits and carry bits used to construct the quantum weighted summing circuit according to the number of variable bits and the specified weight value; wherein the specified weight value represents the degree of influence of the value of the specified index within the specified sub-time period on the average value of the specified index within the specified sub-time period; obtaining the corresponding number of summing bits and carry bits; and applying a controlled NOT gate to the variable bits, the summing bits, and the carry bits according to each binary bit in the binary value corresponding to the specified weight value, so that the summing bits are in the target state representing the summation calculation result. The step of applying a controlled NOT gate to the variable bit, the summation bit, and the carry bit based on each binary bit in the binary value corresponding to the specified weight value, so that the summation bit is in the target state representing the summation calculation result, includes: if the value of the binary bit in the binary value is 1 and it is the least significant bit, then applying a first Toffoli gate to the variable bit, the summation bit corresponding to the least significant bit, and the carry bit corresponding to the least significant bit; and applying a first CNOT gate to the variable bit and the summation bit corresponding to the least significant bit, wherein the control bit of the first Toffoli gate is the bit corresponding to the least significant bit. The summation bit, the control bit of the first CNOT gate is the variable bit; if the value of the binary bit in the binary value is 1 and it is the most significant bit, then the second CNOT gate is applied to the variable bit and the summation bit corresponding to the most significant bit, and the control bit of the second CNOT gate is the variable bit; if the value of the binary bit in the binary value is 1 and it is the middle bit, then the third CNOT gate is applied to the variable bit and the carry bit corresponding to the middle bit, and the control virtual control Toffoli gate is applied to the variable bit, the summation bit corresponding to the middle bit, the carry bit corresponding to the middle bit, the carry bit of the previous bit, and the carry bit corresponding to the middle bit, the third... The control bit of the CNOT gate is a variable bit, the control bit of the virtual Toffoli gate is a variable bit, and the virtual control bit of the virtual Toffoli gate is the summation bit corresponding to the middle bit and the carry bit before the carry bit corresponding to the middle bit; if the value of the binary bit in the binary value is 0 and it is the least significant bit, then no controlled NOT gate operation is performed on the variable bit, summation bit, and carry bit; if the value of the binary bit in the binary value is 0 and it is the most significant bit, then the fourth CNOT gate is applied to the summation bit corresponding to the most significant bit and the carry bit before the carry bit corresponding to the most significant bit, and the control bit of the fourth CNOT gate is... The carry bit preceding the carry bit corresponding to the highest bit; if the value of a binary bit in the binary value is 0 and it is the middle bit, then the second Tooffoli gate is applied to the sum bit corresponding to the middle bit, the carry bit preceding the carry bit of the middle bit, and the carry bit corresponding to the middle bit, and the fifth CNOT gate is applied to the sum bit corresponding to the middle bit and the carry bit preceding the carry bit corresponding to the middle bit, the control bit of the second Tooffoli gate is the carry bit preceding the sum bit corresponding to the middle bit and the carry bit corresponding to the middle bit, and the control bit of the fifth CNOT gate is the carry bit preceding the carry bit corresponding to the middle bit.
2. A method for simulating data transmission, characterized in that, The method, applied to a quantum computing unit, includes: receiving multiple datasets sent by a basic computing unit; the multiple datasets are used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein, the specified time period includes multiple specified sub-time periods, and the multiple specified sub-time periods correspond one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period; For the multiple datasets, a specified quantum simulation operation process is performed; wherein, the specified quantum simulation operation process is used to generate first simulation result data for the specified index, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average value of the specified index within the specified time period; the specified quantum simulation operation process also includes a first simulation result data generation process; wherein, the first simulation result data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold; The step of performing a specified quantum simulation operation on the multiple datasets includes: preparing the multiple datasets onto multiple variable bits respectively; wherein each prepared variable bit stores one dataset; constructing a quantum weighted summing circuit based on the prepared multiple variable bits; wherein the quantum weighted summing circuit includes a summing bit, the multiple variable bits, and multiple logic gates; the quantum weighted summing circuit is used to perform a weighted summation operation on the multiple datasets; the summing bit is used to store the summation result; the multiple logic gates include controlled NOT gates; the controlled NOT gates include a first Tooffoli gate, a second Tooffoli gate, a first CNOT gate, a second CNOT gate, a third CNOT gate, a fourth CNOT gate, a fifth CNOT gate, and a controlled virtual Tooffoli gate; the quantum weighted summing circuit also includes a carry bit for temporarily storing summation carry information; and running the quantum weighted summing circuit. The process involves: generating a quantum weighted summing circuit based on multiple prepared variable bits to obtain weighted sum result data; the weighted sum result data represents the average value of the specified index within the specified time period; and generating the first simulation result data based on the weighted sum result data. The step of constructing the quantum weighted summing circuit based on the prepared variable bits includes: determining the number of summing bits and carry bits used to construct the quantum weighted summing circuit according to the number of variable bits and the specified weight value; wherein the specified weight value represents the degree of influence of the value of the specified index within the specified sub-time period on the average value of the specified index within the specified sub-time period; obtaining the corresponding number of summing bits and carry bits; and applying a controlled NOT gate to the variable bits, the summing bits, and the carry bits according to each binary bit in the binary value corresponding to the specified weight value, so that the summing bits are in the target state representing the summation calculation result. The first simulation result data obtained by running the specified quantum simulation operation is sent to the basic computing unit so that the basic computing unit can generate the second simulation result data of the specified object based on the first simulation result data and according to the specified calculation rules. The step of applying a controlled NOT gate to the variable bit, the summation bit, and the carry bit based on each binary bit in the binary value corresponding to the specified weight value, so that the summation bit is in the target state representing the summation calculation result, includes: if the value of the binary bit in the binary value is 1 and it is the least significant bit, then applying a first Toffoli gate to the variable bit, the summation bit corresponding to the least significant bit, and the carry bit corresponding to the least significant bit; and applying a first CNOT gate to the variable bit and the summation bit corresponding to the least significant bit, wherein the control bit of the first Toffoli gate is the bit corresponding to the least significant bit. The summation bit, the control bit of the first CNOT gate is the variable bit; if the value of the binary bit in the binary value is 1 and it is the most significant bit, then the second CNOT gate is applied to the variable bit and the summation bit corresponding to the most significant bit, and the control bit of the second CNOT gate is the variable bit; if the value of the binary bit in the binary value is 1 and it is the middle bit, then the third CNOT gate is applied to the variable bit and the carry bit corresponding to the middle bit, and the control virtual control Toffoli gate is applied to the variable bit, the summation bit corresponding to the middle bit, the carry bit corresponding to the middle bit, the carry bit of the previous bit, and the carry bit corresponding to the middle bit, the third... The control bit of the CNOT gate is a variable bit, the control bit of the virtual Toffoli gate is a variable bit, and the virtual control bit of the virtual Toffoli gate is the summation bit corresponding to the middle bit and the carry bit before the carry bit corresponding to the middle bit; if the value of the binary bit in the binary value is 0 and it is the least significant bit, then no controlled NOT gate operation is performed on the variable bit, summation bit, and carry bit; if the value of the binary bit in the binary value is 0 and it is the most significant bit, then the fourth CNOT gate is applied to the summation bit corresponding to the most significant bit and the carry bit before the carry bit corresponding to the most significant bit, and the control bit of the fourth CNOT gate is... The carry bit preceding the carry bit corresponding to the highest bit; if the value of a binary bit in the binary value is 0 and it is the middle bit, then the second Tooffoli gate is applied to the sum bit corresponding to the middle bit, the carry bit preceding the carry bit of the middle bit, and the carry bit corresponding to the middle bit, and the fifth CNOT gate is applied to the sum bit corresponding to the middle bit and the carry bit preceding the carry bit corresponding to the middle bit, the control bit of the second Tooffoli gate is the carry bit preceding the sum bit corresponding to the middle bit and the carry bit corresponding to the middle bit, and the control bit of the fifth CNOT gate is the carry bit preceding the carry bit corresponding to the middle bit.
3. The method according to claim 2, characterized in that, The plurality of logic gates includes controlled rotation logic gates; the steps for constructing a quantum weighted summing circuit based on the prepared plurality of variable bits include: Based on a specified weight value, the rotation parameters of the controlled rotation logic gate acting on the variable bit are determined; wherein, the specified weight value is used to represent the degree of influence of the value of the specified index in a specified sub-time period on the average value of the specified index in the specified sub-time period; The phase estimation circuit, constructed based on the multiple variable bits and the controlled rotation logic gate with the rotation parameters, is used as the quantum weight summing circuit, so that the summing bit is in the target state representing the summation result.
4. The method according to claim 2, characterized in that, The first simulation result data includes a zero value or the difference between the weighted sum result data and the specified threshold; wherein, when the weighted sum result data is less than the specified threshold, the first simulation result data is a zero value; when the weighted sum result data is greater than the specified threshold, the first simulation result data is the difference between the two; the step of generating the first simulation result data based on the weighted sum result data includes: Based on the piecewise linear function relationship between the weighted sum result data and the first simulation result data, a corresponding quantum circuit is constructed; wherein, the quantum circuit is used to map the function value of the piecewise linear function to the result bit in the quantum circuit; so as to calculate the first simulation result data according to the amplitude value of the result bit; Run the quantum circuit to obtain the first simulation result data.
5. A method for generating simulated data, characterized in that, Applied to basic computing units, the method includes: Multiple datasets are acquired; the multiple datasets are used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein, the specified time period includes multiple specified sub-time periods, and the multiple specified sub-time periods correspond one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period; The multiple datasets are sent to a quantum computing unit for the quantum computing unit to perform a specified quantum simulation operation on the multiple datasets; wherein the specified quantum simulation operation is used to generate first simulation result data for the specified index, and the specified quantum simulation operation includes a quantum weighted summation operation for calculating the average value of the specified index over the specified time period; the specified quantum simulation operation also includes a first simulation result data generation process; wherein the first simulation result data represents the amount by which the average value of the specified index over the specified time period exceeds a specified threshold; Receive first simulation result data sent by the quantum computing unit after running the specified quantum simulation operation process; Based on the first simulation result data, second simulation result data for the specified object is generated according to the specified calculation rules; The step of performing a specified quantum simulation operation on the multiple datasets includes: preparing the multiple datasets onto multiple variable bits respectively; wherein each prepared variable bit stores one dataset; constructing a quantum weighted summing circuit based on the prepared multiple variable bits; wherein the quantum weighted summing circuit includes a summing bit, the multiple variable bits, and multiple logic gates; the quantum weighted summing circuit is used to perform a weighted summation operation on the multiple datasets; the summing bit is used to store the summation result; the multiple logic gates include controlled NOT gates; the controlled NOT gates include a first Tooffoli gate, a second Tooffoli gate, a first CNOT gate, a second CNOT gate, a third CNOT gate, a fourth CNOT gate, a fifth CNOT gate, and a controlled virtual Tooffoli gate; the quantum weighted summing circuit also includes a carry bit for temporarily storing summation carry information; and running the quantum weighted summing circuit. The process involves: generating a quantum weighted summing circuit based on multiple prepared variable bits to obtain weighted sum result data; the weighted sum result data represents the average value of the specified index within the specified time period; and generating the first simulation result data based on the weighted sum result data. The step of constructing the quantum weighted summing circuit based on the prepared variable bits includes: determining the number of summing bits and carry bits used to construct the quantum weighted summing circuit according to the number of variable bits and the specified weight value; wherein the specified weight value represents the degree of influence of the value of the specified index within the specified sub-time period on the average value of the specified index within the specified sub-time period; obtaining the corresponding number of summing bits and carry bits; and applying a controlled NOT gate to the variable bits, the summing bits, and the carry bits according to each binary bit in the binary value corresponding to the specified weight value, so that the summing bits are in the target state representing the summation calculation result. The step of applying a controlled NOT gate to the variable bit, the summation bit, and the carry bit based on each binary bit in the binary value corresponding to the specified weight value, so that the summation bit is in the target state representing the summation calculation result, includes: if the value of the binary bit in the binary value is 1 and it is the least significant bit, then applying a first Toffoli gate to the variable bit, the summation bit corresponding to the least significant bit, and the carry bit corresponding to the least significant bit; and applying a first CNOT gate to the variable bit and the summation bit corresponding to the least significant bit, wherein the control bit of the first Toffoli gate is the bit corresponding to the least significant bit. The summation bit, the control bit of the first CNOT gate is the variable bit; if the value of the binary bit in the binary value is 1 and it is the most significant bit, then the second CNOT gate is applied to the variable bit and the summation bit corresponding to the most significant bit, and the control bit of the second CNOT gate is the variable bit; if the value of the binary bit in the binary value is 1 and it is the middle bit, then the third CNOT gate is applied to the variable bit and the carry bit corresponding to the middle bit, and the control virtual control Toffoli gate is applied to the variable bit, the summation bit corresponding to the middle bit, the carry bit corresponding to the middle bit, the carry bit of the previous bit, and the carry bit corresponding to the middle bit, the third... The control bit of the CNOT gate is a variable bit, the control bit of the virtual Toffoli gate is a variable bit, and the virtual control bit of the virtual Toffoli gate is the summation bit corresponding to the middle bit and the carry bit before the carry bit corresponding to the middle bit; if the value of the binary bit in the binary value is 0 and it is the least significant bit, then no controlled NOT gate operation is performed on the variable bit, summation bit, and carry bit; if the value of the binary bit in the binary value is 0 and it is the most significant bit, then the fourth CNOT gate is applied to the summation bit corresponding to the most significant bit and the carry bit before the carry bit corresponding to the most significant bit, and the control bit of the fourth CNOT gate is... The carry bit preceding the carry bit corresponding to the highest bit; if the value of a binary bit in the binary value is 0 and it is the middle bit, then the second Tooffoli gate is applied to the sum bit corresponding to the middle bit, the carry bit preceding the carry bit of the middle bit, and the carry bit corresponding to the middle bit, and the fifth CNOT gate is applied to the sum bit corresponding to the middle bit and the carry bit preceding the carry bit corresponding to the middle bit, the control bit of the second Tooffoli gate is the carry bit preceding the sum bit corresponding to the middle bit and the carry bit corresponding to the middle bit, and the control bit of the fifth CNOT gate is the carry bit preceding the carry bit corresponding to the middle bit.
6. The method according to claim 5, characterized in that, The specified sub-time period has a corresponding start time point and end time point; the start time points of each specified sub-time period are the same, and the end time points of each specified sub-time period are different; according to the time sequence of each end time point, each specified sub-time period includes the previous specified sub-time period.
7. The method according to claim 5, characterized in that, The specified sub-time period has a corresponding start time point and end time point; according to the time sequence of multiple start time points, each specified sub-time period partially overlaps with the previous specified sub-time period.
8. An analog data transmission device, characterized in that, The device includes: A receiving module is used to receive multiple datasets sent by a basic computing unit; the multiple datasets are used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein, the specified time period includes multiple specified sub-time periods, and the multiple specified sub-time periods correspond one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period; An execution module is configured to perform a specified quantum simulation operation process on the multiple datasets; wherein the specified quantum simulation operation process is used to generate first simulation result data for the specified index, and the specified quantum simulation operation process includes a quantum weighted summation operation process for calculating the average value of the specified index within the specified time period; the specified quantum simulation operation process also includes a first simulation result data generation process; wherein the first simulation result data represents the amount by which the average value of the specified index within the specified time period exceeds a specified threshold; wherein the step of performing the specified quantum simulation operation process on the multiple datasets includes: preparing the multiple datasets onto multiple variable bits respectively; wherein each prepared variable bit stores one dataset; constructing a quantum weighted summation circuit based on the prepared multiple variable bits; wherein the quantum weighted summation circuit includes a summation bit, the multiple variable bits, and multiple logic gates; the quantum weighted summation circuit is used to perform a weighted summation operation on the multiple datasets; the summation bit is used to store the summation operation result; the multiple logic gates include controlled NOT gates; the controlled NOT gates include a first Toffoli gate, a second Toffoli gate, and a third Toffoli gate. The quantum weight summing circuit includes a CNOT gate, a first CNOT gate, a second CNOT gate, a third CNOT gate, a fourth CNOT gate, a fifth CNOT gate, and a control virtual Toffoli gate; the quantum weight summing circuit also includes carry bits for temporarily storing summation carry information; the quantum weight summing circuit is run to obtain weighted sum result data; the weighted sum result data represents the average value of the specified index within the specified time period; based on the weighted sum result data, the first simulation result data generation process is executed to obtain the first simulation result data; wherein, based on the prepared multiple variable bits, quantum weights are constructed. The steps of the summing circuit include: determining the number of summing bits and carry bits used to construct the quantum weight summing circuit based on the number of variable bits and a specified weight value; wherein, the specified weight value is used to represent the degree of influence of the value of the specified index in a specified sub-time period on the average value of the specified index in the specified sub-time period; obtaining the corresponding number of summing bits and carry bits; and applying a controlled NOT gate to the variable bits, the summing bits, and the carry bits according to each binary bit in the binary value corresponding to the specified weight value, so that the summing bits are in the target state representing the summation calculation result;The step of applying a controlled NOT gate to the variable bit, the summation bit, and the carry bit based on each binary bit in the binary value corresponding to the specified weight value, so that the summation bit is in the target state representing the summation calculation result, includes: if the value of the binary bit in the binary value is 1 and it is the least significant bit, then applying a first Toffoli gate to the variable bit, the summation bit corresponding to the least significant bit, and the carry bit corresponding to the least significant bit; and applying a first CNOT gate to the variable bit and the summation bit corresponding to the least significant bit, wherein the control bit of the first Toffoli gate is the bit corresponding to the least significant bit. The summation bit, the control bit of the first CNOT gate is the variable bit; if the value of the binary bit in the binary value is 1 and it is the most significant bit, then the second CNOT gate is applied to the variable bit and the summation bit corresponding to the most significant bit, and the control bit of the second CNOT gate is the variable bit; if the value of the binary bit in the binary value is 1 and it is the middle bit, then the third CNOT gate is applied to the variable bit and the carry bit corresponding to the middle bit, and the control virtual control Toffoli gate is applied to the variable bit, the summation bit corresponding to the middle bit, the carry bit corresponding to the middle bit, the carry bit of the previous bit, and the carry bit corresponding to the middle bit, the third... The control bit of the CNOT gate is a variable bit, the control bit of the virtual Toffoli gate is a variable bit, and the virtual control bit of the virtual Toffoli gate is the summation bit corresponding to the middle bit and the carry bit before the carry bit corresponding to the middle bit; if the value of the binary bit in the binary value is 0 and it is the least significant bit, then no controlled NOT gate operation is performed on the variable bit, summation bit, and carry bit; if the value of the binary bit in the binary value is 0 and it is the most significant bit, then the fourth CNOT gate is applied to the summation bit corresponding to the most significant bit and the carry bit before the carry bit corresponding to the most significant bit, and the control bit of the fourth CNOT gate is... The carry bit preceding the carry bit corresponding to the highest bit; if the value of a binary bit in the binary value is 0 and it is the middle bit, then the second Tooffoli gate is applied to the sum bit corresponding to the middle bit, the carry bit preceding the carry bit of the middle bit, and the carry bit corresponding to the middle bit, and the fifth CNOT gate is applied to the sum bit corresponding to the middle bit and the carry bit preceding the carry bit corresponding to the middle bit, the control bit of the second Tooffoli gate is the carry bit preceding the sum bit corresponding to the middle bit and the carry bit corresponding to the middle bit, and the control bit of the fifth CNOT gate is the carry bit preceding the carry bit corresponding to the middle bit. The sending module is used to send the first simulation result data obtained by running the specified quantum simulation operation to the basic computing unit, so that the basic computing unit can generate the second simulation result data of the specified object based on the first simulation result data and according to the specified calculation rules.
9. A simulation data generation device, characterized in that, The device includes: An acquisition module is used to acquire multiple datasets; the multiple datasets are used to simulate the change process of a specified indicator of a specified object within a specified time period; wherein, the specified time period includes multiple specified sub-time periods, and the multiple specified sub-time periods correspond one-to-one with the multiple datasets; each dataset includes multiple sets of data pairs formed by indicator data representing the value of the specified indicator and probability data representing the probability value corresponding to the value, and each dataset represents the probability distribution of the specified indicator in the corresponding specified sub-time period; A sending module is configured to send the plurality of datasets to a quantum computing unit, so that the quantum computing unit can perform a specified quantum simulation operation on the plurality of datasets; wherein, the specified quantum simulation operation is configured to generate first simulation result data for the specified index, and the specified quantum simulation operation includes a quantum weighted summation operation for calculating the average value of the specified index over a specified time period; the specified quantum simulation operation also includes a first simulation result data generation process; wherein, the first simulation result data represents the average value of the specified index over the specified time period. For an excess of a specified threshold; wherein, the step of performing a specified quantum simulation operation on the multiple datasets includes: preparing the multiple datasets onto multiple variable bits respectively; wherein, each prepared variable bit stores one dataset; constructing a quantum weighted summing circuit based on the prepared multiple variable bits; wherein, the quantum weighted summing circuit includes a summing bit, the multiple variable bits, and multiple logic gates; the quantum weighted summing circuit is used to perform a weighted summation operation on the multiple datasets; the summing bit is used to store the summation result; the multiple logic gates include controlled NOT gates; the controlled NOT gates include a first The quantum weighted summing circuit includes a Toffoli gate, a second Tofoli gate, a first CNOT gate, a second CNOT gate, a third CNOT gate, a fourth CNOT gate, a fifth CNOT gate, and a control virtual Tofoli gate; the quantum weighted summing circuit also includes carry bits for temporarily storing summation carry information; the quantum weighted summing circuit is run to obtain weighted sum result data; the weighted sum result data represents the average value of the specified index within the specified time period; based on the weighted sum result data, the first simulation result data generation process is executed to obtain the first simulation result data; wherein, based on the prepared multiple variable ratios Specifically, the steps for constructing a quantum weighted summing circuit include: determining the number of summation bits and carry bits used to construct the quantum weighted summing circuit based on the number of variable bits and a specified weight value; wherein, the specified weight value is used to represent the degree of influence of the value of the specified index in a specified sub-time period on the average value of the specified index in the specified sub-time period; obtaining the corresponding number of summation bits and carry bits; and applying a controlled NOT gate to the variable bits, the summation bits, and the carry bits according to each binary bit in the binary value corresponding to the specified weight value, so that the summation bits are in the target state representing the summation calculation result;The step of applying a controlled NOT gate to the variable bit, the summation bit, and the carry bit based on each binary bit in the binary value corresponding to the specified weight value, so that the summation bit is in the target state representing the summation calculation result, includes: if the value of the binary bit in the binary value is 1 and it is the least significant bit, then applying a first Toffoli gate to the variable bit, the summation bit corresponding to the least significant bit, and the carry bit corresponding to the least significant bit; and applying a first CNOT gate to the variable bit and the summation bit corresponding to the least significant bit, wherein the control bit of the first Toffoli gate is the bit corresponding to the least significant bit. The summation bit, the control bit of the first CNOT gate is the variable bit; if the value of the binary bit in the binary value is 1 and it is the most significant bit, then the second CNOT gate is applied to the variable bit and the summation bit corresponding to the most significant bit, and the control bit of the second CNOT gate is the variable bit; if the value of the binary bit in the binary value is 1 and it is the middle bit, then the third CNOT gate is applied to the variable bit and the carry bit corresponding to the middle bit, and the control virtual control Toffoli gate is applied to the variable bit, the summation bit corresponding to the middle bit, the carry bit corresponding to the middle bit, the carry bit of the previous bit, and the carry bit corresponding to the middle bit, the third... The control bit of the CNOT gate is a variable bit, the control bit of the virtual Toffoli gate is a variable bit, and the virtual control bit of the virtual Toffoli gate is the summation bit corresponding to the middle bit and the carry bit before the carry bit corresponding to the middle bit; if the value of the binary bit in the binary value is 0 and it is the least significant bit, then no controlled NOT gate operation is performed on the variable bit, summation bit, and carry bit; if the value of the binary bit in the binary value is 0 and it is the most significant bit, then the fourth CNOT gate is applied to the summation bit corresponding to the most significant bit and the carry bit before the carry bit corresponding to the most significant bit, and the control bit of the fourth CNOT gate is... The carry bit preceding the carry bit corresponding to the highest bit; if the value of a binary bit in the binary value is 0 and it is the middle bit, then the second Tooffoli gate is applied to the sum bit corresponding to the middle bit, the carry bit preceding the carry bit of the middle bit, and the carry bit corresponding to the middle bit, and the fifth CNOT gate is applied to the sum bit corresponding to the middle bit and the carry bit preceding the carry bit corresponding to the middle bit, the control bit of the second Tooffoli gate is the carry bit preceding the sum bit corresponding to the middle bit and the carry bit corresponding to the middle bit, and the control bit of the fifth CNOT gate is the carry bit preceding the carry bit corresponding to the middle bit. The receiving module is used to receive the first simulation result data obtained by running the specified quantum simulation operation process, which is sent by the quantum computing unit; The generation module is used to generate second simulation result data for the specified object based on the first simulation result data and according to specified calculation rules.
10. 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 steps of the method according to any one of claims 2 to 7.
11. 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 steps of the method according to any one of claims 2 to 7.
Citation Information
Patent Citations
Distributed quantum computing system
CN115511093A
Data generation task processing method and quantum computing system
CN116011576A
