A method and device for updating position information of three-bit gates on a quantum computing cloud platform

By introducing the pop-up function and position information update rules into the quantum computing cloud platform, the need for position editing of three-bit gates is solved, the support for quantum computing functions is realized, and the development of quantum computing is promoted.

CN114861920BActive Publication Date: 2024-08-27SHANDONG INSPUR SCI RES INST CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202210377814.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-12
Publication Date
2024-08-27
Estimated Expiration
2042-04-12

AI Technical Summary

Technical Problem

The lack of effective editing operation methods for three-bit gate cross-line position information in the quantum computing cloud platform affects the realization of quantum computing functions.

Method used

Provides a method for updating the position information of a three-bit gate on a quantum computing cloud platform. It introduces a pop-up function in the editing interface through the ElementUI framework to receive and process the position information configuration and update instructions of the three-bit gate. According to the update type (expansion or contraction) and The position type determines the position information update rules and updates the position of the three-bit gate on the quantum register.

Benefits of technology

It enables flexible editing and updating of three-bit gate positions in graphics programming, supports the addition of multi-bit quantum gates, and promotes the implementation and development of quantum computing functions on the quantum computing cloud platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114861920B
    Figure CN114861920B
Patent Text Reader

Abstract

The present invention discloses a method and device for updating the position information of a three-bit gate of a quantum computing cloud platform, which belongs to the field of web front-end and quantum computing technology, and is used to solve the technical problem that there is currently no method that can meet the needs of performing cross-line position information editing operations of a three-bit gate in a quantum computing cloud platform, which is not conducive to the realization of the quantum computing function of the quantum computing cloud platform. The method includes: according to the configured initial position information of the three-bit gate, displaying the three-bit gate at the corresponding position of the quantum register; wherein the three-bit gate is a three-bit quantum gate; receiving the updated position information of the three-bit gate; according to the update type and position type of the three-bit gate, determining the corresponding position information update rule; wherein the update type includes an expansion type and a contraction type; based on the updated position information and the position information update rule, updating the position of the three-bit gate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of web front-end and quantum computing, and in particular to a method and device for updating position information of a three-bit gate on a quantum computing cloud platform. Background Art

[0002] The idea of ​​quantum computing was first proposed by Feynman in the 1980s. It is considered to be a new computing model with a disruptive impact on the future. A quantum computer is a computing system composed of a quantum chip and an external measurement and control system. The quantum computing cloud platform can intuitively provide users with some functions that require the use of quantum computers for calculations, and the editing operation of the cross-line position information of the three-bit gate is an important part of improving the platform's functions.

[0003] Therefore, in the quantum computing cloud platform, there is a high demand for the cross-line position information editing operation of the three-bit gate. When performing graphic programming, the realization of the cross-line position information editing function of the three-bit gate is the most basic requirement. Considering that the three-bit quantum gate needs to cross three lines, the realization of this function requires self-development of methods according to specific needs. However, there is currently no cross-line position information editing operation method for the three-bit gate that can effectively solve this demand, which is not conducive to the realization of the quantum computing function of the quantum computing cloud platform. Summary of the invention

[0004] The embodiments of the present application provide a method and device for updating the position information of a three-bit gate of a quantum computing cloud platform, which is used to solve the following technical problem: Currently, there is no method that can meet the needs of performing cross-line position information editing operations of a three-bit gate in a quantum computing cloud platform, which is not conducive to the realization of the quantum computing function of the quantum computing cloud platform.

[0005] The present application embodiment adopts the following technical solutions:

[0006] On the one hand, an embodiment of the present application provides a method for updating position information of a three-bit gate of a quantum computing cloud platform, the method comprising: displaying the three-bit gate at a corresponding position of a quantum register according to the configured initial position information of the three-bit gate; wherein the bit gate is a quantum bit gate; receiving updated position information of the three-bit gate; determining a corresponding position information update rule according to the update type and position type of the three-bit gate; wherein the update type includes an expansion type and a contraction type; and updating the position of the three-bit gate based on the updated position information and the position information update rule.

[0007] In a feasible implementation, according to the configured initial position information of the three-bit gate, the three-bit gate is displayed at the corresponding position of the quantum register, specifically including: introducing a pop-up window function in the editing interface through the ElementUI framework; after receiving the position configuration instruction of the three-bit gate, popping up the position information configuration pop-up window of the three-bit gate in the editing interface; wherein the position information configuration pop-up window includes the starting position, middle position and end position of the three-bit gate; the starting position, middle position and end position distribution correspond to the quantum register serial number where the first bit gate of the three-bit gate is located, the quantum register serial number where the second bit gate is located, and the quantum register serial number where the third bit gate is located; receiving the initial position information input by the operator in the position information configuration pop-up window, and displaying each bit gate of the three-bit gate on the corresponding quantum register.

[0008] In a feasible implementation, after receiving the initial position information input by the operator in the position information configuration pop-up window and displaying each bit gate in the three-bit gate on the corresponding quantum register, the method further includes: using the initial position information as the current position attribute of the three-bit gate and recording it in the HTML code of the three-bit gate; each time the position information of the three-bit gate is updated, the updated position information is also saved in the HTML code and the current position attribute is replaced, so that when the operator updates the position information, the current position attribute can be obtained and pre-displayed in the input box of the position information configuration pop-up window, prompting the operator of the current position of the three-bit gate.

[0009] In a feasible implementation manner, receiving the updated position information of the three-bit gate specifically includes: after receiving the position update instruction of the three-bit gate, popping up the position information configuration window of the three-bit gate again in the editing interface; and receiving the updated position information input by the operator in the position information configuration window.

[0010] In a feasible implementation manner, the corresponding position information update rule is determined according to the update type and position type of the three-bit gate, specifically including: when there are no other bit gates in the column where the three-bit gate is located, each bit gate of the three-bit gate is updated to the corresponding quantum register according to the update position information.

[0011] In a feasible implementation manner, the corresponding position information update rule is determined according to the update type and position type of the three-bit gate, specifically including: when there are other bit gates in the column where the three-bit gate is located, the update type of the three-bit gate is judged according to the update position information; if the update type is an extended type, and there are other bit gates at the update positions of the three bit gates in the extended three-bit gate, the update position and the original bit gates behind the update position are shifted backward by one position in turn, and each bit gate of the three-bit gate is updated to the corresponding quantum register.

[0012] In a feasible implementation manner, judging the update type of the three-bit gate according to the update position information specifically includes: determining the quantum register sequence number corresponding to the starting position in the update position information as the first update sequence number; determining the quantum register sequence number corresponding to the ending position in the update position information as the second update sequence number; determining the quantum register sequence number corresponding to the starting position in the initial position information or the last update position information as the first current sequence number; determining the quantum register sequence number corresponding to the ending position in the initial position information or the last update position information as the second current sequence number. ; if the first update sequence number is less than the first current sequence number, and the second update sequence number is greater than or equal to the second current sequence number, the update type of the three-bit gate is an expansion type; if the first update sequence number is equal to the first current sequence number, and the second update sequence number is greater than the second current sequence number, the update type of the three-bit gate is an expansion type; if the first update sequence number is greater than the first current sequence number, and the second update sequence number is less than or equal to the second current sequence number, the update type of the three-bit gate is a contraction type; if the first update sequence number is greater than the first current sequence number, and the second update sequence number is less than the second current sequence number, the update type of the three-bit gate is a contraction type.

[0013] In a feasible implementation manner, the corresponding position information update rule is determined according to the update type and position type of the three-bit gate, specifically including: when the update type of the three-bit gate is the contraction type, if there are other bit gates after the three bit gates in the three-bit gate, then according to the update position information, each bit gate of the three-bit gate is updated to the corresponding quantum register respectively; and all the bit gates after the original positions of the three bit gates are translated forward one position in turn.

[0014] In a feasible implementation manner, based on the update position information and the position information update rule, the position of the three-bit gate is updated, specifically including: creating an array in each quantum register, the array being used to store the bit gate information on each quantum register; wherein each element in the array corresponds to a bit gate; according to the update position information and the position information update rule, each bit gate of the three-bit gate is updated to the corresponding quantum register respectively; for the quantum register with the bit gate added, an element insertion operation is performed on the corresponding array; for the quantum register with the bit gate reduced, an element deletion operation is performed on the corresponding array.

[0015] On the other hand, an embodiment of the present application also provides a device for updating the position information of a three-bit gate of a quantum computing cloud platform, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, so that the at least one processor can execute a method for updating the position information of a three-bit gate of a quantum computing cloud platform according to any of the above-mentioned embodiments.

[0016] The embodiments of the present application provide a method and device for updating the position information of a three-bit gate of a quantum computing cloud platform, which provides a new method for adding multi-bit quantum gates in graphic programming for the quantum computing cloud platform, is conducive to the realization of the quantum computing function of the quantum computing cloud platform, and promotes the development of quantum computing. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0018] Figure 1 A flow chart of a method for updating position information of a three-bit gate on a quantum computing cloud platform provided in an embodiment of the present application;

[0019] Figure 2 A schematic diagram of the initial position of a three-bit gate provided in an embodiment of the present application;

[0020] Figure 3 A schematic diagram of a pop-up window for configuring the location information of a three-bit gate provided in an embodiment of the present application;

[0021] Figure 4 A schematic diagram of location type 1 provided in an embodiment of the present application;

[0022] Figure 5A schematic diagram of a location after updating the location type 1 provided in an embodiment of the present application;

[0023] Figure 6 A schematic diagram of location type 2 provided in an embodiment of the present application;

[0024] Figure 7 A schematic diagram of a location after updating the location type 2 provided in an embodiment of the present application;

[0025] Figure 8 A schematic diagram of the structure of a three-bit gate position information updating device for a quantum computing cloud platform provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0027] The embodiment of the present application provides a method for updating the position information of a three-bit gate of a quantum computing cloud platform. The method is based on the VUE front-end development framework, is completed using the JavaScript programming language, and is executed by the quantum computing cloud platform.

[0028] like Figure 1 As shown, the method for updating the position information of the three-bit gate of the quantum computing cloud platform specifically includes steps S101-S104:

[0029] S101. Display the three-bit gate at a corresponding position of the quantum register according to the configured initial position information of the three-bit gate.

[0030] Specifically, firstly, the pop-up window function is introduced in the editing interface of the quantum computing cloud platform through the ElementUI framework. After receiving the position configuration instruction of the three-bit gate, the quantum computing cloud platform pops up the position information configuration pop-up window of the three-bit gate in the editing interface. Among them, the position information configuration pop-up window includes the starting position, middle position and end position of the three-bit gate. The starting position, middle position and end position distribution correspond to the quantum register serial number of the first bit gate in the three-bit gate, the quantum register serial number of the second bit gate, and the quantum register serial number of the third bit gate.

[0031] In one embodiment, Figure 2 A schematic diagram of the initial position of a three-bit gate provided in an embodiment of the present application is shown in FIG. Figure 2As shown in the figure, in the top row of icons, except for the last two icons, the rest of the icons represent different single-bit gates. The English symbols of each icon in the figure are only set for distinction and do not specifically refer to which single-bit gate. The last two icons represent three-bit gates, and each icon represents a different three-bit quantum gate. In the bit gate addition interface, q[0], q[1], q[2], q[3], and q[4] represent five different quantum registers, and the horizontal line after each quantum register represents the space corresponding to each quantum register, which is used to place the bit gate. Click the minus sign on the left to delete the corresponding quantum register, and click the plus sign at the bottom to add a new quantum register. Figure 2 The dotted box in the figure is the three-bit gate 1. Since the three bit gates of the three-bit gate 1 are on the quantum registers q[0], q[1], and q[2] respectively, the initial positions of the three-bit gate 1 are: starting position: 0, middle position: 1, and end position: 2.

[0032] Furthermore, the initial position information input by the operator in the position information configuration pop-up window is received, and each bit gate in the three-bit gate is displayed on the corresponding quantum register.

[0033] In one embodiment, Figure 3 A schematic diagram of a pop-up window for configuring the location information of a three-bit gate provided in an embodiment of the present application. Click Figure 2 The pen-shaped button next to the three-bit door will pop up the Figure 3 The location information configuration pop-up window is shown. Figure 3 As shown in the figure, the position information configuration pop-up window contains three input boxes, namely the starting position, the middle position and the end position. The operator enters the serial number of the quantum register in each input box, and the background can directly display each bit gate of the three-bit gate on the corresponding quantum register.

[0034] It should be noted that the horizontal position of the three-bit gate on the quantum register is determined by the drag position of the operator. The three-bit gate is displayed at the horizontal position where the operator drags the three-bit gate icon. The three-bit gate position mentioned in this application refers to the vertical position of the three-bit gate, that is, on which quantum register the three bit gates in the three-bit gate are located.

[0035] Furthermore, the initial position information is recorded in the HTML code of the three-bit gate as the current position attribute of the three-bit gate. Each time the position information of the three-bit gate is updated, the updated position information is also saved in the HTML code and replaces the current position attribute, so that when the operator updates the position information, the current position attribute can be obtained and pre-displayed in the input box of the position information configuration pop-up window, prompting the operator of the current position of the three-bit gate.

[0036] For example, if the current position is 0, 1, 2, when the operator clicks the edit button, the input box of the pop-up position information configuration window will show the current position of the three-bit door as 0, 1, 2, so that the operator can modify it according to the current position and avoid forgetting the current position of the three-bit door after the pop-up window pops up.

[0037] S102: Receive updated position information of the three-bit gate.

[0038] Specifically, after receiving the position update instruction of the three-bit gate, the position information configuration window of the three-bit gate is popped up again in the editing interface, and then the updated position information input by the operator in the position information configuration window is received.

[0039] As a feasible implementation method, the location update instruction is clicked as follows Figure 2 The pen-shaped button next to the three-bit gate shown in the figure is triggered.

[0040] S103, determining a corresponding location information update rule according to the update type and location type of the three-bit gate;

[0041] First, the update type of the three-bit gate is determined according to the received update position information. Specifically, the quantum register sequence number corresponding to the starting position in the update position information is determined as the first update sequence number. The quantum register sequence number corresponding to the ending position in the update position information is determined as the second update sequence number. The quantum register sequence number corresponding to the starting position in the initial position information or the last update position information is determined as the first current sequence number. The quantum register sequence number corresponding to the ending position in the initial position information or the last update position information is determined as the second current sequence number.

[0042] Further, if the first update sequence number is less than the first current sequence number, and the second update sequence number is greater than or equal to the second current sequence number, the update type of the three-bit gate is an expansion type; if the first update sequence number is equal to the first current sequence number, and the second update sequence number is greater than the second current sequence number, the update type of the three-bit gate is an expansion type; if the first update sequence number is greater than the first current sequence number, and the second update sequence number is less than or equal to the second current sequence number, the update type of the three-bit gate is a contraction type; if the first update sequence number is greater than the first current sequence number, and the second update sequence number is less than the second current sequence number, the update type of the three-bit gate is a contraction type.

[0043] In one embodiment, if the current starting position of the three-bit gate is 1 and the ending position is 4, then the update type is the expansion type and there are three cases: (1) the updated starting position is equal to 1, and the ending position is greater than 4; (2) the updated starting position is less than 1, and the ending position is greater than 4; (3) the updated starting position is less than 1, and the ending position is equal to 4. The update type is also the contraction type and there are three cases: (1) the updated starting position is equal to 1, and the ending position is less than 4; (2) the updated starting position is greater than 1, and the ending position is less than 4; (3) the updated starting position is greater than 1, and the ending position is equal to 4.

[0044] Furthermore, when there are no other bit gates in the column where the three-bit gate is currently located, each bit gate of the three-bit gate is updated to the corresponding quantum register according to the update position information.

[0045] In one embodiment, Figure 2 As shown, there are no other bit gates in the column where the three-bit gate 1 is located. At this time, no matter whether the update type of the three-bit gate 1 is expansion or contraction, it can be directly updated without changing the positions of other bit gates.

[0046] If there are other bit gates in the column where the three-bit gate is located, the update type of the three-bit gate is determined according to the update position information. If the update type is the extended type, and there are other bit gates at the update positions of the three bit gates in the extended three-bit gate, the update position and the original bit gate behind the update position are shifted backward by one position, and each bit gate of the three-bit gate is updated to the corresponding quantum register.

[0047] In one embodiment, Figure 4 As shown in the figure, the initial positions of the three-bit gate are: starting position: 0, middle position: 1, and end position: 4. At this time, if you want to expand the three-bit gate, update the end position to the quantum register q[5]. It can be seen that there is a single-bit gate X at this column position of the quantum register q[5]. At this time, the original single-bit gate X at this position needs to be shifted back one position, and the following single-bit gate Z also needs to be shifted back in turn. The updated positions of each bit gate are as follows Figure 5 shown.

