Simulated boson sampling method and apparatus, and storage medium

By determining the unitary transformation matrix and target matrix in the Bose sampling system, combined with the preset formula, the sampling probability of the Bose sampling system is simulated and calculated, which solves the problem of difficulty in calculating the probability distribution in the high-dimensional Bose sampling system and achieves Quantitative evaluation of the output of the 'Nine Chapters' quantum computer.

WO2024199541A1PCT designated stage expired Publication Date: 2024-10-03SHRONG ENERGY TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/089614
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-28
Filing Date
2024-04-24
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

It is difficult to calculate the probability distribution of sampling samples in a high-dimensional Bose sampling system with existing technology, making it impossible to quantitatively evaluate the output results of the 'Nine Chapters' quantum computer.

Method used

By determining the unitary transformation matrix and target matrix of the Bose sampling system, combined with the preset formula, the sampling sample probability in Bose sampling is simulated and converted into the product sum formula of the target matrix to estimate the sampling sample probability.

Benefits of technology

The simulation calculation of the sampling sample probability of the high-dimensional Bose sampling system has been realized, and the output results of the 'Nine Chapters' quantum computer can be quantitatively evaluated, overcoming the limitations of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024089614_03102024_PF_FP_ABST
    Figure CN2024089614_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided are a simulated Boson sampling method and apparatus, and a storage medium. The simulated Boson sampling method comprises: determining, according to the number N of ports of an interference network of a Boson sampling system, the unitary transformation matrix of the interference network, wherein the unitary transformation matrix is an N-order unitary matrix; determining a target matrix according to the unitary transformation matrix, wherein each element in the target matrix is the square of the modulus of the element at the same position in the unitary transformation matrix; and determining the probability of sampling samples in the Boson sampling according to the target matrix and a pre-set formula, the pre-set formula representing a relational expression between the probability of the sampling samples and the target matrix, wherein the Boson sampling includes indistinguishable photon Boson sampling and distinguishable photon Boson sampling.
Need to check novelty before this filing date? Find Prior Art

Description

A method, device and storage medium for simulating Bose sampling

[0001] This disclosure is based on Chinese patent application number 2023103178575, application date March 28, 2023, and application name “A method, device and storage medium for simulating Bose sampling”, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this disclosure as a reference. Technical Field

[0002] The present disclosure relates to, but is not limited to, a method, apparatus, and storage medium for simulating Bose sampling. Background Art

[0003] The number of input ports and output ports of the interference network in the Bose sampling system is the same. When photons are input from each input port, the photons input into the Bose sampling system will generate random quantum interference in the interference network and then be output from each output port. The number of output photons detected from each output port is random, and the order of the number of photons detected by all output ports forms a sampling sample of Bose sampling. Bose sampling generates a random sequence of multiple sampling samples, and this random sequence satisfies a certain probability distribution.

[0004] When calculating the probability of a sample of Bose sampling, we need to first analyze the total number of all sample samples, that is, how many possible combinations there are when N photons are output from N output ports. According to the permutation and combination calculation, the total number of all sample samples can be obtained as This total number increases super-exponentially with the number of ports N. For example, when the number of photons (i.e., the number of ports) is 100, the total number of different sampling samples is approximately 4.5274*10 58 The "Jiuzhang" Gaussian boson quantum computer is a boson sampling system that can quickly complete boson sampling tasks and can perform 250,000 sampling processes per second. Even if it is assumed that the samples generated in each sampling process are different, 4.5274*10 58 The total number of samples generated also requires 5.7425*10 45 Years, while the universe is only 13.7 billion years old. Therefore, based on the computing resources invested, the probability distribution of samples from lower-dimensional Bose sampling can be calculated, but calculating the probability distribution of samples from higher-dimensional Bose sampling is impossible, making it impossible to quantitatively evaluate the output of the Jiuzhang quantum computer.

[0005] Summary of the Invention

[0006] The following is an overview of the subject matter described in detail in this disclosure. This overview is not intended to limit the scope of the claims.

[0007] The present disclosure provides a method, device and storage medium for simulating Bose sampling.

[0008] According to a first aspect of an embodiment of the present disclosure, a method for simulating Bose sampling is provided, the method comprising:

[0009] Determine a unitary transformation matrix of the interference network according to the number of ports N of the interference network of the Bose sampling system, wherein the unitary transformation matrix is ​​an N-order unitary matrix;

[0010] Determine a target matrix according to the unitary transformation matrix, wherein each element in the target matrix is ​​the square of the modulus of the element at the same position in the unitary transformation matrix;

[0011] Determine the probability of a sample in Bose sampling according to the target matrix and a preset formula, wherein the preset formula represents a relationship between the target matrix and the probability of the sample;

[0012] The Bose sampling includes all-identical-photon Bose sampling and all-non-identical-photon Bose sampling.

[0013] According to some embodiments of the present disclosure, the preset formula includes a first preset formula;

[0014] Determining the probability of sampling samples in Bose sampling according to the target matrix and a preset formula includes:

[0015] Determining a product-sum formula of the target matrix;

[0016] The probability of sampling samples in Bose sampling is determined according to the product-sum formula of the target matrix and the first preset formula.

[0017] According to some embodiments of the present disclosure, determining the product-sum formula of the target matrix includes:

[0018] Generate a set corresponding one-to-one to the columns of the target matrix, the set including N subintervals connected in sequence, and the set covering [0, 1];

[0019] Performing the following sampling process multiple times to generate multiple samples: generating random probability values ​​corresponding to columns of the target matrix, and determining the position identification number of the subinterval to which the random probability value belongs in the set corresponding to the corresponding column;

[0020] The occurrence probability of a set sample in the multiple samples is statistically set, and the occurrence probability is used as the product sum formula of the target matrix. The set sample is: any two serial numbers of N position identification numbers of random probability values ​​corresponding to N columns are different.

[0021] According to some embodiments of the present disclosure, the method further includes:

[0022] Each of the subintervals in each of the sets corresponds one-to-one to an element in the corresponding column, and a position of the subinterval in the N subintervals is the same as a position of the corresponding element in the N elements in the column.

[0023] According to some embodiments of the present disclosure, determining the probability of a sample in Bose sampling according to the product-sum formula of the target matrix and the first preset formula includes:

[0024] The first preset formula is:

[0025] Among them, S i represents the i-th sample of Bose sampling, Pr(S i ) represents the probability of the i-th sample, B i represents the transformation matrix of the unitary transformation matrix corresponding to the i-th sample, |B i | 2 Denotes the target matrix, Per(|B i | 2 ) represents the product-sum formula of the target matrix, represents the number of photons at the kth output port in the i-th sampling sample.

[0026] According to some embodiments of the present disclosure, the preset formula includes a second preset formula;

[0027] Determining the probability of sampling samples in Bose sampling according to the target matrix and a preset formula includes:

[0028] Obtaining the number of sampling processes that generate each of the sampled samples in Bose sampling;

[0029] Determining a probability of the sampling process for each of the sampled samples based on the target matrix;

[0030] The probability of each of the sampling samples in Bose sampling is estimated according to the number of the sampling processes of each of the sampling samples, the probability of the sampling process and the second preset formula.

[0031] According to some embodiments of the present disclosure, the method further includes:

[0032] The number of sampling processes for each of the sampling samples is obtained by the following formula:

[0033] Among them, S i Indicates the i-th sample of Bose sampling, Num_P(S i ) represents the number of sampling processes for the i-th sampling sample, represents the number of photons at the kth output port in the i-th sampling sample;

[0034] The second preset formula is:

[0035] Among them, S i represents the i-th sample of Bose sampling, Pr(S i ) represents the probability of the i-th sample, Process i It represents the probability of the first sampling process that occurs in the process of simulating the generation of the i-th sampling sample.

[0036] According to a second aspect of an embodiment of the present disclosure, a simulated Bose sampling device is provided, the device comprising:

[0037] A first determining module is configured to determine a unitary transformation matrix of the interference network according to the number of ports N of the interference network of the Bose sampling system, wherein the unitary transformation matrix is ​​an N-order unitary matrix;

[0038] A second determining module is configured to determine a target matrix according to the unitary transformation matrix, wherein each element in the target matrix is ​​the square of the modulus of the element at the same position in the unitary transformation matrix;

[0039] A third determination module is configured to determine the probability of a sample in Bose sampling according to the target matrix and a preset formula, wherein the preset formula represents a relationship between the target matrix and the probability of the sample;

[0040] The Bose sampling includes all-identical-photon Bose sampling and all-non-identical-photon Bose sampling.

[0041] According to a third aspect of an embodiment of the present disclosure, there is provided a simulated Bose sampling device, comprising:

[0042] processor;

[0043] a memory for storing processor-executable instructions;

[0044] The processor is configured to execute the method as described in any one of the first aspects of the embodiments of the present disclosure.

[0045] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, which, when instructions in the storage medium are executed by a processor of an apparatus, enables the apparatus to execute a method as described in any one of the first aspects of an embodiment of the present disclosure.

[0046] In the method for simulating Bose sampling provided in the embodiments of the present disclosure, the unitary transformation matrix is ​​converted into a target matrix. Based on the target matrix and the preset formula, each sampling sample of Bose sampling can be simulated and calculated, and the probability of each sampling sample can be estimated, thereby achieving the technical effect of quantitatively evaluating the output results of the "Jiuzhang" quantum computer.

[0047] Still other aspects will become apparent upon reading and understanding the accompanying drawings and detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings, which are incorporated into and constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, are used to explain the principles of the embodiments of the present disclosure. In these drawings, similar reference numerals are used to represent similar elements. The drawings described below are some embodiments of the present disclosure, not all embodiments. For those skilled in the art, other drawings can be derived from these drawings without inventive effort.

[0049] FIG1 is a flow chart showing a method for simulating Bose sampling according to an exemplary embodiment.

[0050] FIG2 is a schematic diagram of a Bose sampling system according to an exemplary embodiment.

[0051] FIG3 is a schematic diagram showing a probability distribution of low-dimensional Bose sampling according to an exemplary embodiment.

[0052] FIG4 is a schematic diagram showing probability distribution of high-dimensional Bose sampling according to an exemplary embodiment.

[0053] FIG5 is a flowchart showing a method for determining the probability of a sample in Bose sampling according to a target matrix and a preset formula in step S103 according to an exemplary embodiment.

[0054] Fig. 6 is a schematic diagram of a simulation device according to an exemplary embodiment.

[0055] FIG7 is a flowchart showing a method for determining a product-sum formula of a target matrix in step S501 according to an exemplary embodiment.

[0056] Fig. 8 is a schematic diagram of line segments of each set according to an exemplary embodiment.

[0057] FIG9 is a schematic diagram showing a comparison of calculation results of a matrix product-sum formula according to an exemplary embodiment.

[0058] FIG10 is a flowchart of a method for determining the probability of a sample in Bose sampling according to a target matrix and a preset formula in step S103 according to an exemplary embodiment.

[0059] Fig. 11 is a block diagram showing an apparatus for simulating Bose sampling according to an exemplary embodiment.

[0060] FIG12 is a block diagram showing a device for simulating Bose sampling according to an exemplary embodiment. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the disclosed embodiments. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present disclosure. It should be noted that, in the absence of conflict, the embodiments in the present disclosure and the features in the embodiments can be arbitrarily combined with each other.

[0062] In related technologies, photons with exactly the same state are called identical photons. Photons with the same state are indistinguishable and are also called "bosons" in physics. When the input photon is a boson, the probability of each sample of Bose sampling is determined by the following formula:

[0063] Among them, S i represents the i-th sample of Bose sampling, Pr(S i ) represents the probability of the i-th sample, B i Represents the transformation matrix of the unitary transformation matrix corresponding to the i-th sample, Per(B i ) represents the product-sum formula of the transformation matrix, represents the number of photons at the kth output port in the i-th sampling sample.

[0064] Since the product-sum formula of high-dimensional matrices cannot be calculated with existing computing resources, when the number of input photons is large, the probability of each sample of Bose sampling cannot be calculated using the above formula.

[0065] In an exemplary embodiment of the present disclosure, in order to overcome the problem in the related art that the sample probability distribution of high-dimensional Bose sampling cannot be calculated, a method for simulating Bose sampling is provided. According to the number of ports N of the interference network of the Bose sampling system, the unitary transformation matrix of the interference network is determined. The unitary transformation matrix is ​​an N-order unitary matrix. The target matrix is ​​determined according to the unitary transformation matrix. Each element in the target matrix is ​​the square of the modulus of the element at the same position in the unitary transformation matrix. According to the target matrix and the preset formula, the probability of the sampling sample in Bose sampling is determined. This method converts the unitary transformation matrix into a target matrix. Based on the target matrix and the preset formula, it can simulate and calculate each sampling sample of Bose sampling and estimate the probability of each sampling sample, thereby achieving a quantitative evaluation of the technical effect of the output results of the "Jiuzhang" quantum computer.

[0066] In an exemplary embodiment of the present disclosure, a method for simulating Bose sampling is provided. FIG1 is a flow chart of the method for simulating Bose sampling according to an exemplary embodiment. As shown in FIG1 , the method includes the following steps:

[0067] Step S101, determining a unitary transformation matrix of the interference network according to the number of ports N of the interference network of the Bose sampling system, where the unitary transformation matrix is ​​an N-order unitary matrix;

[0068] Step S102, determining a target matrix according to the unitary transformation matrix, where each element in the target matrix is ​​the square of the modulus of the element at the same position in the unitary transformation matrix;

[0069] Step S103 , determining the probability of the sampled samples in Bose sampling according to the target matrix and a preset formula, where the preset formula represents the relationship between the target matrix and the probability of the sampled samples.

[0070] Among them, Bose sampling includes all-identical-photon Bose sampling and all-non-identical-photon Bose sampling.

[0071] To simplify the description, the Bose sampling in this disclosure uses one photon per input port. It is worth noting that the principles and processes provided by this disclosure are also applicable to the case where the number of input photons is less than the number of input ports.

[0072] FIG2 is a schematic diagram of a Bose sampling system according to an exemplary embodiment. As shown in FIG2 , the Bose sampling system includes six ports. Each input port inputs a photon. The input photons undergo quantum interference through an interference network represented by a unitary transformation matrix, i.e., a unitary transformation, and are output from an output port. The number of photons at each output port is random. Photon detection is performed at the output port to determine the number of photons at each output port. The order of the number of photons detected at all output ports forms an output sampling sample of Bose sampling, and each output sampling sample is a set of N elements. For example, in FIG2 , sampling sample 0, sampling sample 1, sampling sample 2, ... represent the number of photons detected at output ports 1 to 6, respectively. Sample 0 is represented as: [1, 1, 1, 1, 1], sample 1 is represented as: [2, 0, 1, 0, 1, 2], and sample 2 is: [1, 0, 3, 1, 0, 1], ....

[0073] When the number of ports of the Bose sampling system is N, the sample output by the i-th sampling process is expressed as:

[0074] in, represents the number of photons detected from output port k in the output sampling sample of the i-th sampling process. All photon numbers satisfy the following relationship:

[0075] After multiple sampling processes, a random sequence of output sampling samples S1, S2, ..., S of Bose sampling can be generated. i ,…, each output sampling element S in the random sequence i Satisfy a certain probability distribution. It should be noted here that theoretically the sample S in the sequence i Possibly repeated, all output samples S that are different from each other i Form a set, the number of elements in the set is:

[0076] Where: N! = 1*2*3*…*N

[0077] In step S101, the number of ports of the interference network of the Bose sampling system is recorded as N, and the unitary transformation matrix of the interference network is represented by an N-order unitary matrix. Since the sampling sample probability of low-dimensional Bose sampling can be calculated, the present disclosure calculates the probability of sampling samples for high-dimensional Bose sampling. In the related art, according to tests, sampling problems with more than 12 dimensions are generally difficult computing tasks for computing platforms based on ordinary desktop computers. The method disclosed in the present disclosure can be applied to both the simulation of high-dimensional Bose sampling and the simulation of low-dimensional Bose sampling. The unitary transformation matrix is ​​recorded as matrix B, and the unitary transformation matrix B is expressed as:

[0078] Generally speaking, the elements in the unitary transformation matrix B are complex numbers. When the input is identical photons, the unitary transformation matrix B physically represents the complex quantum interference process between photons. When the input is non-identical photons, the unitary transformation matrix B can be explained by an intuitive physical process:

[0079] Among them, |b 11 | 2 represents the probability that the first photon is output from the first output port, |b N1 | 2 represents the probability of the first photon being output from the Nth output port, |b 1N | 2 represents the probability that the Nth photon is output from the first output port, |b NN | 2 represents the probability that the Nth photon is output from the Nth output port.

[0080] In order to obtain the calculation formula for the probability of the output sample, for different sample samples, it is necessary to transform the unitary transformation matrix B according to the sample sample to determine the transformation matrix corresponding to each sample in the probability calculation formula. i The corresponding transformation matrix is ​​recorded as matrix B i, if the i-th sample S i The number of photons detected by the kth output port is zero, then delete the kth column in the matrix B; if the i-th sample S i The number of photons detected by the kth output port If it is not zero, then repeat the kth column in matrix B Second-rate.

[0081] For example, when matrix B is a three-dimensional matrix as shown below:

[0082] If the i-th sample S i =[2,0,1], that is, the number of photons detected by the first output port is 2, the number of photons detected by the second output port is 0, and the number of photons detected by the third output port is 1. Then repeat the first column of matrix B twice, delete the second column, and repeat the third column once, that is, the third column remains unchanged, and obtain the i-th sampling sample S i The corresponding transformation matrix B i for:

[0083] If the i-th sample S i =[0,2,1], that is, the number of photons detected by the first output port is 0, the number of photons detected by the second output port is 2, and the number of photons detected by the third output port is 1. Then delete the first column of matrix B, repeat the second column twice, and repeat the third column once, that is, the third column remains unchanged, and get the i-th sampling sample S i The corresponding unitary transformation matrix B i for:

[0084] In step S102, the target matrix is ​​determined based on the unitary transformation matrix. Each element in the target matrix is ​​the square of the modulus of the element at the same position in the unitary transformation matrix. That is, the target matrix is ​​the square of the determinant of the unitary transformation matrix. The target matrix is ​​a non-negative real matrix. The target matrix is ​​denoted as matrix A, and matrix A is expressed as:

[0085] Since the matrix B is a unitary matrix, according to the properties of the unitary matrix, |B| 2 The sum of all elements in each column is 1, that is:

[0086] Where i represents the i-th row of the matrix and j represents the j-th column of the matrix.

[0087] In step S103, the preset formula is a relationship between the target matrix and the probability of the sampled samples. According to the target matrix and the preset formula, the probability of the sampled samples in Bose sampling can be determined.

[0088] The ideal state of the interference network of a Bose sampling system includes the following conditions: no photons are lost in the interference network; all photons are in exactly the same state, and photons in the same state are indistinguishable, also known as "bosons" in physics; and all photons are in phase at the interference point. However, due to various non-ideal factors in the interference network, quantum interference does not always occur in all photons in the interference network, making it very difficult to achieve Bose sampling under ideal conditions. In the ideal state, photons with the same state are called identical photons, or bosons. If the photon states are completely different, each photon is distinguishable, also known as a "fermion" or "completely non-identical photon" in physics.

[0089] Since it is very difficult to achieve Bose sampling under ideal conditions, the probability of the sampling samples determined in this disclosure according to the target matrix and the preset formula is the probability of each sampling sample of Bose sampling under fermions, thereby obtaining the probability distribution of Bose sampling under fermions.

[0090] Since the probability distribution of low-dimensional Bose sampling under bosons and fermions can be directly calculated, Figure 3 is a schematic diagram of the probability distribution of low-dimensional Bose sampling according to an exemplary embodiment. As shown in Figure 3, the probability distribution of Bose sampling after unitary transformation through 6-dimensional matrices, 7-dimensional matrices, 8-dimensional matrices, and 9-dimensional matrices is shown. The horizontal axis represents the sampled samples, and the vertical axis represents the sample probability after sorting the sample probabilities corresponding to the sampled samples. Curve A represents the probability distribution of Bose sampling under bosons, and curve B represents the probability distribution of Bose sampling under fermions. By analyzing the probability distribution of low-dimensional Bose sampling under bosons and fermions, it can be concluded that after sorting the probabilities of all sampled samples of Bose sampling under bosons and fermions, the value range of the sample probabilities is very close. Therefore, the probability of the sampled samples of high-dimensional Bose sampling under fermions obtained above can be used as a reference value for the probability range of the sampled samples of high-dimensional Bose sampling under bosons, thereby quantitatively evaluating the sequence of Bose sampling under bosons. By estimating the probability of Bose sampling in fermion sampling samples, the probability of sampling samples generated by the "Jiuzhang" computer can be quantitatively analyzed.

[0091] Based on the probability distribution estimation method of Bose sampling under fermions, the probability distribution estimation range of Bose sampling of 100 photons and 144 photons is simulated respectively. Figure 4 is a schematic diagram of the probability distribution of high-dimensional Bose sampling according to an exemplary embodiment. As shown in Figure 4, the probability distribution estimation of Bose sampling of 100 photons and 144 photons under fermions is shown. The horizontal axis is the sampling sample, and the vertical axis is the sample probability after sorting the sample probabilities corresponding to 500,000 sampling samples. Among them, the Bose sampling of 100 photons and 144 photons corresponds to "Jiuzhang 1" and "Jiuzhang 2", respectively.

[0092] As shown in Figure 4, the probability distribution interval of the sampling samples of “Jiu Zhang 1” is 10 -20 and 10 -55 The probability distribution interval of the sampling samples of "Jiuzhang 2" is between 10 -34 and 10 -76 According to classical probability theory, the period of sample repetition is approximately the inverse of the probability value. For "Jiu Zhang 1", the maximum probability sample repetition requires 10 7 For "Jiu Zhang 2", the maximum probability sample needs 10 to repeat once. 21 Years. Therefore, within the timeframe perceivable to humans, no repeated samples can appear in either "Jiuzhang 1" or "Jiuzhang 2." Therefore, it can be assumed that the outputs of "Jiuzhang 1" and "Jiuzhang 2" are a non-repeating random sequence within the effectively measurable timeframe, conforming to a uniform distribution.

[0093] In an exemplary embodiment of the present disclosure, the unitary transformation matrix of the interference network of the Bose sampling system is determined based on the number of ports N of the interference network. The unitary transformation matrix is ​​an N-order unitary matrix. A target matrix is ​​determined based on the unitary transformation matrix. Each element in the target matrix is ​​the square of the modulus of the element at the same position in the unitary transformation matrix. The probability of the sample in the Bose sampling is determined based on the target matrix and a preset formula. This method converts the unitary transformation matrix into a target matrix. Based on the target matrix and a preset formula, it can simulate and calculate each sample of the Bose sampling and estimate the probability of each sample, thereby achieving a quantitative evaluation of the technical effect of the output results of the "Jiuzhang" quantum computer.

[0094] In an exemplary embodiment, the preset formula in step S103 includes a first preset formula. FIG5 is a roadmap of a method for determining the probability of a sample in Bose sampling according to a target matrix and the preset formula in step S103 according to an exemplary embodiment. As shown in FIG5 , the method includes the following steps:

[0095] Step S501, determining the product-sum formula of the target matrix;

[0096] Step S502 : determining the probability of sampling samples in Bose sampling according to the product-sum formula of the target matrix and a first preset formula.

[0097] In step S501, the product-sum formula of matrix A is recorded as Per(A). According to the definition of the product-sum formula of a matrix, the product-sum formula of matrix A is expressed as:

[0098] Where, set C represents all permutations of natural numbers from 1 to N, and there are N! permutations and combinations in the set. δ represents any permutation and combination in set C, and δ(i) represents the i-th element in the permutation and combination.

[0099] It is clear that the product-sum formula of matrix A is to calculate the product of any elements that are not in the same row or column, and then add up the N! products.

[0100] Taking a three-dimensional matrix as an example, the product-sum formula of the target matrix is ​​simulated and calculated using the following method:

[0101] The three-dimensional matrix is ​​recorded as matrix A3, which is expressed as:

[0102] According to the definition of matrix product-sum formula, the product-sum formula of matrix A3 is expressed as: Per(A3)=a 11 ·a 22 ·a 33 +a 11 ·a 23 ·a 32 +a 12 ·a 21 ·a 33 +a 12 ·a 23 ·a 31 +a 13 ·a 22 ·a 31 +a 13 ·a 21 ·a 32

[0103] The above product-sum equation is simulated by a device with 3 input ports and 3 output ports. A small ball is placed in any input port, and the random motion of the ball is used to simulate the behavior of a photon. The ball will fall into any output port with a certain probability. The probability of the ball entering the jth input port and then falling into the ith output port is recorded as a. ij , then the matrix A3 can represent the probability transfer matrix of the simulation device. Each time, 3 balls are put into the 3 input ports at the same time, and then the number of balls falling into the output port is observed to form a sample. The kth sample is recorded as For example, S k=[3,0,0] means that all three balls fall into the first output port, S k =[2,0,1] means that 2 balls fall into the first output port and 1 ball falls into the third output port.

[0104] When a ball falls into each output port, the sample is represented by S0 = [1, 1, 1]. Figure 6 is a schematic diagram of a simulation device according to an exemplary embodiment. As shown in Figure 6, there are a total of 6 combinations to generate this sample. The probability of each combination corresponds to a term in the three-dimensional matrix product-sum formula. Therefore, the probability of sample S0 occurring is the product-sum formula of matrix A3, which satisfies: Pr(S0) = Per(A3)

[0105] Among them, Pr(S0) represents the probability of sample S0 occurring, and Per(A3) represents the product sum formula of matrix A3.

[0106] The above calculation method of the three-dimensional matrix product sum formula can be extended to the calculation of the high-dimensional matrix product sum formula A. Therefore, calculating the product sum formula of the target matrix is ​​to calculate the probability of the occurrence of sample S0, where sample S0 is N small balls put in from N input ports and N output ports each drop a small ball. Repeat the above process, and the number of samples with S0 = [1,1,1] divided by the total number of experiments can be used to obtain Pr(S0). The total number of samples is recorded as N Total , the number of times sample S0 appears is recorded as but:

[0107] According to the permutations and combinations, the total number of output samples obtained from N input ports and N output ports is By counting the number of times sample S0 appears, the product-sum formula of the target matrix A can be estimated through simulation.

[0108] In step S502, the first preset formula is:

[0109] Among them, S i represents the i-th sample of Bose sampling, Pr(S i ) represents the probability of the i-th sample, B i represents the transformation matrix corresponding to the i-th sample, |B i | 2 represents the target matrix, Per(|B i | 2 ) represents the product-sum formula of the target matrix, represents the number of photons at the kth output port in the i-th sampling sample.

[0110] According to the number of photons at each output port in the i-th sampling sample and the unitary transformation matrix B, the transformation matrix B corresponding to the sampling sample is obtained. i , according to the transformation matrix B i Get the target matrix A, that is |B i | 2 After the product-sum formula of the target matrix A is calculated by the simulation method described in step S501, the probability of the i-th sample can be calculated according to the first preset formula.

[0111] In an exemplary embodiment, FIG7 is a flow chart of a method for determining the product-sum formula of the target matrix in step S501 according to an exemplary embodiment. As shown in FIG7 , the method includes the following steps:

[0112] Step S701, generating a set corresponding one-to-one to the columns of the target matrix, wherein the set includes N subintervals connected in sequence and covers [0, 1];

[0113] Step S702, performing the following sampling process multiple times to generate multiple samples: generating random probability values ​​corresponding to columns of the target matrix, and determining the position identification number of the subinterval to which the random probability value belongs in the set corresponding to the corresponding column;

[0114] Step S703 , statistically analyzing the occurrence probability of a set sample in multiple samples, and using the occurrence probability as the product sum of the target matrix, wherein the set sample is: any two sequence numbers of the N position identification numbers of the random probability values ​​corresponding to the N columns are different from each other.

[0115] Since the target matrix It is converted from the unitary matrix B. According to the properties of the unitary matrix, the sum of all elements in each column of the target matrix A is 1, that is:

[0116] Among them, i represents the i-th row of the target matrix, j represents the j-th column of the target matrix, and the matrix element a in the target matrix ij represents the probability that the j-th ball falls into the i-th output port.

[0117] According to the element values ​​of each column in the target matrix, a set corresponding to the columns of the target matrix is ​​generated. In each set, the value range [0,1] is divided into N subintervals. Each subinterval is a probability interval formed by the element values ​​in the column of the target matrix. The length of each subinterval is a ij Each subinterval in each set corresponds one-to-one to an element in the corresponding column, and the position of the subinterval in the N subintervals is the same as the position of the corresponding element in the N elements in the column.

[0118] In one example, FIG8 is a line segment diagram of each set according to an exemplary embodiment. As shown in FIG8 , a set corresponding to the j-th column of the target matrix is ​​generated, in which the value range [0,1] is divided into multiple subintervals, and the subinterval a j1 The length of is the value of the first matrix element in the jth column of the target matrix, and the subinterval a j2 The length of is the value of the second matrix element in the jth column of the target matrix, and the subinterval a jk The length of is the value of the kth matrix element in the jth column of the target matrix, and the subinterval a jN The length of is the value of the Nth matrix element in the jth column of the target matrix, then the value range of the first subinterval is [0, a j1 ], the range of the second subinterval is [a j1 , a j1 +a j2 ], the value range of the kth subinterval is [a j1 +a j2 +…++a j(k-1) , a j1 +a j2 +…++a jk ], the value range of the Nth subinterval is [a j1 +a j2 +…++a j(N-1) , 1].

