CN114861920B - Quantum computing cloud platform three-bit gate position information updating method and device - Google Patents

Quantum computing cloud platform three-bit gate position information updating method and device Download PDF

Info

Publication number
CN114861920B
CN114861920B CN202210377814.1A CN202210377814A CN114861920B CN 114861920 B CN114861920 B CN 114861920B CN 202210377814 A CN202210377814 A CN 202210377814A CN 114861920 B CN114861920 B CN 114861920B
Authority
CN
China
Prior art keywords
bit
position information
gate
bit gate
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210377814.1A
Other languages
Chinese (zh)
Other versions
CN114861920A (en
Inventor
于洪真
薛长青
刘幼航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Science Research Institute Co Ltd
Original Assignee
Shandong Inspur Science Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Science Research Institute Co Ltd filed Critical Shandong Inspur Science Research Institute Co Ltd
Priority to CN202210377814.1A priority Critical patent/CN114861920B/en
Publication of CN114861920A publication Critical patent/CN114861920A/en
Application granted granted Critical
Publication of CN114861920B publication Critical patent/CN114861920B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • G06N10/20Models of quantum computing, e.g. quantum circuits or universal quantum computers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Condensed Matter Physics & Semiconductors (AREA)
  • Computational Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The invention discloses a three-bit gate position information updating method and device for a quantum computing cloud platform, belongs to the technical field of web front ends and quantum computing, and aims to solve the technical problem that at present, no method can meet the requirement of performing three-bit gate line crossing position information editing operation in the quantum computing cloud platform and is not beneficial to realization of quantum computing functions of the quantum computing cloud platform. The method comprises the following steps: displaying the three-bit gate at a corresponding position of a quantum register according to the initial position information of the configured three-bit gate; wherein the three-bit gate is a three-bit quantum gate; receiving updated position information of the three-bit gate; determining a corresponding position information updating rule according to the updating type and the 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 updating rule.

Description

Quantum computing cloud platform three-bit gate position information updating method and device
Technical Field
The application relates to the field of web front end and quantum computing, in particular to a method and equipment for updating three-bit gate position information of a quantum computing cloud platform.
Background
Quantum computing ideas were first proposed by feiman in the 80 s of the 20 th century, which is considered to be a new type of computing model with a subversive impact on the future. The quantum computer is a computing system formed by a quantum chip and an external measurement and control system, the quantum computing cloud platform can intuitively provide users with functions needing to be computed by using the quantum computer, and the operation of editing the overline position information of the three-bit gate is an important ring for perfecting the functions of the platform.
Therefore, in the quantum computing cloud platform, the demand for the three-bit gate line crossing position information editing operation is high. When graphic programming is carried out, the realization of the function of three-bit gate line crossing position information editing is the most basic requirement, and the realization of the function needs to carry out a self-development method according to specific requirements in consideration of the fact that three-bit quantum gates need to cross three lines. However, no three-bit gate line crossing position information editing operation method capable of effectively solving the requirement exists at present, which is not beneficial to the realization of the quantum computing function of the quantum computing cloud platform.
Disclosure of Invention
The embodiment of the application provides a method and equipment for updating three-bit gate position information of a quantum computing cloud platform, which are used for solving the following technical problems: at present, no method can meet the requirement of performing three-bit gate line crossing position information editing operation in a quantum computing cloud platform, and is not beneficial to the realization of the quantum computing function of the quantum computing cloud platform.
The embodiment of the application adopts the following technical scheme:
In one aspect, an embodiment of the present application provides a method for updating three-bit gate position information of a quantum computing cloud platform, where the method includes: displaying the three-bit gate at a corresponding position of a quantum register according to the initial position information of the configured 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 updating rule according to the updating type and the 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 updating rule.
In a possible implementation manner, according to initial position information of the configured three-bit gate, the three-bit gate is displayed at a corresponding position of the quantum register, and specifically includes: introducing a popup window function into an editing interface through ElementUI frames; after receiving the position configuration instruction of the three-bit door, popping up a position information configuration popup window of the three-bit door in the editing interface; the position information configuration popup window comprises a starting position, a middle position and an ending position of the three-bit door; the starting position, the middle position and the ending position are distributed to correspond to the quantum register serial number of the first bit gate, the quantum register serial number of the second bit gate and the quantum register serial number of the third bit gate in the three bit gates; and receiving initial position information input by an operator in the position information configuration popup window, and respectively displaying each of the three-bit gates on a corresponding quantum register.
In a possible embodiment, after receiving initial position information input by an operator in the position information configuration window and displaying each of the three-bit gates on a corresponding quantum register, the method further includes: the initial position information is used as the current position attribute of the three-bit gate and is recorded in an HTML code of the three-bit gate; and when the position information of the three-bit door is updated each time, the updated position information is also stored in an HTML code, and the current position attribute is replaced, so that an operator can acquire the current position attribute and pre-display the current position attribute in an input box of the position information configuration popup window when the position information is updated, and the operator is prompted about the current position of the three-bit door.
In a possible implementation manner, the method for receiving the updated position information of the three-bit gate specifically includes: after receiving the position updating instruction of the three-bit door, popping up the position information configuration window of the three-bit door again in an editing interface; and receiving updated position information input by an operator in the position information configuration window.
In a possible implementation manner, determining a corresponding location information update rule according to the update type and the location type of the three-bit gate specifically includes: and under the condition that no other bit gates exist in the column where the three bit gates are located, respectively updating each bit gate of the three bit gates to a corresponding quantum register according to the updating position information.
In a possible implementation manner, determining a corresponding location information update rule according to the update type and the location type of the three-bit gate specifically includes: under the condition that other bit gates exist in the column of the three-bit gate, judging the update type of the three-bit gate according to the update position information; if the update type is an extension type and other bit gates are arranged at the update positions of three bit gates in the three bit gates after extension, shifting the update positions and the original bit gates behind the update positions backwards by one position in sequence, and updating each bit gate of the three bit gates to a corresponding quantum register respectively.
In a possible implementation manner, the determining the update type of the three-bit gate according to the update location information specifically includes: determining a quantum register serial number corresponding to a starting position in the updated position information as a first updated serial number; determining a quantum register serial number corresponding to an end position in the updated position information as a second updated serial number; determining the sequence number of the quantum register corresponding to the initial position in the initial position information or the last updated position information as a first current sequence number; determining the quantum register serial number corresponding to the end position in the initial position information or the last updated position information as a second current serial number; if the first update sequence number is smaller than the first current sequence number and the second update sequence number is larger than or equal to the second current sequence number, the update type of the three-bit gate is an extension 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 extension 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 contracted 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 contracted type.
In a possible implementation manner, determining a corresponding location information update rule according to the update type and the location type of the three-bit gate specifically includes: under the condition that the update type of the three-bit gates is a contraction type, if other bit gates are arranged behind three bit gates in the three-bit gates, each bit gate of the three-bit gates is updated to a corresponding quantum register according to the update position information; and sequentially shifting all bit gates behind the original positions of the three bit gates forward by one position.
In a possible implementation manner, updating the position of the three-bit gate based on the updated position information and the position information updating rule specifically includes: creating an array in each quantum register, the array for storing bit gate information on each quantum register; wherein each element in the array corresponds to a bit gate; according to the updated position information and the position information updating rule, updating each bit gate of the three-bit gate to a corresponding quantum register respectively; for the quantum register added with the bit gate, performing element insertion operation on the corresponding array; and for the quantum register with reduced bit gates, deleting elements of the corresponding array.
On the other hand, the embodiment of the application also provides a device for updating the three-bit door position information of the quantum computing cloud platform, which comprises the following steps: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method for three-bit gate location information update of a quantum computing cloud platform according to any of the above embodiments.
The three-bit gate position information updating method and the three-bit gate position information updating device for the quantum computing cloud platform provide a new method for adding the multi-bit quantum gate in the graph programming for the quantum computing cloud platform, are beneficial to the realization of the quantum computing function of the quantum computing cloud platform, and promote the development of quantum computing.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to the drawings without inventive effort to those skilled in the art. In the drawings:
Fig. 1 is a flowchart of a method for updating three-bit gate position information of a quantum computing cloud platform according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an initial position of a three-bit gate according to an embodiment of the present application;
FIG. 3 is a schematic view of a three-bit door position information configuration popup window according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a location type 1 according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a location with updated location type 1 according to an embodiment of the present application;
FIG. 6 is a schematic diagram of location type 2 provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of a location type 2 updated according to an embodiment of the present application;
Fig. 8 is a schematic structural diagram of a three-bit gate position information updating device of a quantum computing cloud platform according to an embodiment of the present application.
Detailed Description
In order to make the technical solution of the present application better understood by those skilled in the art, the technical solution of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
The embodiment of the application provides a three-bit gate position information updating method of a quantum computing cloud platform. The method is based on a VUE front end development framework, is completed by using a JavaScript programming language, and adopts a quantum computing cloud platform as an execution subject.
As shown in fig. 1, the method for updating three-bit gate position information of the quantum computing cloud platform specifically includes steps S101-S104:
And S101, displaying the three-bit gate at a corresponding position of the quantum register according to the initial position information of the configured three-bit gate.
Specifically, firstly, a popup window function is introduced into an editing interface of the quantum computing cloud platform through a ElementUI framework. And after receiving the position configuration instruction of the three-bit gate, the quantum computing cloud platform pops up the position information configuration popup window of the three-bit gate in the editing interface. The position information configuration popup window comprises a starting position, a middle position and an ending position of the three-bit door. The starting position, the middle position and the ending position are distributed to correspond to the quantum register serial number of the first bit gate, the quantum register serial number of the second bit gate and the quantum register serial number of the third bit gate in the three bit gates.
In one embodiment, fig. 2 is a schematic diagram of an initial position of a three-bit gate according to an embodiment of the present application, as shown in fig. 2, in a top row of icons in the figure, except for the last two icons, the remaining icons represent different single-bit gates, and the english symbol of each icon in the figure is only set for distinction, and does not specifically refer to which single-bit gate. While the last two icons represent three-bit gates, each representing a different three-bit quantum gate. In the bit gate addition interface, q [0], q [1], q [2], q [3], q [4] respectively represent five different quantum registers, and the horizontal line behind each quantum register represents the corresponding space of each quantum register for placing a bit gate. Clicking on the left minus sign can delete the corresponding quantum register and clicking on the lowest plus sign can add a new quantum register. In the dashed line box in fig. 2, three bit gates 1 are shown, and since the three bit gates of the three bit gates 1 are respectively located in the quantum registers q [0], q [1], q [2], the initial positions of the three bit gates 1 are: starting position: 0. intermediate position: 1. end position: 2.
Further, initial position information input by an operator in the position information configuration popup is received, and each of the three-bit gates is displayed on a corresponding quantum register, respectively.
In one embodiment, fig. 3 is a schematic view of a three-bit door position information configuration popup according to an embodiment of the present application. Clicking on the pen-shaped button next to the three-bit gate in fig. 2 ejects the position information configuration popup as shown in fig. 3. As shown in fig. 3, the location information configuration window includes three input boxes, which are a start location, a middle location, and an end location. The operator inputs the serial numbers of the quantum registers in each input box respectively, and the background can directly display each bit gate of the three-bit gates on the corresponding quantum register.
The lateral position of the three-bit gate on the quantum register is determined by the position of the operator's drag, to which lateral position the operator drags the three-bit gate icon, and in which lateral position the three-bit gate is displayed. The three-bit gate position referred to in the present application refers to the longitudinal position of the three-bit gates, i.e. on which quantum register the three of the three-bit gates are located, respectively.
Further, the initial position information is recorded in the HTML code of the three-bit gate as a current position attribute of the three-bit gate. And when the position information of the three-bit door is updated each time, the updated position information is also stored in the HTML code and replaces the current position attribute, so that an operator can acquire the current position attribute and pre-display the current position attribute in an input frame of the position information configuration popup window when the position information is updated, and the operator is prompted about the current position of the three-bit door.
For example, if the current position is 0,1, 2, when the operator clicks the edit button, the popped position information is configured in the input box of the pop-up window, and the current position of the three-bit door is pre-displayed as 0,1, 2, so that the operator can modify according to the current position, and is not likely to forget the current position of the three-bit door after the pop-up window pops up.
S102, receiving updated position information of the three-bit gate.
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. Updated location information entered by the operator in the location information configuration window is then received.
As a possible implementation, the location update instruction is triggered after clicking a pen-shaped button next to a three-bit gate as shown in fig. 2.
S103, determining a corresponding position information updating rule according to the updating type and the position type of the three-bit gate;
First, according to the received update position information, the update type of the three-bit gate is judged. The method comprises the following steps: and determining the quantum register serial number corresponding to the initial position in the updated position information as a first updated serial number. And determining the quantum register serial number corresponding to the end position in the updated position information as a second updated serial number. And determining the sequence number of the quantum register corresponding to the initial position in the initial position information or the last updated position information as a first current sequence number. And determining the quantum register serial number corresponding to the end position in the initial position information or the last updated position information as a second current serial number.
Further, if the first update sequence number is smaller 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 extension 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 extension type; if the first updating sequence number is larger than the first current sequence number and the second updating sequence number is smaller than or equal to the second current sequence number, the updating type of the three-bit gate is a shrinkage 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 shrink type.
In one embodiment, if the current starting position of the three-bit gate is 1 and the ending position is 4. Then there are three cases where the update type is an extension type: (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. There are also three cases where the update type is a shrink type: (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.
Further, in the case that no other bit gates exist in the column where the three bit gates currently exist, each bit gate of the three bit gates is updated to the corresponding quantum register according to the updated position information.
In one embodiment, as shown in fig. 2, the column where the three-bit gate 1 is located has no other bit gate, and no matter whether the update type of the three-bit gate 1 is expanded or contracted, the three-bit gate 1 can be directly updated without changing the positions of the other bit gates.
And under the condition that other bit gates exist in the column of the three-bit gate, judging the update type of the three-bit gate according to the update position information. If the update type is an extension type and other bit gates are arranged at the update positions of three bit gates in the extended three bit gates, the update positions and the original bit gates behind the update positions are shifted backwards by one position, and each bit gate of the three bit gates is updated to the corresponding quantum register respectively.
In one embodiment, as shown in FIG. 4, the initial position of the three-bit gate is: starting position: 0. intermediate position: 1. end position: 4. at this point, if the three-bit gate is to be extended, the end position is updated onto quantum register q [5], and it is seen that there is a single-bit gate X at the column position of quantum register q [5 ]. At this time, the original single-bit gate X at the position needs to be shifted backward by one position, and the subsequent single-bit gates Z also need to be shifted backward in sequence. The updated individual bit gate positions are shown in fig. 5.
And under the condition that the update type of the three-bit gates is the contraction type, if other bit gates are arranged behind the third bit gate in the three-bit gates, respectively updating each bit gate of the three-bit gates to the corresponding quantum register according to the update position information. And sequentially forward shifting all bit gates behind the original position of the third bit gate by one position.
In one embodiment, as shown in FIG. 6, the initial position of the three-bit gate is: starting position: 0. intermediate position: 1. 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], and it is seen that the column position of the quantum register q [5] is followed by a single-bit gate X and a single-bit gate Z, then after the three-bit gate is contracted, the single-bit gate X and the single-bit gate Z need to be sequentially shifted forward by one position. The updated individual bit gate positions are shown in fig. 7.
And S104, updating the position of the three-bit door based on the updated position information and the position information updating rule.
Specifically, an array is created in each quantum register, each array for storing bit gate information on the corresponding quantum register. Wherein each element in the array corresponds to one bit of gate information.
Further, each of the three-bit gates is updated to a corresponding quantum register according to the previously determined update location information and location information update rules.
Further, for the quantum register added with the bit gate, the insert element operation is performed on the corresponding array. And for the quantum register with reduced bit gates, deleting elements of the corresponding array. The three-bit gate can be ensured to be displayed on the page correctly according to the development requirement after being edited, and the development purpose is achieved.
In addition, the embodiment of the application also provides a device for updating the three-bit gate position information of the quantum computing cloud platform, as shown in fig. 8, which specifically comprises:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform:
displaying the three-bit gate at a corresponding position of a quantum register according to the initial position information of the configured 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 updating rule according to the updating type and the 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 updating rule.
According to the three-bit gate position information updating method and device for the quantum computing cloud platform, provided by the embodiment of the application, aiming at the development requirement of dragging and adding operation on the multi-bit gate in the graph programming in the development process of the quantum computing cloud platform, a new method for adding the multi-bit quantum gate in the graph programming is provided for the quantum computing cloud platform, the realization of the quantum computing function of the quantum computing cloud platform is facilitated, and the development of quantum computing is promoted.
The embodiments of the present application are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
The foregoing describes certain embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the embodiments of the application by those skilled in the art. 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 (7)

1. A method for updating three-bit gate position information 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 initial position information of the configured three-bit gate; wherein the bit gate is a quantum bit gate; the initial position information refers to the longitudinal position of three-bit gates, namely quantum registers in which three bit gates in the three-bit gates are respectively located;
Receiving updated position information of the three-bit gate;
Determining a corresponding position information updating rule according to the updating type and the position type of the three-bit gate; wherein the update type includes an expansion type and a contraction type; the method specifically comprises the following steps:
under the condition that other bit gates exist in the column of the three-bit gate, judging the update type of the three-bit gate according to the update position information, wherein the method specifically comprises the following steps:
Determining a quantum register serial number corresponding to a starting position in the updated position information as a first updated serial number; determining a quantum register serial number corresponding to an end position in the updated position information as a second updated serial number;
Determining the sequence number of the quantum register corresponding to the initial position in the initial position information or the last updated position information as a first current sequence number; determining the quantum register serial number corresponding to the end position in the initial position information or the last updated position information as a second current serial number;
If the first update sequence number is smaller than the first current sequence number and the second update sequence number is larger than or equal to the second current sequence number, the update type of the three-bit gate is an extension 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 extension 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 contracted type; if the first update sequence number is larger than the first current sequence number and the second update sequence number is smaller than the second current sequence number, the update type of the three-bit gate is a shrinkage type;
If the update type is an extension type and other bit gates are arranged at the update positions of three bit gates in the three bit gates after extension, shifting the update positions and the original bit gates behind the update positions backwards by one position in sequence, and updating each bit gate of the three bit gates to a corresponding quantum register respectively;
Under the condition that the update type of the three-bit gates is a contraction type, if other bit gates are arranged behind three bit gates in the three-bit gates, each bit gate of the three-bit gates is updated to a corresponding quantum register according to the update position information; and sequentially shifting all bit gates behind the original positions of the three bit gates forward by one position;
and updating the position of the three-bit gate based on the updated position information and the position information updating rule.
2. The method for updating three-bit gate position information of a quantum computing cloud platform according to claim 1, wherein the three-bit gate is displayed at a corresponding position of a quantum register according to initial position information of the configured three-bit gate, and specifically comprises:
Introducing a popup window function into an editing interface through ElementUI frames;
after receiving the position configuration instruction of the three-bit door, popping up a position information configuration popup window of the three-bit door in the editing interface; the position information configuration popup window comprises a starting position, a middle position and an ending position of the three-bit door;
the starting position, the middle position and the ending position are distributed to correspond to the quantum register serial number of the first bit gate, the quantum register serial number of the second bit gate and the quantum register serial number of the third bit gate in the three bit gates;
and receiving initial position information input by an operator in the position information configuration popup window, and respectively displaying each of the three-bit gates on a corresponding quantum register.
3. The method for updating three-bit gate position information of a quantum computing cloud platform according to claim 2, wherein after receiving initial position information input by an operator in the position information configuration popup window and displaying each of the three-bit gates on a corresponding quantum register, the method further comprises:
The initial position information is used as the current position attribute of the three-bit gate and is recorded in an HTML code of the three-bit gate;
and when the position information of the three-bit door is updated each time, the updated position information is also stored in an HTML code, and the current position attribute is replaced, so that an operator can acquire the current position attribute and pre-display the current position attribute in an input box of the position information configuration popup window when the position information is updated, and the operator is prompted about the current position of the three-bit door.
4. The method for updating three-bit gate position information of a quantum computing cloud platform according to claim 2, wherein receiving the updated position information of the three-bit gate comprises:
After receiving the position updating instruction of the three-bit door, popping up the position information configuration window of the three-bit door again in an editing interface;
And receiving updated position information input by an operator in the position information configuration window.
5. The method for updating three-bit gate position information of a quantum computing cloud platform according to claim 2, wherein the determining the corresponding position information updating rule according to the updating type and the position type of the three-bit gate specifically comprises:
And under the condition that no other bit gates exist in the column where the three bit gates are located, respectively updating each bit gate of the three bit gates to a corresponding quantum register according to the updating position information.
6. The method for updating three-bit gate position information of a quantum computing cloud platform according to claim 1, wherein updating the three-bit gate position based on the updated position information and the position information updating rule specifically comprises:
Creating an array in each quantum register, the array for storing bit gate information on each quantum register; wherein each element in the array corresponds to a bit gate;
according to the updated position information and the position information updating rule, updating each bit gate of the three-bit gate to a corresponding quantum register respectively;
For the quantum register added with the bit gate, performing element insertion operation on the corresponding array;
And for the quantum register with reduced bit gates, deleting elements of the corresponding array.
7. A quantum computing cloud platform three-bit gate location information updating device, the device comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform a quantum computing cloud platform three-bit gate location information updating method according to any one of claims 1-6.
CN202210377814.1A 2022-04-12 2022-04-12 Quantum computing cloud platform three-bit gate position information updating method and device Active CN114861920B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210377814.1A CN114861920B (en) 2022-04-12 2022-04-12 Quantum computing cloud platform three-bit gate position information updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210377814.1A CN114861920B (en) 2022-04-12 2022-04-12 Quantum computing cloud platform three-bit gate position information updating method and device

Publications (2)

Publication Number Publication Date
CN114861920A CN114861920A (en) 2022-08-05
CN114861920B true CN114861920B (en) 2024-08-27

Family

ID=82629344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210377814.1A Active CN114861920B (en) 2022-04-12 2022-04-12 Quantum computing cloud platform three-bit gate position information updating method and device

Country Status (1)

Country Link
CN (1) CN114861920B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109816112A (en) * 2019-01-11 2019-05-28 合肥本源量子计算科技有限责任公司 A kind of method and device parsing quantum program storage file
CN111325348A (en) * 2020-01-21 2020-06-23 合肥本源量子计算科技有限责任公司 Quantum line display method and device, storage medium and electronic device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7843209B2 (en) * 2007-04-25 2010-11-30 D-Wave Systems Inc. Architecture for local programming of quantum processor elements using latching qubits
US20190102496A1 (en) * 2017-09-29 2019-04-04 International Business Machines Corporation Interactive user interface for composing quantum circuits
US11100417B2 (en) * 2018-05-08 2021-08-24 International Business Machines Corporation Simulating quantum circuits on a computer using hierarchical storage
CN113222162B (en) * 2020-01-21 2023-08-08 本源量子计算科技(合肥)股份有限公司 Method and system for judging mobility of quantum logic gate
US20220067245A1 (en) * 2020-08-12 2022-03-03 Microsoft Technology Licensing, Llc Low-cost linear orders for quantum-program simulation
CN113255923B (en) * 2021-05-31 2021-09-14 湖北大学 Quantum realization circuit of SM4 algorithm
CN113569511A (en) * 2021-06-11 2021-10-29 清华大学 Quantum circuit simulation method and device
CN113887731B (en) * 2021-09-07 2024-09-06 浪潮集团有限公司 Quantum gate adding method and device with radian parameter and computer readable medium
CN113962397B (en) * 2021-09-17 2024-08-30 浪潮集团有限公司 Single-bit multi-quantum gate fusion optimization method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109816112A (en) * 2019-01-11 2019-05-28 合肥本源量子计算科技有限责任公司 A kind of method and device parsing quantum program storage file
CN111325348A (en) * 2020-01-21 2020-06-23 合肥本源量子计算科技有限责任公司 Quantum line display method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN114861920A (en) 2022-08-05

Similar Documents

Publication Publication Date Title
CN107704576B (en) Data display optimization method and device, terminal equipment and storage medium
US10380778B2 (en) Automated chart generation within a document generation application using heuristic model with predefined data types
US9075787B2 (en) Defining a reusable spreadsheet-function by extracting the function from a complex calculation in a spreadsheet document
CN111930294B (en) Quantum dragging method of quantum cloud platform system
US8701085B2 (en) Graphical event and binding editor for software development
US20090138810A1 (en) Web page editor with element selection mechanism
CN111967602B (en) Quantum entanglement operation method of quantum cloud platform system
JPH02109127A (en) Specification processing method
CN110826720B (en) Interface display method and device and interface switching method and device
US8595622B1 (en) Merging electronic document redraws
CN109145272B (en) Text rendering and layout method, device, equipment and storage medium
US20120215804A1 (en) Data-programming environment
CN114626114A (en) Multi-bit quantum gate adding method and device for quantum computing cloud platform
CN106294463A (en) The data point update method of a kind of performance graph and equipment
CN114861920B (en) Quantum computing cloud platform three-bit gate position information updating method and device
CN111325348A (en) Quantum line display method and device, storage medium and electronic device
CN114282495A (en) Text labeling method and device
CN107589962A (en) A kind of method for displaying user interface and device
US10366201B1 (en) Timing closure of circuit designs for integrated circuits
Marcopoulos et al. An online development environment for answer set programming
CN111126012B (en) Custom generation expression method and device
CN113705178A (en) Document processing method, document processing device, electronic equipment and medium
CN113609433A (en) Method and device for determining formula layout, electronic equipment and storage medium
CN115526324B (en) Realization method of CNOT gate reversible function in quantum computing cloud platform
CN111859850B (en) Method, device, electronic equipment and storage medium for integrating rich text fragments

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240730

Address after: 250101 building S02, 1036 Chaochao Road, high tech Zone, Jinan City, Shandong Province

Applicant after: Shandong Inspur Scientific Research Institute Co.,Ltd.

Country or region after: China

Address before: No.1036, Gaoxin Langchao Road, Jinan, Shandong 250101

Applicant before: INSPUR GROUP Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant