A segmentation method, device, equipment and medium for Josephson array
The Josephson array segmentation method allows for integer expression calculations beyond binary and ternary systems by comparing and selecting elements from a source array to achieve precise voltage output.
Patent Information
- Application Number
- CN202410077418.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-01-18
AI Technical Summary
Existing Josephson array segmentation methods are limited to binary or ternary algorithms, restricting their use for integer expression calculations and making them difficult to apply for non-integer base source arrays.
A method involving segmented summation of a source array to form a new array, comparing the target number of junctions with each element to satisfy preset relationships, and selecting elements from the source array to form a target combination, applicable to binary, ternary, and non-integer systems.
Enables integer expression calculations across different bases, including non-integer systems, by efficiently determining the required Josephson junctions for a given voltage output.
Smart Images

Figure CN118034639B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of measurement and testing, and in particular relates to a segmentation method, device, equipment and medium of a Josephson array. Background Art
[0002] By dividing the Josephson array into segments using binary or ternary methods and adjusting the array operating frequency appropriately, the array can output a voltage of any value within a certain range. n (n=0,1,2,3…N) of N segments (N is an integer), then if the required number of knots m is located Between, then, b n is the binary state symbol, when m>0, b n It can be selected as 0 or 1. When m<0, b n There are two states that can be selected: -1 and 0.
[0003] For example, the ternary segmentation method divides the array into 3 n (n=0,1,2,3…N) of N segments (N is an integer), then if the required number of knots m is located Then, b n is the binary state symbol. At this time, no matter how positive or negative the sign of m is, b n There are three states: -1, 0, and 1. However, the binary or ternary integer expression algorithm in the prior art is limited to binary algorithm or ternary algorithm. Therefore, it has many restrictions on use and cannot be used for integer expression calculation between different bases, and it is even more difficult to be used for integer expression calculation based on non-integer base source array. Summary of the invention
[0004] In order to overcome the above problems existing in the prior art, the present invention provides a Josephson array segmentation method, device, equipment and medium.
[0005] A segmentation method for a Josephson array, the method comprising:
[0006] S1. Given a source array a n , and perform segmented summation on the source array to obtain a new array Wherein, n=0, 1, 2, 3 ... N, and the number of elements of the source array and the new array is the same;
[0007] S2. The number of Josephson junctions corresponding to the target voltage value is given as the target number of junctions m;
[0008] S3. Add the target number of knots m to each element c in the new array nCompare and determine whether the first preset relationship is satisfied. If so, select the element c n The corresponding source array a n As the first array element expressing the target number of knots m, repeat this step to obtain the first array element group expressing the target number of knots m;
[0009] S4. Subtract the target number of nodes m from each element in the first array element group to obtain a difference, and compare the difference with each element c in the new array. n Compare and determine whether the second preset relationship is satisfied. If so, select the element c n The corresponding source array a n Repeat this step for the second array element expressing the target number of knots m;
[0010] S5. Determine whether the difference satisfies the constraint condition. If so, stop comparing and use the second array element group formed by all the second array elements as the target combination.
[0011] According to the above aspects and any possible implementation, a further implementation is provided, wherein the source array a n It is binary, ternary or non-integer base.
[0012] According to the above aspects and any possible implementation, an implementation is further provided, wherein the target number of junctions m is obtained by: at a given target operating frequency, obtaining the number of junctions of the Josephson junction array corresponding to the target voltage value as the target number of junctions.
[0013] According to the above aspects and any possible implementation, a further implementation is provided, wherein the preset relationship in S3 is c n-1 ≤m <c n , where c n-1 and c n are two adjacent elements in the new array.
[0014] According to the above aspect and any possible implementation, there is further provided an implementation, wherein the second preset relationship is c n-1 ≤Difference<c n , where c n-1 and c n are two adjacent elements in the new array.
[0015] According to the above aspects and any possible implementation, an implementation is further provided, wherein the constraint condition is that the difference is smaller than the first element a0 of the source array.
[0016] According to the above aspects and any possible implementation method, an implementation method is further provided, if the first preset relationship is not satisfied in S3, or if the second preset relationship is not satisfied in S4, the work is terminated.
[0017] The present invention also provides a Josephson array segmentation device, the device is used to implement the method, wherein the device comprises: a first given module, used to give a source array a n , and perform segmented summation on the source array to obtain a new array Wherein, n=0, 1, 2, 3..., and the number of elements of the source array and the new array is the same;
[0018] The second given module is used to give the number of Josephson junctions corresponding to the target voltage value as the target number of junctions m;
[0019] The first comparison module is used to compare the target number of knots m with each element c in the new array. n Compare and determine whether the first preset relationship is satisfied. If so, select the element c n The corresponding source array a n As the first array element expressing the target number of knots m, repeat the comparison to obtain the first array element group expressing the target number of knots m;
[0020] The second comparison module is used to subtract the target number of nodes m from each element in the first array element group to obtain a difference value, and compare the difference value with each element c in the new array. n Compare and determine whether the second preset relationship is satisfied. If so, select the element c n The corresponding source array a n Repeat the comparison for the second array element expressing the target number of knots m;
[0021] The constraint module is used to determine whether the difference satisfies the constraint conditions at the same time. If so, the comparison is stopped and the second array element group formed by all the second array elements is used as the target combination.
[0022] The present invention further provides an electronic device, comprising:
[0023] A memory storing executable instructions;
[0024] A processor is used to execute the executable instructions in the memory to implement the method described in the present invention.
[0025] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method described in the present invention is implemented.
[0026] Beneficial effects of the present invention
[0027] Compared with the prior art, the present invention has the following beneficial effects:
[0028] The Josephson node array segmentation method of the present invention firstly gives a source array, processes it to obtain a new array, compares the target number of nodes with each element in the new array according to a certain relationship, selects elements that meet the conditions from the source array according to the comparison result, and finally obtains the target combination array. The source array can be not only binary and ternary, but also a special non-integer system. The method of the present invention is based on the arrays of the above three systems can be integer expression. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a flow chart of the method of the present invention;
[0030] Figure 2 This is a schematic diagram of the process of Example 1 of the present invention;
[0031] Figure 3 This is a schematic diagram of the process of Embodiment 2 of the present invention;
[0032] Figure 4 Schematic diagram of generating programmable quantum voltage according to the present invention. DETAILED DESCRIPTION
[0033] In order to better understand the technical solution of the present invention, the content of the present invention includes but is not limited to the specific implementation methods described below, and similar technologies and methods should be considered to be within the scope of protection of the present invention. In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will be described in detail with reference to the accompanying drawings and specific embodiments.
[0034] It should be clear that the embodiments described in the present invention are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0036] like Figure 1 As shown, the Josephson array segmentation method provided by the present invention, for an integer m and a complete array a n , d=m in the figure, and the following operation process is performed. The method includes:
[0037] S1. Given a source array a n , and perform the segmented summation on the source array to obtain a new array. The formula is Where n = 0, 1, 2, 3 ..., from the new array algorithm formula, it can be seen that the number of elements in the source array and the new array is the same, and array a n is an integer;
[0038] S2. Given the number of Josephson junctions corresponding to the target voltage value, as the target number of junctions m, where m is an integer, it can be expressed as a n is the source array, n=0,1,2,3…, b n Take 0, 1 and -1;
[0039] S3. Add the target number of knots m to each element c in the new array n Compare and determine whether the first preset relationship is satisfied. If so, select the element c n The corresponding source array a n As the first array element expressing the target number of nodes m, repeat this step to obtain the first array element group expressing the target number of nodes m; that is, determine the positive and negative signs of the integer m, positive voltage corresponds to positive numbers, and negative voltage corresponds to negative numbers, and assign the value of the positive and negative sign to s (s=1 for positive values, s=-1 for negative values, and s=0 for negative values); if m<0, then make m=|m| take the absolute value.
[0040] S4. Compare the assigned m with each element C in the new array n Compare and determine whether the first preset relationship is satisfied. If so, select the element C n The corresponding source array a n As the first element expressing the target number of knots m; the corresponding first element expansion coefficient b n =s.
[0041] S4. Subtract the target number of knots m from the first element to get the difference, determine the sign of the difference again, multiply it by the previous value of s, and assign it to s. If the difference is less than 0, take the absolute value of the difference and then multiply it by each element C in the new array. n Compare and determine whether the second preset relationship is satisfied. If so, select the element c n The corresponding source array a n is the second element expressing the target number of knots m; the corresponding second element expansion coefficient b n =s.
[0042] S5. Determine whether the difference satisfies the constraint condition. If not, further subtract the difference from the second element, determine the positive and negative signs, and then further subtract the difference from the second element. nThe arrays are compared to form the third element, and step S4 is repeated. If yes, the comparison is stopped, and the array formed by multiplying all the obtained first, second, etc. element groups and the corresponding expansion coefficients is used as the target combination expressing the integer m.
[0043] Furthermore, the source array a n It is binary, ternary or non-integer base.
[0044] Furthermore, the target number of junctions m is obtained by: at a given target operating frequency, the number of junctions of the Josephson junction array corresponding to the target voltage value is obtained as the target number of junctions, and the voltage output of the programmable Josephson junction array is calculated according to the formula: Get, where K J is the Josephson constant, m is the number of Josephson junctions that select the output voltage, and f is the operating frequency of the junction array. m is an integer rather than an array.
[0045] Furthermore, the preset relationship in S3 is c n-1 ≤m <c n , where c n-1 and c n are two adjacent elements in the new array.
[0046] Furthermore, the second preset relationship is c n-1 ≤Difference<c n , where c n-1 and c n are two adjacent elements in the new array.
[0047] Furthermore, the constraint condition is that the difference is smaller than the first element a0 of the source array.
[0048] Furthermore, if the first preset relationship is not satisfied in S3, or if the second preset relationship is not satisfied in S4, the work is terminated.
[0049] Specifically, the operation process of the present invention is as follows: The method of the present invention is based on the comparison method, and the segmentation matching the target number of knots is found by the comparison method, so it is applicable to the binary and ternary segmentation methods as well as the non-integer segmentation method. The specific steps are as follows:
[0050] The first step is to have a complete source array whose elements satisfy the relationship 0<a n-1 <a n+1 / 3≤a n ≤3a n-1 , sum the source array piecewise to form a new summation array, the new array has the same number of elements as the source array, the source array is a n , n=0,1,2,3…, the new array obtained by segmentally summing the source array is n=0,1,2,3…;
[0051] The second step is to set the target value m, First, there is a desired output voltage V, and then the operating frequency is also a known value, K J is a constant, and can be obtained by calculation and each element c in the new array n (n=0,1,2,3…) Compared with, if the target value satisfies the relationship c n-1 ≤m <c n , then select a n An array element representing m.
[0052] Step 3, by repeating step 2, and all c n After comparison, there will only be one c n Satisfy the conditions, not many, subtract a from m n ,m'=ma n The remainder or difference is obtained, and the remainder or difference is added to the array element c n (n=0,1,2,3…N) comparison, c n-1 ≤Difference<c n , after comparison, an element is selected. If the difference minus the selected element is compared with a0 and is greater than a0, repeat this step and continue to select the next element expressing m;
[0053] Step 4: Repeat step 3 until the remainder or difference is less than a0, and all array elements a that can express m are found. n .
[0054] The following is described using specific embodiments:
[0055] like Figure 2 As shown, a ternary programmable Josephson junction array is segmented, and the source array is: 4, 12, 36, 108, 324, 972, 2916, 8748. Then, the segmentation method of the present invention is used to match a target value, so that the array operates at around 19 GHz and outputs a voltage of 0.4047 volts. According to calculation, it can be obtained that about 10300 Josephson junctions are required as the target number of junctions m. According to the operation of the first step above, a new array is obtained: 8, 20, 56, 164, 488, 1460, 4376, 13124. According to the operation of the second step, 10300 is compared with each element in the new array. It is found that 4376<10300<13124, so a in the source array is selected. n The value 8748 is used as one of the expression elements of the target number of knots m; the third step is to compare m with a nMake the difference, that is, 10300-8748=1522, and then compare 1522 with each element in the new array. It is found that 1460<1522<4376, then further select 2916 in the source array corresponding to the element 4376 of the new array as one of the expression elements of the target number of knots m, and repeat the third step until the remainder or difference is less than a0. The final target combination generated is: 8478, 2916, -972, -324, -108, 36, 4. The negative number is caused by an expansion coefficient bn.
[0056] Embodiment 2:
[0057] A complete non-integer programmable Josephson junction array is divided into segments: 1, 3, 8, 20, 50, 140, 400, 1150, 2880, 8600. These segments are then used to match a target value, so that the array operates at around 19 GHz and outputs a voltage of 0.4047 volts. According to the voltage output formula in the previous section, it can be calculated that approximately 10300 Josephson junctions are required. The calculation process is as follows: Figure 3 As shown, the final target combination is: 8600, 1150, 140, 400, 8, 3, 1.
[0058] The segmented method of the present invention is applied in the generation of programmable quantum voltage and achieves very good results. Figure 4 As shown, the input is 0.4047 volts. First, it is calculated that the number of required junction digits is 10300. Then the segmentation method of the present invention is called to select the ternary junction element combination, fine-tune the microwave frequency, and then output a voltage of 0.4047 volts.
[0059] As an embodiment disclosed in the present invention, a segmentation device of a Josephson array is also provided, which is used to implement the method of the present invention, wherein the device comprises: a first given module, which is used to give a source array a n , and perform segmented summation on the source array to obtain a new array Wherein, n=0, 1, 2, 3 ... N, and the number of elements of the source array and the new array is the same;
[0060] The second given module is used to give the number of Josephson junctions corresponding to the target voltage value as the target number of junctions m;
[0061] The first comparison module is used to compare the target number of knots m with each element c in the new array. n Compare and determine whether the first preset relationship is satisfied. If so, select the element c n The corresponding source array a n As the first array element expressing the target number of knots m, repeat the comparison to obtain the first array element group expressing the target number of knots m;
[0062] The second comparison module is used to subtract the target number of nodes m from each element in the first array element group to obtain a difference value, and compare the difference value with each element c in the new array. n Compare and determine whether the second preset relationship is satisfied. If so, select the element c n The corresponding source array a n Repeat the comparison for the second array element expressing the target number of knots m;
[0063] The constraint module is used to determine whether the difference satisfies the constraint conditions at the same time. If so, the comparison is stopped and the second array element group formed by all the second array elements is used as the target combination.
[0064] As an embodiment disclosed in the present invention, an electronic device is also provided, the electronic device comprising:
[0065] A memory storing executable instructions;
[0066] A processor is used to execute the executable instructions in the memory to implement the method described in the present invention.
[0067] As an embodiment disclosed in the present invention, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the present invention is implemented.
[0068] The above description shows and describes several preferred embodiments of the present invention, but as mentioned above, it should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the application concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not depart from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.
Claims
1. A segmentation method for a Josephson array, characterized in that: The method comprises: S1. Given source array , and perform segmented summation on the source array to obtain a new array , where n=0,1,2,3…, and the source array and the new array have the same number of elements; S2. The number of nodes of the Josephson node array corresponding to the target voltage value is given as the target number of nodes m, and the target number of nodes m is obtained in the following manner: Under a given target operating frequency, the number of nodes of the Josephson node array corresponding to the target voltage value is obtained as the target number of nodes, and the voltage output of the programmable Josephson node array is calculated according to the formula: Get, where K J is the Josephson constant, m is the target number of Josephson junctions for selecting the output voltage, and m is an integer; S3. Combine the target number of knots m with each element in the new array Compare and determine whether the first preset relationship is satisfied. If so, select the element The corresponding source array As the first array element expressing the target number of knots m, repeat this step to obtain the first array element group expressing the target number of knots m, the first preset relationship is ,in are two adjacent elements in the new array; S4. Subtract the target number of nodes m from each element in the first array element group to obtain a difference, and compare the difference with each element in the new array. Compare and determine whether the second preset relationship is satisfied. If so, select the element The corresponding source array To express the second array element of the target number of nodes m, repeat this step, and the second preset relationship is ,in, are two adjacent elements in the new array; S5. Determine whether the difference satisfies the constraint condition. If so, stop comparing and use the second array element group formed by all the second array elements as the target combination expressing the target number of knots m. The constraint condition is that the difference is less than the first element of the source array. .
2. The Josephson array segmentation method according to claim 1, characterized in that: The source array It is binary, ternary or non-integer base.
3. The Josephson array segmentation method according to claim 1, characterized in that: If the first preset relationship is not satisfied in S3, or if the second preset relationship is not satisfied in S4, the operation is terminated.
4. A Josephson array segmentation device, characterized in that: The device is used to implement the method according to any one of claims 1 to 3, wherein the device comprises: a first given module, used to give a source array , and perform segmented summation on the source array to obtain a new array , where n=0,1,2,3…, and the source array and the new array have the same number of elements; The second given module is used to give the number of Josephson junctions corresponding to the target voltage value as the target number of junctions m. Under the given target operating frequency, the number of Josephson junctions corresponding to the target voltage value is obtained as the target number of junctions. The voltage output of the programmable Josephson junction array is based on the formula: Get, where K J is the Josephson constant, m is the number of Josephson junctions for selecting the output voltage, and m is an integer; The first comparison module is used to compare the target number of knots m with each element in the new array. Compare and determine whether the first preset relationship is satisfied. If so, select the element The corresponding source array As the first array element expressing the target number of nodes m, the comparison is repeated to obtain the first array element group expressing the target number of nodes m, and the first preset relationship is ,in, are two adjacent elements in the new array; The second comparison module is used to subtract the target number of nodes m from each element in the first array element group to obtain a difference, and compare the difference with each element in the new array. Compare and determine whether the second preset relationship is satisfied. If so, select the element The corresponding source array Repeat the comparison for the second array element expressing the target number of knots m; A constraint module is used to determine whether the difference satisfies the constraint condition at the same time. If so, the comparison is stopped, and the second array element group formed by all the second array elements is used as the target combination expressing the target number of knots m. The constraint condition is that the difference is less than the first element of the source array. .
5. An electronic device, characterized in that: The electronic device comprises: A memory storing executable instructions; A processor, wherein the processor runs the executable instructions in the memory to implement the method according to any one of claims 1 to 3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.