[0119] Execute multiple sampling processes to generate multiple samples: generate random probability values ​​corresponding to the columns of the target matrix one by one, and determine the position identification number of the subinterval to which the random probability value belongs in the set corresponding to the corresponding column.

[0120] In one example, the random probability value p corresponding to the jth column of the target matrix is ​​generated. j , random probability value p j Obey the uniform distribution between [0, 1] and determine the random probability value p j The position identification number of the subinterval in the set corresponding to column j, for example, a j1 <p j j1 +a j2 When , it means that the random probability value belongs to the second subinterval in the set corresponding to the jth column. Perform the above process multiple times to obtain the position identification number of the subinterval to which the random probability value of each column of the target matrix belongs in the set of the corresponding column.

[0121] ​The product-sum formula of the target matrix is ​​equal to the probability of a sample with a ball at each output port, that is, any two serial numbers in the N position identification numbers of the random probability values ​​corresponding to the N columns of the target matrix are different from each other, and any two serial numbers in the N position identification numbers of the random probability values ​​corresponding to the N columns are different from each other as set samples. The probability of occurrence of the set samples in the multiple samples generated is statistically calculated, and this probability of occurrence is the product-sum formula of the target matrix.

[0122] For example, the target matrix is:

[0123] The set corresponding to the first column of the target matrix is ​​{0.4, 0.2, 0.4}, the length of the first subinterval is 0.4, the value range is [0, 0.4], the length of the second subinterval is 0.2, the value range is [0.4, 0.6], the length of the third subinterval is 0.4, the value range is [0.6, 1]; the set corresponding to the second column of the target matrix is ​​{0.3, 0.4, 0.3}, the length of the first subinterval is 0.3, the value range is [0, 0.3], the length of the third subinterval is 0.4, the value range is [0.6, 1]; The length of the second subinterval is 0.4, and the value range is [0.3, 0.7]. The length of the third subinterval is 0.3, and the value range is [0.7, 1]. The set corresponding to the third column of the target matrix is ​​{0.5, 0.4, 0.1}, the length of the first subinterval is 0.5, and the value range is [0, 0.5]. The length of the second subinterval is 0.4, and the value range is [0.5, 0.9]. The length of the third subinterval is 0.1, and the value range is [0.9, 1].

[0124] For a sample: the random probability value corresponding to the first column is 0.5, belonging to the second subinterval; the random probability value corresponding to the second column is 0.2, belonging to the first subinterval; the random probability value corresponding to the third column is 0.95, belonging to the third subinterval. If the position identification number of the subinterval corresponding to the random probability value generated for each column is different, then this sample is the set sample. Generate the random probability value for each column multiple times and determine the position identification number of the subinterval to which the random probability value for each column belongs to obtain multiple samples. The probability of occurrence of the set sample is calculated as the product sum formula of the target matrix.

[0125] In order to verify the accuracy of the above-mentioned matrix product-sum calculation method, the product-sum formulas of 6-dimensional matrices to 9-dimensional matrices are respectively calculated through the computing platform, and then the product-sum formulas of 6-dimensional matrices to 9-dimensional matrices are obtained through the above-mentioned simulation method. Figure 9 is a schematic diagram comparing the calculation results of the matrix product-sum formula according to an exemplary embodiment. As shown in Figure 9, it can be seen that the matrix product-sum formula calculated by sampling the above-mentioned simulation method is exactly the same as the matrix product-sum formula calculated by the computing platform. Therefore, the above-mentioned simulation method can estimate the matrix product-sum formula.

[0126] The above simulation method can be used to estimate the product-sum formula of matrices with dimensions greater than 12. For example, a 12-dimensional matrix is ​​as follows:

[0127] The product-sum formula can be estimated by the method disclosed in this disclosure to be 1.0630665884e-04;

[0128] A 15-dimensional matrix looks like this:

[0129] The product-sum formula can be estimated to be 6.1579271470e-06 using the method disclosed in the present invention.

[0130] In an exemplary embodiment, the preset formula in step S103 includes a second preset formula. FIG10 is a flow chart of a method for determining the probability of a sample in Bose sampling according to a target matrix and a preset formula in step S103 according to an exemplary embodiment, as shown in FIG10 , including the following steps:

[0131] Step S1001, obtaining the number of sampling processes that generate each sample in Bose sampling;

[0132] Step S1002, determining the probability of the sampling process of each sample based on the target matrix;

[0133] Step S1003 , determining the probability of each sampling sample in Bose sampling according to the number of sampling processes of each sampling sample, the probability of the sampling process and a second preset formula.

[0134] During the process of generating a sample, multiple sampling processes may output the same sample. Each sampling process for a sample is a different combination that produces the sample. For example, for three-dimensional Bose sampling, the sampling sample S0 = [1,1,1] indicates that each output port outputs a photon. Figure 6 shows the different combinations that produce the sample. Each combination is a sampling process for the sample. Therefore, the number of sampling processes for the sample S0 = [1,1,1] is 6.

[0135] For any sample The number of sampling processes for each sampling sample is obtained by the following formula:

[0136] Among them, S i Indicates the i-th sample of Bose sampling, Num_P(S i ) represents the number of sampling processes for the i-th sample, represents the number of photons at the kth output port in the i-th sampling sample.

[0137] For example, using the above formula, the sample S k =[3,0,0], then only one sampling process can produce this sampling sample.

[0138] Each sampling process also has its probability of occurrence, and its probability is the product of the probability of the corresponding combination of events. For example, a sampling process of the sampling sample S0 = [1,1,1] is: the first photon falls into the first output port, the second photon falls into the second output port, and the third photon falls into the third output port. The probability of the sampling process is the product of the probability of the first photon falling into the first output port, the probability of the second photon falling into the second output port, and the probability of the third photon falling into the third output port. Since the element a in the target matrix is ij It can express the probability that the jth photon falls into the i-th output port, so the probability of the sampling process can be expressed as a 11 ·a 22 ·a 33 Therefore, for any sample Based on its corresponding target matrix, the probability of each sampling process of the sampling sample can be obtained.