[0048] When the update type of the three-bit gate is the contraction type, if there are other bit gates after the third bit gate in the three-bit gate, then each bit gate of the three-bit gate is updated to the corresponding quantum register according to the update position information, and all bit gates after the original position of the third bit gate are shifted forward one position in turn.

[0049] In one embodiment, Figure 6As shown in the figure, the initial positions of the three-bit gate are: starting position: 0, middle position: 1, and end position: 5. At this time, if the three-bit gate is to be contracted, the end position is updated to the quantum register q[2]. It can be seen that there is a single-bit gate X and a single-bit gate Z after the column position of the quantum register q[5]. After contracting the three-bit gate, the single-bit gate X and the single-bit gate Z need to be shifted forward one position in turn. The updated positions of each bit gate are as follows Figure 7 shown.

[0050] S104: Based on the updated position information and the position information updating rule, the position of the three-bit gate is updated.

[0051] Specifically, an array is created in each quantum register, and each array is used to store the bit gate information on the corresponding quantum register, wherein each element in the array corresponds to the information of a bit gate.

[0052] Furthermore, according to the previously determined update position information and position information update rule, each bit gate of the three-bit gate is updated to the corresponding quantum register.

[0053] Furthermore, for quantum registers with added bit gates, an element insertion operation is performed on the corresponding array. For quantum registers with reduced bit gates, an element deletion operation is performed on the corresponding array. This ensures that the three-bit gate is correctly displayed on the page according to the development requirements after editing, thus achieving the development purpose.

[0054] In addition, the embodiment of the present application also provides a device for updating the position information of a three-bit gate on a quantum computing cloud platform, such as Figure 8 As shown, the three-bit gate position information update device of the quantum computing cloud platform specifically includes:

[0055] at least one processor; and a memory in communication with the at least one processor; wherein,

[0056] The memory stores instructions executable by at least one processor to enable the at least one processor to perform:

[0057] According to the configured initial position information of the three-bit gate, the three-bit gate is displayed at the corresponding position of the quantum register; wherein the bit gate is a quantum bit gate;

[0058] receiving updated position information of the three-bit gate;

[0059] Determine a corresponding position information update rule according to the update type and position type of the three-bit gate; wherein the update type includes an expansion type and a contraction type;

[0060] Based on the updated position information and the position information updating rule, the position of the three-bit gate is updated.

[0061] The embodiments of the present application provide a method and device for updating the position information of a three-bit gate of a quantum computing cloud platform. In response to the development needs of dragging and adding multi-bit gates in graphic programming during the development of the quantum computing cloud platform, a new method for adding multi-bit quantum gates in graphic programming is provided for the quantum computing cloud platform, which is conducive to the realization of the quantum computing function of the quantum computing cloud platform and promotes the development of quantum computing.

[0062] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0063] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0064] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the embodiments of the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for updating the position information of a three-bit gate on a quantum computing cloud platform, characterized in that: The method comprises: According to the configured initial position information of the three-bit gate, the three-bit gate is displayed at the corresponding position of the quantum register; wherein the bit gate is a quantum bit gate; the initial position information refers to the longitudinal position of the three-bit gate, that is, the quantum registers where the three bit gates in the three-bit gate are respectively located; Receiving updated position information of the three-bit gate; According to the update type and position type of the three-bit gate, a corresponding position information update rule is determined; wherein the update type includes an expansion type and a contraction type; specifically including: In the case where there are other bit gates in the column where the three-bit gate is located, determining the update type of the three-bit gate according to the update position information specifically includes: Determine the quantum register sequence number corresponding to the starting position in the update position information as the first update sequence number; determine the quantum register sequence number corresponding to the ending position in the update position information as the second update sequence number; Determine the quantum register sequence number corresponding to the starting position in the initial position information or the last updated position information as the first current sequence number; determine the quantum register sequence number corresponding to the ending position in the initial position information or the last updated position information as the second current sequence number; If the first update sequence number is less than the first current sequence number, and the second update sequence number is greater than or equal to the second current sequence number, the update type of the three-bit gate is the extended type; if the first update sequence number is equal to the first current sequence number, and the second update sequence number is greater than the second current sequence number, the update type of the three-bit gate is the extended type; If the first update sequence number is greater than the first current sequence number, and the second update sequence number is less than or equal to the second current sequence number, the update type of the three-bit gate is a contraction type; if the first update sequence number is greater than the first current sequence number, and the second update sequence number is less than the second current sequence number, the update type of the three-bit gate is a contraction type; If the update type is an extension type, and there are other bit gates at the update positions of the three bit gates in the extended three-bit gate, the update position and the original bit gates behind the update position are sequentially shifted backward by one position, and each bit gate of the three-bit gate is updated to the corresponding quantum register respectively; In the case where the update type of the three-bit gate is a contraction type, if there are other bit gates behind the three bit gates in the three-bit gate, then according to the update position information, each bit gate of the three-bit gate is updated to the corresponding quantum register respectively; and all the bit gates behind the original positions of the three bit gates are sequentially translated forward by one position; Based on the updated position information and the position information updating rule, the position of the three-bit gate is updated.