[0139] For any sample After obtaining the number of sampling processes and the probability of the sampling process of the sample, the probability of the sample in Bose sampling is determined by the following formula, i.e., the second preset formula:

[0140] Among them, S i represents the i-th sample of Bose sampling, Pr(S i ) represents the probability of the i-th sample, Process i It represents the probability of the first sampling process that occurs during the simulation of generating the i-th sampling sample.

[0141] It should be noted that we use the probability of a single sampling process Process i To approximate the probability of all sampling processes of the sampling sample, this method will obtain the probability upper limit of the sample with high probability in the sampling sample set.

[0142] It should be noted that in the present disclosure, the probability of the sampling samples of Bose sampling can be calculated based on the first preset formula and the second preset formula. However, when using the first preset formula for calculation, it will be limited by computing resources. The second preset formula simplifies the calculation process and can more conveniently estimate the upper limit of the probability of the sampling samples of Bose sampling in higher dimensions.

[0143] In an exemplary embodiment of the present disclosure, a device for simulating Bose sampling is provided. FIG11 is a block diagram of the device for simulating Bose sampling according to an exemplary embodiment, as shown in FIG11 , comprising:

[0144] The first determining module 1101 is configured to determine a unitary transformation matrix of the interference network according to the number of ports N of the interference network of the Bose sampling system, where the unitary transformation matrix is ​​an N-order unitary matrix;

[0145] A second determining module 1102 is configured to determine a target matrix according to the unitary transformation matrix, where each element in the target matrix is ​​the square of the modulus of the element at the same position in the unitary transformation matrix;

[0146] The third determining module 1103 is configured to determine the probability of the sample in Bose sampling according to the target matrix and a preset formula, where the preset formula represents the relationship between the target matrix and the probability of the sample;

[0147] Among them, Bose sampling includes all-identical-photon Bose sampling and all-non-identical-photon Bose sampling.

[0148] In an exemplary embodiment, the preset formula includes a first preset formula;

[0149] The third determining module 1103 is further configured to:

[0150] Determine the product-sum formula of the target matrix;

[0151] The probability of sampling samples in Bose sampling is determined according to the product-sum formula of the target matrix and the first preset formula.

[0152] In an exemplary embodiment, the third determining module 1103 is further configured to:

[0153] Generate a set that corresponds one-to-one to the columns of the target matrix. The set includes N subintervals connected in sequence, and the set covers [0,1].

[0154] Perform the following sampling process multiple times to generate multiple samples: generate random probability values ​​corresponding to the columns of the target matrix, and determine the position identification number of the subinterval to which the random probability value belongs in the set corresponding to the corresponding column;

[0155] The occurrence probability of a set sample in multiple samples is statistically set, and the occurrence probability is used as the product sum of the target matrix. The sample is set as follows: any two serial numbers of the N position identification numbers of the random probability values ​​corresponding to the N columns are different.

[0156] In an exemplary embodiment, the third determining module 1103 is further configured to:

[0157] Each subinterval in each set corresponds one-to-one to an element in the corresponding column, and the position of the subinterval in the N subintervals is the same as the position of the corresponding element in the N elements of the column.

[0158] In an exemplary embodiment, the third determining module 1103 is further configured to:

[0159] The first preset formula is:

[0160] Among them, S i represents the i-th sample of Bose sampling, Pr(S i ) represents the probability of the i-th sample, B i represents the transformation matrix of the unitary transformation matrix corresponding to the i-th sample, |B i | 2 represents the target matrix, Per(|B i | 2 ) represents the product-sum formula of the target matrix, represents the number of photons at the kth output port in the i-th sampling sample.

[0161] In an exemplary embodiment, the preset formula includes a second preset formula;

[0162] The third determining module 1103 is further configured to:

[0163] Get the number of sampling processes that produce each sample in Bose sampling;

[0164] Based on the target matrix, determine the probability of the sampling process for each sample;

[0165] The probability of each sampling sample in Bose sampling is determined according to the number of sampling processes of each sampling sample, the probability of the sampling process and a second preset formula.

[0166] In an exemplary embodiment, the third determining module 1103 is further configured to:

[0167] The number of sampling processes for each sampling sample is obtained by the following formula:

[0168] Among them, S i Indicates the i-th sample of Bose sampling, Num_P(S i ) represents the number of sampling processes for the i-th sample, represents the number of photons at the kth output port in the i-th sampling sample;

[0169] The second preset formula is:

[0170] Among them, Si represents the i-th sample of Bose sampling, Pr(S i ) represents the probability of the i-th sample, Process i It represents the probability of the first sampling process that occurs during the simulation of generating the i-th sampling sample.

[0171] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0172] FIG12 is a block diagram showing an apparatus 1200 for simulating Bose sampling according to an exemplary embodiment.

[0173] 12 , device 1200 may include one or more of the following components: a processing component 1202 , a memory 1204 , a power component 1206 , a multimedia component 1208 , an audio component 1210 , an input / output (I / O) interface 1212 , a sensor component 1214 , and a communication component 1216 .

[0174] The processing component 1202 generally controls the overall operation of the device 1200, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 1202 may include one or more modules to facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 may include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.

[0175] The memory 1204 is configured to store various types of data to support the operation of the device 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phone book data, messages, pictures, videos, etc. The memory 1204 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0176] The power supply component 1206 provides power to the various components of the device 1200. The power supply component 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 1200.

[0177] The multimedia component 1208 includes a screen that provides an output interface between the device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1208 includes a front camera and / or a rear camera. When the device 1200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0178] The audio component 1210 is configured to output and / or input audio signals. For example, the audio component 1210 includes a microphone (MIC) that is configured to receive external audio signals when the device 1200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, the audio component 1210 further includes a speaker for outputting audio signals.

[0179] I / O interface 1212 provides an interface between processing component 1202 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.