2. A method for updating position information of a three-bit gate on a quantum computing cloud platform according to claim 1, characterized in that: According to the configured initial position information of the three-bit gate, the three-bit gate is displayed at the corresponding position of the quantum register, specifically including: Through the ElementUI framework, the pop-up window function is introduced in the editing interface; After receiving the position configuration instruction of the three-bit gate, a pop-up window for configuring the position information of the three-bit gate is popped up in the editing interface; wherein the pop-up window for configuring the position information includes the starting position, the middle position and the ending position of the three-bit gate; The starting position, the middle position, and the ending position correspond to the quantum register number of the first bit gate, the quantum register number of the second bit gate, and the quantum register number of the third bit gate in the three-bit gate; The initial position information input by the operator in the position information configuration pop-up window is received, and each bit gate in the three-bit gate is displayed on the corresponding quantum register.

3. A method for updating position information of a three-bit gate on a quantum computing cloud platform according to claim 2, characterized in that: After receiving the initial position information input by the operator in the position information configuration pop-up window and displaying each bit gate of the three-bit gate on the corresponding quantum register, the method further includes: Using the initial position information as the current position attribute of the three-bit gate, and recording it in the HTML code of the three-bit gate; Each time the position information of the three-bit gate is updated, the updated position information is also saved in the HTML code and the current position attribute is replaced, so that when the operator updates the position information, the current position attribute can be obtained and pre-displayed in the input box of the position information configuration pop-up window, prompting the operator of the current position of the three-bit gate.

4. A method for updating position information of a three-bit gate on a quantum computing cloud platform according to claim 2, characterized in that: Receiving the updated position information of the three-bit gate specifically includes: After receiving the position update instruction of the three-bit gate, the position information configuration window of the three-bit gate is popped up again in the editing interface; Receive the updated position information input by the operator in the position information configuration window.

5. A method for updating position information of a three-bit gate on a quantum computing cloud platform according to claim 2, characterized in that: According to the update type and location type of the three-bit gate, a corresponding location information update rule is determined, specifically including: When there are no other bit gates in the column where the three-bit gate is located, each bit gate of the three-bit gate is updated to the corresponding quantum register according to the update position information.

6. A method for updating position information of a three-bit gate on a quantum computing cloud platform according to claim 1, characterized in that: Based on the updated position information and the position information updating rule, updating the position of the three-bit gate specifically includes: Creating an array in each quantum register, the array being used to store bit gate information on each quantum register; wherein each element in the array corresponds to a bit gate; According to the update position information and the position information update rule, each bit gate of the three-bit gate is updated to the corresponding quantum register; For the quantum register with added bit gates, insert element operation into the corresponding array; For the quantum register with reduced bit gates, the element deletion operation is performed on the corresponding array.

7. A device for updating position information of three-bit gates on a quantum computing cloud platform, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, so that the at least one processor can execute a method for updating position information of a three-bit gate of a quantum computing cloud platform according to any one of claims 1-6.

Citation Information

Patent Citations

  • A method and a device for analyzing a quantum program storage file

    CN109816112A

  • Quantum circuit display method and device, storage medium and electronic device

    CN111325348A

  • Simulating quantum circuits on computer using hierarchical storage

    CN112041859A

  • Quantum logic gate mobility judgment method and system

    CN113222162A

  • Quantum implementation circuit of SM4 algorithm

    CN113255923A