[0180] The sensor assembly 1214 includes one or more sensors for providing various aspects of the status assessment of the device 1200. For example, the sensor assembly 1214 can detect the open / closed state of the device 1200, the relative positioning of components, such as the display and keypad of the device 1200. The sensor assembly 1214 can also detect changes in the position of the device 1200 or a component of the device 1200, the presence or absence of user contact with the device 1200, the orientation or acceleration / deceleration of the device 1200, and changes in the temperature of the device 1200. The sensor assembly 1214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 can also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0181] The communication component 1216 is configured to facilitate wired or wireless communication between the device 1200 and other devices. The device 1200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0182] In an exemplary embodiment, the apparatus 1200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described methods.

[0183] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1204 including instructions, which can be executed by the processor 1220 of the apparatus 1200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0184] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device, enables the device to perform a method of simulating Bose sampling, the method of simulating Bose sampling including any of the above methods.

[0185] The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present disclosure. Industrial Applicability

[0186] The key generation method provided in the embodiment of the present disclosure converts the unitary transformation matrix into a target matrix. Based on the target matrix and a preset formula, it can simulate and calculate each sampling sample of Bose sampling and estimate the probability of each sampling sample, thereby achieving the technical effect of quantitatively evaluating the output results of the "Jiuzhang" quantum computer.

Claims

1. A method for simulating Bose sampling, in, The method for simulating Bose sampling comprises: According to the number of ports N of the interference network of the Bose sampling system, determining the unitary transformation matrix of the interference network, wherein the unitary transformation matrix is ​​an N-order unitary matrix; Determine a target matrix according to the unitary transformation matrix, wherein each element in the target matrix is ​​the square of the modulus of the element at the same position in the unitary transformation matrix; Determine the probability of a sample in Bose sampling according to the target matrix and a preset formula, wherein the preset formula represents a relationship between the target matrix and the probability of the sample; Among them, the Bose sampling includes all identical photon Bose sampling and all non-identical photon Bose sampling.

2. The method for simulating Bose sampling according to claim 1, in, The preset formula includes a first preset formula; Determining the probability of sampling samples in Bose sampling according to the target matrix and a preset formula includes: Determining a product-sum formula of the target matrix; The probability of sampling samples in Bose sampling is determined according to the product-sum formula of the target matrix and the first preset formula.

3. The method for simulating Bose sampling according to claim 2, in, Determining the product-sum formula of the target matrix includes: Generate a set corresponding to the columns of the target matrix one by one, the set including N subintervals connected in sequence, and the set covers [0, 1]; Execute the following sampling process multiple times to generate multiple samples: generate random probability values ​​corresponding to the columns of the target matrix one by one, and determine the position identification number of the sub-interval to which the random probability value belongs in the set corresponding to the corresponding column; The occurrence probability of a set sample in the multiple samples is statistically calculated, and the occurrence probability is used as the product-sum formula of the target matrix. The set sample is: any two serial numbers of N position identification numbers of random probability values ​​corresponding to N columns are different.

4. The method for simulating Bose sampling according to claim 3, in, The method for simulating Bose sampling also includes: Each of the subintervals in each of the sets corresponds one-to-one to an element in the corresponding column, and the position of the subinterval in the N subintervals is the same as the position of the corresponding element in the N elements in the column.

5. The method for simulating Bose sampling according to claim 2, in, The determining the probability of sampling samples in Bose sampling according to the product-sum formula of the target matrix and the first preset formula includes: The first preset formula is: Among them, S i represents the i-th sample of Bose sampling, Pr(S i ) represents the probability of the i-th sample, B i represents the transformation matrix of the unitary transformation matrix corresponding to the i-th sample, |B i | 2 represents the target matrix, Per(|B i | 2 ) represents the product-sum formula of the target matrix, Represents the number of photons at the kth output port in the i-th sampling sample.

6. The method for simulating Bose sampling according to claim 1, in, The preset formula includes a second preset formula; Determining the probability of sampling samples in Bose sampling according to the target matrix and a preset formula includes: Obtaining the number of sampling processes that generate each of the sampling samples in Bose sampling; Based on the target matrix, determining the probability of the sampling process for each of the sampling samples; The probability of each of the sampling samples in Bose sampling is determined according to the number of the sampling processes of each of the sampling samples, the probability of the sampling process and the second preset formula.

7. The method for simulating Bose sampling according to claim 6, in, The method for simulating Bose sampling also includes: The number of sampling processes for each of the sampling samples is obtained by the following formula: Among them, S i Indicates the i-th sample of Bose sampling, Num_P(S i ) represents the number of sampling processes of the i-th sampling sample, represents the number of photons at the kth output port in the i-th sampling sample; The second preset formula is: Among them, S i represents the i-th sample of Bose sampling, Pr(S i ) represents the probability of the i-th sample, Process i It represents the probability of the sampling process that occurs first in the process of simulating the generation of the i-th sampling sample.

8. A device for simulating Bose sampling, in, The device for simulating Bose sampling comprises: A first determination module is configured to determine a unitary transformation matrix of the interference network according to the number of ports N of the interference network of the Bose sampling system, wherein the unitary transformation matrix is ​​an N-order unitary matrix; A second determination module is configured to determine a target matrix according to the unitary transformation matrix, wherein each element in the target matrix is ​​the square of the modulus of the element at the same position in the unitary transformation matrix; A third determination module is configured to determine the probability of the sampled sample in Bose sampling according to the target matrix and a preset formula, wherein the preset formula represents a relationship between the target matrix and the probability of the sampled sample; Among them, the Bose sampling includes all identical photon Bose sampling and all non-identical photon Bose sampling.

9. A device for simulating Bose sampling, in, The device for simulating Bose sampling comprises: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium, in, When the instructions in the storage medium are executed by a processor of a device, the device is enabled to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Glass color sampling simulation method and system considering photon loss and medium

    CN112560280A

  • Glass color sampling simulation method and system under photon loss

    CN114330728A

  • Simulation glass color sampling method and device and storage medium

    CN116341252A