CN116702912A - Quantum circuit editing method, device, equipment and medium - Google Patents

Quantum circuit editing method, device, equipment and medium Download PDF

Info

Publication number
CN116702912A
CN116702912A CN202310618169.2A CN202310618169A CN116702912A CN 116702912 A CN116702912 A CN 116702912A CN 202310618169 A CN202310618169 A CN 202310618169A CN 116702912 A CN116702912 A CN 116702912A
Authority
CN
China
Prior art keywords
quantum gate
quantum
slot
edited
gate slot
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.)
Granted
Application number
CN202310618169.2A
Other languages
Chinese (zh)
Other versions
CN116702912B (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.)
Shenzhen Liangxuan Technology Co ltd
Original Assignee
Shenzhen Liangxuan Technology 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 Shenzhen Liangxuan Technology Co ltd filed Critical Shenzhen Liangxuan Technology Co ltd
Priority to CN202310618169.2A priority Critical patent/CN116702912B/en
Publication of CN116702912A publication Critical patent/CN116702912A/en
Application granted granted Critical
Publication of CN116702912B publication Critical patent/CN116702912B/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

Landscapes

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

Abstract

The application relates to a quantum circuit editing method, a quantum circuit editing device, quantum circuit editing equipment and a quantum circuit editing medium. The method comprises the following steps: responding to a touch instruction of any quantum gate component in the quantum gate selection column, storing attribute information of the quantum gate component into a preset editing data object, and generating a quantum gate component mirror image; responding to a dragging instruction of the quantum gate assembly mirror image, and dragging the quantum gate assembly mirror image and the preset editing data object to a quantum circuit editing area by a quantum gate selection bar; any quantum gate slot in the quantum editing area is responded to monitor that the area range of the quantum gate slot is dragged into the mirror image of the quantum gate assembly, and then the state of slot display of the quantum gate slot is converted; responding to a loosening event mirroring the quantum gate assembly, and judging whether the loosening event is in the area range of any quantum gate slot to be edited; and if so, displaying the mirror image of the quantum gate assembly at the quantum gate slot to be edited, and storing the attribute information of the quantum gate assembly in the preset editing data object into the quantum gate slot to be edited.

Description

Quantum circuit editing method, device, equipment and medium
Technical Field
The application is suitable for the technical field of quantum computing, and particularly relates to a quantum circuit editing method, device, equipment and medium.
Background
Quantum computing is rapidly evolving, and a quantum computing algorithm is usually composed of an arrangement of one or more quantum logic gates (hereinafter referred to as quantum gates), whose manifestation we call quantum circuit diagrams. With the increase of the complexity of the algorithm, the arrangement and combination of the quantum gates are more complex, and at the moment, the complex quantum circuit diagram is intuitively and smoothly displayed and edited, so that the design efficiency of the quantum computing algorithm can be greatly improved.
Disclosure of Invention
The inventor of the application discovers that the existing quantum logic circuit editing application can realize the visual quantum circuit editing at a client side and can intuitively display a quantum gate assembly, but lacks the display effect on different editing states in the editing process and influences the user experience of a user in the interaction process. In view of this, the embodiment of the application provides a quantum circuit editing method, a device, equipment and a medium.
In a first aspect, an embodiment of the present application provides a quantum wire editing method, including:
responding to a touch instruction of any quantum gate component in a quantum gate selection column, storing attribute information of the quantum gate component into a preset editing data object, and generating a quantum gate component mirror image;
Responding to a dragging instruction of the quantum gate assembly mirror image, and dragging the quantum gate assembly mirror image and the preset editing data object to a quantum circuit editing area by a quantum gate selection bar;
responding to any quantum gate slot of the quantum editing area to monitor that the area range of the quantum gate slot is dragged into the mirror image of the quantum gate assembly, and then converting the slot display of the quantum gate slot from a first state to a second state;
responding to a loosening event mirroring the quantum gate assembly, and judging whether the loosening event is in the area range of any quantum gate slot to be edited;
and if so, displaying the mirror image of the quantum gate assembly at the quantum gate slot to be edited, and storing the attribute information of the quantum gate assembly in the preset editing data object into the quantum gate slot to be edited.
In one or some optional embodiments, after the quantum gate slot to be edited shows a corresponding quantum gate component mirror image, and the attribute information of the quantum gate component in the preset editing data object is stored in the quantum gate slot to be edited, the method further includes:
and if the quantum gate assembly displayed in the quantum gate slot to be edited is a multi-bit quantum gate, the slot displays of other quantum gate slots which are positioned at the same depth as the quantum gate slot to be edited are converted from the first state to the third state.
In one or some alternative embodiments, the method further comprises:
aiming at other quantum gate slots which are at the same depth as the quantum gate slot to be edited:
and if a clicking operation instruction is received, connecting the clicked quantum gate slot positions with the quantum gate slot positions to be edited, converting the slot position display of all the quantum gate slot positions on the connection from a third state to a fourth state, and converting the slot position display of the rest quantum gate slot positions outside the connection from the third state to the first state.
In one or some optional embodiments, the attribute information of the multi-bit quantum gate includes control side attribute information, the method further comprising:
judging whether the quantum bit of the quantum circuit where the quantum gate slot to be edited is located is larger than the quantum bit of the quantum circuit where the quantum gate slot after clicking is located;
if yes, modifying the control end attribute information of the quantum gate assembly of the quantum gate slot to be edited into upward connection;
and if not, modifying the attribute information of the control end of the quantum gate assembly of the quantum gate slot to be edited into downward connection.
In one or some optional embodiments, the attribute information of the quantum gate slot includes type information, the method further comprising:
If the quantum bit of the quantum circuit where the quantum gate slot to be edited is larger than the quantum bit of the quantum circuit where the quantum gate slot after clicking is located, modifying the type information of the quantum gate slot after clicking into selected and downward connection, and modifying the type information of other quantum gate slots on a connecting line into up-down connection;
if the quantum bit of the quantum circuit where the quantum gate slot to be edited is smaller than the quantum bit of the quantum circuit where the quantum gate slot after clicking is located, modifying the type information of the quantum gate slot after clicking into selected and upward connection, and modifying the type information of other quantum gate slots on the connecting line into up-down connection.
In one or some optional embodiments, after the quantum gate slot display to be edited transitions from the first state to the second state, the method further comprises:
and responding to the quantum gate slot monitoring, wherein the mirror image of the dragged quantum gate assembly is separated from the range of the self area, so that the slot display of the quantum gate slot is converted from the second state to the first state.
In one or some optional embodiments, before the quantum gate slot to be edited shows a corresponding quantum gate component mirror image, and the attribute information of the quantum gate component in the preset editing data object is stored in the quantum gate slot to be edited, the method further includes:
And judging whether the quantum gate slot to be edited is empty, if not, sequentially moving the quantum gate assembly mirror image of the quantum gate slot with the depth larger than or equal to the depth of the quantum gate slot to be edited in the quantum circuit editing area and the attribute information of the corresponding quantum gate assembly to the quantum gate slot with the latter depth.
In one or some alternative embodiments, the method further comprises:
and if the hand loosening event is not in the region range of any quantum gate slot to be edited, deleting the quantum gate component mirror image and the attribute information of the corresponding quantum gate component in the preset editing data object.
In one or some alternative embodiments, the method further comprises:
and responding to a dragging instruction for dragging the quantum gate assembly image of the quantum gate slot to be edited to the removing area range, and displaying the removing area.
In one or some alternative embodiments, the method further comprises:
deleting the quantum gate component image in the quantum gate slot to be edited and the attribute information of the corresponding quantum gate component in the preset editing data object, or,
And responding to a release operation instruction after dragging the quantum gate assembly of the quantum gate slot to be edited out of the removal area, and reserving the quantum gate assembly mirror image in the quantum gate slot to be edited and attribute information of the corresponding quantum gate assembly in the preset editing data object.
In one or some alternative embodiments, the method further comprises:
and responding to the sliding instruction of the quantum gate editing area, and displaying the visual area range of the quantum gate editing area along with the sliding instruction.
In a second aspect, an embodiment of the present application provides a quantum wire editing apparatus, the apparatus including:
the quantum gate selection module is configured to respond to a touch instruction of any quantum gate component in the quantum gate selection column, store attribute information of the quantum gate component into a preset editing data object and generate a quantum gate component mirror image;
the processing module is configured to respond to a dragging instruction of the quantum gate assembly mirror image, and drag the quantum gate assembly mirror image and the preset editing data object to a quantum circuit editing area through a quantum gate selection bar;
the display state switching module is configured to respond to any quantum gate slot of the quantum editing area to monitor that the area range of the quantum gate slot is dragged into the mirror image of the quantum gate assembly, and then the slot display of the quantum gate slot is converted from a first state to a second state;
The judging module is configured to respond to a loosening event mirrored to the quantum gate assembly and judge that the loosening event is in the area range of any quantum gate slot to be edited;
and the editing module is configured to display the mirror image of the quantum gate assembly at the quantum gate slot to be edited if the loosening event is in the area range of the quantum gate slot to be edited, and store the attribute information of the quantum gate assembly in the preset editing data object into the quantum gate slot to be edited.
In a third aspect, an embodiment of the present application provides a computer device for quantum wire editing, the computer device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, the processor implementing the quantum wire editing method according to the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the quantum wire editing method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on a computer device, cause the computer device to perform the quantum wire editing method of the first aspect.
In a sixth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface, the communication interface and the processor being coupled, the processor being configured to execute a computer program or instructions to implement the quantum wire editing method according to the first aspect.
Compared with the prior art, the embodiment of the application has the beneficial effects that:
according to the quantum circuit editing method provided by the embodiment of the application, in the human-computer interaction process, the mirror image of the quantum gate assembly in the quantum gate selection column can be generated according to the instruction of a user, and the display of the quantum gate assembly mirror image in the quantum editing area can be realized along with the dragging instruction of the user, and the display state of the quantum gate slot position is switched according to different operation stages of quantum circuit editing, and for any quantum gate slot position in an initial first state, a second state is displayed when the quantum gate assembly mirror image appears in the area range of the quantum gate slot position, and the quantum gate assembly mirror image is displayed after the quantum gate assembly mirror image is inserted into the quantum gate slot position, so that the display effect of different editing states in the quantum gate dragging editing process is more perfect, and the user experience of the user in the interaction process is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a quantum route editing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of an operation interface of a display screen of a client according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an overall layout of layout components of the regions of the operator interface shown in FIG. 2;
FIG. 4 is a partial schematic view of a quantum wire editing region of the operator interface shown in FIG. 2;
FIG. 5 is a schematic diagram of an edit quantum wire of a quantum wire edit region of the operator interface shown in FIG. 2;
FIG. 6 is a schematic diagram of a quantum wire data list of a quantum wire editing region;
FIG. 7 is a diagram of a change in a quantum wire data list as a quantum gate slot of a quantum wire editing region is inserted into a quantum gate assembly;
fig. 8 is a schematic diagram of attribute information change in the schematic diagram of the quantum circuit data list change shown in fig. 7;
FIG. 9 is a diagram of another quantum wire data list change when a quantum gate slot of a quantum wire editing region is inserted into a quantum gate assembly;
FIG. 10 is a schematic diagram of different states of a quantum gate slot in a quantum wire editing region;
FIG. 11 is a schematic diagram of the state of the same depth slot and the attribute information of the quantum gate slot when the quantum gate slot of the quantum line editing region is inserted into the CNOT quantum gate assembly;
fig. 12 is a schematic diagram of a state after selecting a control slot for the CNOT quantum gate assembly shown in fig. 11;
FIG. 13 is a schematic diagram of the variation of the attribute information corresponding to the quantum gate slot of FIG. 12 in the insertion of a CNOT quantum gate assembly;
FIG. 14 is a schematic illustration of sliding a quantum wire editing region of the operator interface shown in FIG. 2;
fig. 15 is a schematic structural diagram of a quantum route editing device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
It should be understood that the sequence numbers of the steps in the following embodiments do not mean the order of execution, and the execution order of the processes should be determined by the functions and the internal logic, and should not be construed as limiting the implementation process of the embodiments of the present application.
In order to illustrate the technical scheme of the application, the following description is made by specific examples.
Example 1
The embodiment of the application provides a quantum route editing method which can be applied to various clients with display screens, including but not limited to mobile phones, tablet computers, portable computers and desktop computers. The client side realizes quantum line editing by interacting with the use object, the use object sends an operation instruction by touching a display screen of the client side, and the client side realizes interaction with the use object according to the corresponding operation instruction.
Referring to fig. 1, which is a schematic flow chart of a quantum wire editing method according to an embodiment of the present application, referring to fig. 1, the quantum wire editing method may include the following steps:
s101: and responding to a touch instruction of any quantum gate component in the quantum gate selection column, storing attribute information of the quantum gate component into a preset editing data object, and generating a quantum gate component mirror image.
In step S101, any one of the quantum gate components in the quantum gate selection field listens for a touch event in real time, and responds to a touch command to any one of the quantum gate components in the quantum gate selection field.
In a specific embodiment, the display screen of the client displays an operation interface of an application executing the quantum route editing method, and referring to fig. 2, at least the following areas are presented in the operation interface:
the area of the tag '1' is a quantum gate selection column, and the quantum gate assembly can be selected by dragging the quantum gate assembly in the area;
the area of the label '2' is the depth of the quantum circuit, and the depth position of the current quantum circuit can be clearly known from the area;
the region of the label "3" is the number of the quantum wire, Q0, Q2..qn respectively represents the quantum bit where the quantum wire is located, and "|0>" represents the initial state of the quantum bit;
The area of the label '4' is a corresponding bit measurement mark, and an icon in the area can be clicked to select whether to measure the projection probability of the corresponding bit or not;
the area of the tag '5' is a removal area of the quantum circuit, is invisible in a normal state, and is displayed when the quantum gate assembly image is dragged to the range of the removal area;
the area of the label '6' is a quantum wire editing area, and the operations of inserting, connecting, adjusting and deleting the quantum wire can be performed.
Taking the above client as an Android client as an example, the above operation interface may use the layout component RecyclerView, linearLayout in the Android SDK and the nestedscriolview to perform a combined layout, and the overall layout structure of the layout components in each region of the operation interface is as shown in fig. 3, and since the quantum circuit editing region needs to implement more quantum bits under the limited scope of the visualization region, the quantum circuit editing region uses the nestedscriolview layout component to perform a layout. The NestedScrollView layout component is used to implement a slide up and down to adjust the vertical region, and the RecycloView layout component is used to implement a slide left and right to adjust the lateral region to display a greater quantum depth.
After the operation interface is realized by the layout mode, a quantum gate component needs to be added in the quantum gate selection column. The quantum gate assembly realizes the display of the image of the quantum gate assembly by inheriting the public assembly, and adding ImageView, and for Rx, ry and Rz rotary quantum gates, the type and angle value of the quantum gate can be displayed by adding a TextView text assembly; the quantum gate type attribute, namely the type attribute, can be built in the quantum gate assembly, and different quantum gate assembly images can be displayed by setting different type attributes; a rotating quantum gate angle attribute, i.e., angle attribute, is created built into the quantum gate assembly. For example, for an image of an Ry rotary quantum gate, an angle value may be set at its upper right corner, representing the angle attribute of the quantum gate assembly.
After the quantum gate component is added in the quantum gate selection column, the quantum gate component needs to be dragged into a quantum gate slot of a quantum circuit editing area to realize the editing function of the quantum circuit. The quantum gate slot refers to a position for placing the quantum gate assembly, as shown in fig. 4, each square frame in the figure represents an area range of the quantum gate slot, the quantum gate slot can be realized by a custom View assembly, and the quantum gate slot has an attribute for recording a state of the assembly, namely, a state of the quantum gate slot.
After the function of the quantum gate slot is realized, a plurality of quantum gate slots are spliced together through the RecycloView layout component, so that a complete quantum circuit can be realized, as shown in FIG. 5, wherein the frame selection partial area is one quantum circuit.
In a specific embodiment, the attribute information GateInfo of the quantum gate assembly may be contained in a data packet in the following three-bit quantum gate assembly attribute information GateInfo data packet format:
{"angle":0.0,"controlQubit":-1,"controlQubit2":-1,"delay":0.0,"qubitIndex":0,"timeslot":0,"type":"CCNOT"};
wherein:
the angle attribute information "angle" indicates the angle of the rotary quantum gate, such as the angle of Rx, ry and Rz rotary quantum gates, and corresponds to the value of the upper right corner of the rotary quantum gate assembly;
the control end attribute information of "control qubit" and "control qubit2" respectively represent two control endpoints of the three-bit gate, such as two control endpoints of the CCNOT, the control endpoints are connection points in a slot state, and the slot component can determine the state at the same depth position on other quantum bit lines according to the data of the quantum gate component in the slot;
the delay attribute information 'delay' represents the delay time of the delay quantum gate and corresponds to the numerical value of the upper right corner of the delay quantum gate assembly;
the quantum bit attribute information "qubit index" represents the quantum bit where the quantum gate assembly is located, and corresponds to Q0 to Q2..qn on the operation interface;
Depth attribute information "time" indicates a depth position on a quantum wire where the quantum gate assembly is located;
the type attribute information "type" indicates a corresponding quantum gate type, and icons on the quantum gate component display different icons according to this data. Quantum gate types such as H quantum gate, X quantum gate, and CNOT quantum gate.
In some other embodiments, for two-bit gates, only one "control qubit" is used to record one control endpoint of the two-bit gate, such as one control endpoint of the CNOT, representing another bit connected to the two-bit gate. And for single bit gates, control side attribute information is not included.
In step S101, any one of the quantum gate elements in the quantum gate selection field responds to the touch command, because the quantum gate element listens for the touch event onTouchEvent. After the quantum gate assembly responds to the touch instruction, attribute information GateInfo of the quantum gate assembly is stored into a preset editing data object, the preset editing data object can be set as a ClipData object, then a startDrag method of the quantum gate assembly is called, the ClipData object with the attribute information of the quantum gate assembly is transmitted to the startDrag method, meanwhile, a quantum gate assembly mirror image is generated, and at the moment, the quantum gate assembly mirror image carrying the ClipData object can be dragged.
In the embodiment of the application, if a quantum gate assembly inserted into any quantum gate slot in a quantum line editing area responds to a touch instruction, the attribute information of the quantum gate assembly is stored into a preset editing data object to generate a mirror image of the quantum gate assembly, and the quantum gate assembly of the quantum gate slot is subjected to image hiding.
S102: and responding to a dragging instruction of the quantum gate assembly mirror image, and dragging the quantum gate assembly mirror image and the preset editing data object to a quantum circuit editing area by a quantum gate selection column.
In the step S102, after the quantum gate assembly responds to the touch command, a quantum gate assembly mirror image is generated, at this time, if the object is used to drag the quantum gate assembly mirror image, the quantum gate assembly mirror image and the preset editing data object are dragged to the quantum line editing area from the quantum gate selection field in response to the dragging command. Here, the quantum gate component mirror images the attribute information GateInfo of the carrier quantum gate component.
S103: and responding to any quantum gate slot of the quantum editing area to monitor the range of the area to drag into the mirror image of the quantum gate assembly, and then switching the slot display of the quantum gate slot from a first state to a second state.
In a specific embodiment, after executing the step S103, after the quantum gate slot display to be edited is converted from the first state to the second state, the method may further include:
and responding to the quantum gate slot monitoring, wherein the mirror image of the dragged quantum gate assembly is separated from the range of the self area, so that the slot display of the quantum gate slot is converted from the second state to the first state.
In step S103, any quantum gate slot in the quantum editing area is monitored by binding the setondraglister with the ondraglister, and in the onDrag callback of the ondraglister, whether the quantum gate component mirror image is dragged into the area of the quantum gate slot or not is detected, if the quantum gate component mirror image is already in the area, the slot display of the quantum gate slot is changed from the first state to the second state. And if the quantum gate slot monitoring is carried out so that the mirror image of the dragged quantum gate assembly is separated from the self area range, namely, the self area range of the quantum gate slot is removed by the mirror image of the quantum gate assembly is monitored again in the onDrag callback, the slot display of the quantum gate slot is converted from the second state to the first state. The first state is an initial state displayed before the quantum gate slot is not operated, and the second state is an intermediate process state displayed in the operation process of the quantum gate slot.
S104: responding to a loosening event mirroring the quantum gate assembly, and judging whether the loosening event is in the area range of any quantum gate slot to be edited; if yes, go to step S105, if no, go to step S106;
s105: displaying the mirror image of the quantum gate assembly at the quantum gate slot to be edited, and storing the attribute information of the quantum gate assembly in the preset editing data object into the quantum gate slot to be edited;
s106: and deleting the quantum gate component mirror image and the attribute information of the corresponding quantum gate component in the preset editing data object.
In the embodiment of the application, after the object is used for releasing the dragged quantum gate assembly mirror image, the quantum gate assembly mirror image can monitor a release event in the onDrag, respond to the release event, judge whether the release event is in the area range of any quantum gate slot to be edited, and delete the attribute information of the quantum gate assembly corresponding to the quantum gate assembly in the quantum gate assembly mirror image and the preset editing data object if the release event is not in the area range of any quantum gate slot to be edited, namely, belongs to invalid dragging. At this time, a process of invalid dragging is formed. And if the quantum gate assembly in the quantum circuit editing area is in invalid dragging, redisplaying the quantum gate assembly for image hiding in the quantum circuit editing area after the mirror image of the dragged quantum gate assembly is released by using the object.
Before executing the step S105, before the quantum gate slot to be edited shows the corresponding quantum gate component mirror image, and the attribute information of the quantum gate component in the preset editing data object is stored in the quantum gate slot to be edited, the method may further include:
and judging whether the quantum gate slot to be edited is empty, if not, sequentially moving the quantum gate assembly mirror image of the quantum gate slot with the depth larger than or equal to the depth of the quantum gate slot to be edited in the quantum circuit editing area and the attribute information of the corresponding quantum gate assembly to the quantum gate slot with the latter depth.
In the embodiment of the present application, a basic data packet format included in a quantum gate component attribute is GateInfo, and a slot on each quantum line includes a quantum gate component, that is, a set of gateinfos, as shown in fig. 6, and the format used by each quantum line is a List. After confirming that the loosening event is in the region range of any quantum door slot to be edited, storing the attribute information of the quantum door component in the preset editing data object into the quantum door slot to be edited, and judging whether the quantum door slot to be edited is empty at the moment, if yes, that is, the quantum door slot is not provided with the quantum door component, as shown in fig. 7, directly storing parameters such as type, angle and delay of the attribute information GateInfo of the quantum door component in the preset editing data object into the attribute information GateInfo of the quantum door component of the quantum door slot to be edited; if not, namely the quantum gate assembly is placed in the quantum gate slot, as shown in fig. 8, the quantum gate assembly mirror image of the quantum gate slot with the depth greater than or equal to the depth of the quantum gate slot to be edited in the quantum circuit editing area and the attribute information of the corresponding quantum gate assembly are sequentially moved to the quantum gate slot with the subsequent depth, and then parameters such as type, angle and delay of the attribute information GateInfo of the quantum gate assembly in the preset editing data object are stored in the attribute information GateInfo of the quantum gate assembly of the quantum gate slot to be edited.
In a specific embodiment, as shown in fig. 9, when the Z quantum gate component mirror image is placed in the quantum gate slot where the CNOT quantum gate component mirror image is located, the depth where the CNOT quantum gate component mirror image is located and all the quantum gate component mirror images in the depth and the attribute information of the corresponding quantum gate components are sequentially moved to the quantum gate slot of the next depth.
According to the embodiment of the application, according to different states, the quantum gate slot can realize icons showing different slot states; in addition, the quantum gate slot is provided with a quantum gate component which is invisible in a normal state, and the quantum gate component is displayed only when being dragged into and placed, and the corresponding quantum gate component is displayed according to the current state. The icons of different slot states of the quantum gate slot are shown in fig. 10, and mainly comprise the following steps:
normal state: refers to a state that the slot is not used normally;
hover state: a state when the finger quantum gate assembly is dragged in but is not put in, which indicates that the slot is selected, and a dotted line frame is displayed when the finger quantum gate assembly is in a hovering state, which indicates that the position is ready and waits for putting in;
connection to click state: the state is to wait for clicking, prompt users to click operation, click to confirm the connected slot position;
Connection state: the method comprises the steps of up-down connection, selection and downward connection, selection and upward connection, selection and up-down connection: the state of the slot is displayed when the quantum gate assembly of the slot is connected, and the state is used for showing the connection relation of the multi-bit gate.
In a specific embodiment, since if the quantum gate assembly is placed in the quantum gate slot of the quantum line editing area, the attribute information of the quantum gate assembly is finally stored in the attribute information of the quantum gate slot by the preset editing data object ClipData, in this embodiment of the present application, the quantum gate slot may further include some custom type of attribute information, such as "normal" for example, cnted_pre indicates "connect to click", cnted_cross indicates "connect up and down", CNTED indicates "select and connect up" or "select and connect down", where it is determined according to the size relationship between qubit and control qubit, and when "qubit" < "control qubit", display "select and connect down", otherwise display "select and connect up". In addition, the custom type also comprises 'selected and connected up and down', the state CNTED_CROSS needs to be satisfied, and the value of the qubit index is displayed only when the value is between the control Qubit and the control Qubit 2; "hover" is displayed when the state EMPTY is satisfied and the quantum gate assembly mirror drags to the quantum gate slot range.
The first state may be a "normal state", and the second state may be a "hover state".
After executing the step S105, the quantum gate slot to be edited displays the corresponding quantum gate component mirror image, and stores the attribute information of the quantum gate component in the preset editing data object into the quantum gate slot to be edited, the method may further include:
and if the quantum gate assembly displayed in the quantum gate slot to be edited is a multi-bit quantum gate, the slot displays of other quantum gate slots which are positioned at the same depth as the quantum gate slot to be edited are converted from the first state to the third state.
The third state may be a "connection to click state".
When the quantum gate components shown in the quantum gate slot to be edited are multi-bit quantum gates, such as CNOT, CZ, and CCNOT quantum gate components. The states of the quantum gate slots on other quantum lines with the same depth are required to be influenced, and for the multi-bit quantum gate, the states of the slots of the other quantum gate slots with the same depth as the quantum gate slots to be edited are required to be processed, and the states of the slots of the other quantum gate slots with the same depth as the quantum gate slots to be edited are in a 'connected state to be clicked'.
In a specific embodiment, as shown in fig. 11, taking a quantum gate component inserted into a quantum gate slot to be edited as an example of a CNOT quantum gate component, when parameters such as type, angle and delay of attribute information GateInfo of the CNOT quantum gate component are stored in attribute information GateInfo of the quantum gate component to be edited, the control qubit and the control qubit2 parameter in attribute information GateInfo of the quantum gate slot where the CNOT quantum gate component is located are both-1, which indicates that control is not connected, because the CNOT quantum gate component is a two-bit gate, another bit is required to be selected as a control bit, at this time, the quantum gate type of other quantum gate slots in the same depth as the quantum gate slot to be edited is set as cnted_pre, and the slot display is converted from a first state to a third state. The first state may be "normal", and the third state may be "connect to click".
In the step S105, if the quantum gate assembly displayed in the quantum gate slot to be edited is a multi-bit quantum gate, the slot display of other quantum gate slots at the same depth as the quantum gate slot to be edited is converted from the first state to the third state, and the method further includes:
Aiming at other quantum gate slots which are at the same depth as the quantum gate slot to be edited:
and if a clicking operation instruction is received, connecting the clicked quantum gate slot positions with the quantum gate slot positions to be edited, converting the slot position display of all the quantum gate slot positions on the connection from a third state to a fourth state, and converting the slot position display of the rest quantum gate slot positions outside the connection from the third state to the first state.
Wherein the fourth state is the "connected state".
In a specific embodiment, the quantum gate assembly placed in the quantum gate slot to be edited may be a CNOT quantum gate assembly, at this time, other quantum gate slots located at the same depth as the quantum gate slot to be edited are in a "connected to be clicked" state, as shown in fig. 12, after receiving a click operation instruction, the clicked quantum gate slot is connected to the quantum gate slot to be edited, and, as shown in fig. 13, a control qubit of the CNOT quantum gate assembly is set to a qubit index of attribute information GateInfo of the clicked quantum gate slot, and the slot displays of all quantum gate slots located on the connection line are converted from a "connected to be clicked" state to a fourth state, and the slot displays of the remaining quantum gate slots located outside the connection line are converted from a "connected to be clicked" state to be a first state, where the first state may be "normal", and the fourth state may be "selected and up connected" or "selected and down connected" according to the connection condition.
In the above step S105, the attribute information of the multi-bit quantum gate includes control side attribute information, and the method further includes:
judging whether the quantum bit of the quantum circuit where the quantum gate slot to be edited is located is larger than the quantum bit of the quantum circuit where the quantum gate slot after clicking is located;
if yes, modifying the control end attribute information of the quantum gate assembly of the quantum gate slot to be edited into upward connection;
and if not, modifying the attribute information of the control end of the quantum gate assembly of the quantum gate slot to be edited into downward connection.
In a specific embodiment, after the clicked quantum gate slot is connected with the quantum gate slot to be edited, whether the quantum bit of the quantum circuit where the quantum gate slot to be edited is located is larger than the quantum bit of the quantum circuit where the quantum gate slot to be edited is located is judged, namely whether the qubit index of the attribute information of the CNOT quantum gate assembly is larger than the control qubit is judged. If 'qubit index' > 'control qubit', modifying the control end attribute information of the quantum gate assembly of the quantum gate slot to be edited into upward connection; and if 'qubit index' < 'control qubit', modifying the control end attribute information of the quantum gate assembly of the quantum gate slot to be edited into downward connection.
In a specific embodiment, the attribute information of the quantum gate slot includes type information, and the method further includes:
if the quantum bit of the quantum circuit where the quantum gate slot to be edited is larger than the quantum bit of the quantum circuit where the quantum gate slot after clicking is located, modifying the type information of the quantum gate slot after clicking into selected and downward connection, and modifying the type information of other quantum gate slots on a connecting line into up-down connection;
if the quantum bit of the quantum circuit where the quantum gate slot to be edited is smaller than the quantum bit of the quantum circuit where the quantum gate slot after clicking is located, modifying the type information of the quantum gate slot after clicking into selected and upward connection, and modifying the type information of other quantum gate slots on the connecting line into up-down connection. At this time, the slot states of other quantum gate slots on the connection line are in a 'connection state'.
After the data formats of the quantum gate assembly and the quantum circuit are set in the above manner, the quantum gate assembly needs to be dragged to the quantum circuit editing area in the operation interface, and due to the limited range of the visual area, as shown in fig. 14, more quantum bits need to be displayed in a rolling manner by sliding the quantum circuit editing area up and down, or more depths of the quantum circuit need to be displayed in a rolling manner by sliding the quantum circuit editing area left and right. In the layout of the operation interface, the display range is adjusted by realizing sliding through the RecycloView layout component. The quantum circuit diagram editing area is composed of a plurality of recurvew layout components, but because the single recurvew layout components are independent, and a sliding event is the behavior of the single recurvew layout components, it is critical to keep each recurvew layout component aligned, and based on the fact, the sliding of the quantum circuit editing area can be realized by the following steps:
And responding to the sliding instruction of the quantum gate editing area, and displaying the visual area range of the quantum gate editing area along with the sliding instruction.
Specifically, in the NestedScrollView, a plurality of RecycloerView (one bit line uses one RecycloerView) is nested to realize each bit, and the RecycloerView can realize the transverse scrolling of a single bit, but in order to realize the transverse scrolling of a plurality of bits (namely the whole editing area), the OnScrollLister method of the RecycloerView monitors to realize the linkage scrolling of a plurality of bits. First, each Recycloview listens for a sliding event using addOnScrollListener, where the onScrolled callback in OnScrollListener obtains the distance to the current Recycloview move in real time. Then, after the other recurrerview acquires the moving distance, the recurrerview is moved by the same distance along the same direction by using the scrollBy of the recurrerview, that is, each recurrerview is moved to the position before the next recurrerview is moved. The up and down scrolling of the edit area is accomplished using a NestedScrollView component that scrolls by gesture sliding up and down when the content exceeds the specified area.
By the method, the quantum circuit editing area can slide up and down and left and right, the expandability of the depth of the quantum circuit is realized, the depth and the number of the quantum circuits can be set at will, and the quantum gate assembly beyond the visualization area can be checked by only scratching the screen in the corresponding direction.
In an alternative embodiment, since the use object may need to delete the quantum gate component during or after editing in the quantum route editing process, the method may further include:
and responding to a dragging instruction for dragging the quantum gate assembly image of the quantum gate slot to be edited to the removing area range, and displaying the removing area.
After the removal area is displayed, the applicable object can select to execute the deletion operation or keep the quantum gate component moved to the deletion area, and based on this, the method can further comprise:
deleting the quantum gate component image in the quantum gate slot to be edited and the attribute information of the corresponding quantum gate component in the preset editing data object, or,
and responding to a release operation instruction after dragging the quantum gate assembly of the quantum gate slot to be edited out of the removal area, and reserving the quantum gate assembly mirror image in the quantum gate slot to be edited and attribute information of the corresponding quantum gate assembly in the preset editing data object.
According to the quantum circuit editing method provided by the embodiment of the application, in the human-computer interaction process, the mirror image of the quantum gate assembly in the quantum gate selection column can be generated according to the instruction of a user, and the display of the quantum gate assembly mirror image in the quantum editing area can be realized along with the dragging instruction of the user, and the display state of the quantum gate slot position is switched according to different operation stages of quantum circuit editing, and for any quantum gate slot position in an initial first state, a second state is displayed when the quantum gate assembly mirror image appears in the area range of the quantum gate slot position, and the quantum gate assembly mirror image is displayed after the quantum gate assembly mirror image is inserted into the quantum gate slot position, so that the display effect of different editing states in the quantum gate dragging editing process is more perfect, and the user experience of the user in the interaction process is improved.
Example two
Based on the same inventive concept, an embodiment of the present application further provides a quantum wire editing apparatus, referring to fig. 15, including:
a quantum gate selection module 101 configured to store attribute information of any quantum gate component in a preset editing data object in response to a touch instruction to the quantum gate component in a quantum gate selection column, and generate a quantum gate component mirror image;
A processing module 102 configured to drag the quantum gate component mirror image and the preset editing data object from a quantum gate selection bar to a quantum line editing area in response to a drag instruction for the quantum gate component mirror image;
a display state switching module 103 configured to switch a slot display of the quantum gate slot from a first state to a second state in response to any quantum gate slot of the quantum editing region monitoring a self region range dragging into the quantum gate assembly mirror image;
a judging module 104 configured to respond to a loosening event mirrored to the quantum gate assembly, and judge that the loosening event is in the area range of any quantum gate slot to be edited;
and the editing module 105 is configured to display the quantum gate component mirror image at the quantum gate slot to be edited if the loosening event is in the area range of the quantum gate slot to be edited, and store the attribute information of the quantum gate component in the preset editing data object into the quantum gate slot to be edited.
Example III
Based on the same inventive concept, an embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the quantum wire editing method as described in the above embodiment one.
Example IV
Based on the same inventive concept, the embodiment of the present invention further provides a computer device for quantum wire editing, including a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the quantum wire editing method as described in the first embodiment.
Example five
Based on the same inventive concept, embodiments of the present invention also provide a computer program product comprising instructions which, when run on a computer device, cause the computer device to perform the quantum wire editing method as described in the above embodiment one.
Example six
Based on the same inventive concept, the embodiment of the present invention further provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a computer program or instructions to implement the quantum wire editing method as described in the first embodiment.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (11)

1. A quantum wire editing method, the method comprising:
responding to a touch instruction of any quantum gate component in a quantum gate selection column, storing attribute information of the quantum gate component into a preset editing data object, and generating a quantum gate component mirror image;
responding to a dragging instruction of the quantum gate assembly mirror image, and dragging the quantum gate assembly mirror image and the preset editing data object to a quantum circuit editing area by a quantum gate selection bar;
Responding to any quantum gate slot of the quantum editing area to monitor that the area range of the quantum gate slot is dragged into the mirror image of the quantum gate assembly, and then converting the slot display of the quantum gate slot from a first state to a second state;
responding to a loosening event mirroring the quantum gate assembly, and judging whether the loosening event is in the area range of any quantum gate slot to be edited;
and if so, displaying the mirror image of the quantum gate assembly at the quantum gate slot to be edited, and storing the attribute information of the quantum gate assembly in the preset editing data object into the quantum gate slot to be edited.
2. The method of claim 1, further comprising, after the quantum gate slot to be edited exhibits the corresponding quantum gate assembly mirror image and stores the attribute information of the quantum gate assembly in the preset editing data object into the quantum gate slot to be edited:
and if the quantum gate assembly displayed in the quantum gate slot to be edited is a multi-bit quantum gate, the slot displays of other quantum gate slots which are positioned at the same depth as the quantum gate slot to be edited are converted from the first state to the third state.
3. The method as recited in claim 2, further comprising:
Aiming at other quantum gate slots which are at the same depth as the quantum gate slot to be edited:
and if a clicking operation instruction is received, connecting the clicked quantum gate slot positions with the quantum gate slot positions to be edited, converting the slot position display of all the quantum gate slot positions on the connection from a third state to a fourth state, and converting the slot position display of the rest quantum gate slot positions outside the connection from the third state to the first state.
4. The method of claim 3, wherein the attribute information of the multi-bit quantum gate comprises control-side attribute information, the method further comprising:
judging whether the quantum bit of the quantum circuit where the quantum gate slot to be edited is located is larger than the quantum bit of the quantum circuit where the quantum gate slot after clicking is located;
if yes, modifying the control end attribute information of the quantum gate assembly of the quantum gate slot to be edited into upward connection;
and if not, modifying the attribute information of the control end of the quantum gate assembly of the quantum gate slot to be edited into downward connection.
5. The method of claim 4, wherein the attribute information of the quantum gate slot includes type information, the method further comprising:
If the quantum bit of the quantum circuit where the quantum gate slot to be edited is larger than the quantum bit of the quantum circuit where the quantum gate slot after clicking is located, modifying the type information of the quantum gate slot after clicking into selected and downward connection, and modifying the type information of other quantum gate slots on a connecting line into up-down connection;
if the quantum bit of the quantum circuit where the quantum gate slot to be edited is smaller than the quantum bit of the quantum circuit where the quantum gate slot after clicking is located, modifying the type information of the quantum gate slot after clicking into selected and upward connection, and modifying the type information of other quantum gate slots on the connecting line into up-down connection.
6. The method of claim 1, further comprising, after the quantum gate slot display to be edited transitions from a first state to a second state:
and responding to the quantum gate slot monitoring, wherein the mirror image of the dragged quantum gate assembly is separated from the range of the self area, so that the slot display of the quantum gate slot is converted from the second state to the first state.
7. The method of claim 1, further comprising, before the quantum gate slot to be edited exhibits the corresponding quantum gate assembly mirror image and stores the attribute information of the quantum gate assembly in the pre-edit data object into the quantum gate slot to be edited:
And judging whether the quantum gate slot to be edited is empty, if not, sequentially moving the quantum gate assembly mirror image of the quantum gate slot with the depth larger than or equal to the depth of the quantum gate slot to be edited in the quantum circuit editing area and the attribute information of the corresponding quantum gate assembly to the quantum gate slot with the latter depth.
8. The method of any one of claims 1-7, further comprising:
and if the hand loosening event is not in the region range of any quantum gate slot to be edited, deleting the quantum gate component mirror image and the attribute information of the corresponding quantum gate component in the preset editing data object.
9. The method of any one of claims 1-7, further comprising:
and responding to a dragging instruction for dragging the quantum gate assembly image of the quantum gate slot to be edited to the removing area range, and displaying the removing area.
10. The method as recited in claim 9, further comprising:
deleting the quantum gate component image in the quantum gate slot to be edited and the attribute information of the corresponding quantum gate component in the preset editing data object, or,
And responding to a release operation instruction after dragging the quantum gate assembly of the quantum gate slot to be edited out of the removal area, and reserving the quantum gate assembly mirror image in the quantum gate slot to be edited and attribute information of the corresponding quantum gate assembly in the preset editing data object.
11. The method of any one of claims 1-7, further comprising:
and responding to the sliding instruction of the quantum gate editing area, and displaying the visual area range of the quantum gate editing area along with the sliding instruction.
CN202310618169.2A 2023-05-29 2023-05-29 Quantum circuit editing method, device, equipment and medium Active CN116702912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310618169.2A CN116702912B (en) 2023-05-29 2023-05-29 Quantum circuit editing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310618169.2A CN116702912B (en) 2023-05-29 2023-05-29 Quantum circuit editing method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN116702912A true CN116702912A (en) 2023-09-05
CN116702912B CN116702912B (en) 2024-09-10

Family

ID=87823101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310618169.2A Active CN116702912B (en) 2023-05-29 2023-05-29 Quantum circuit editing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116702912B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2470715A1 (en) * 2001-12-22 2003-07-10 D-Wave Systems, Inc. Quantum computing integrated development environment
CN111401562A (en) * 2020-03-11 2020-07-10 合肥本源量子计算科技有限责任公司 Method and device for operating quantum circuit in terminal interface
CN112230818A (en) * 2020-10-30 2021-01-15 合肥本源量子计算科技有限责任公司 Method and device for editing quantum logic gate on terminal interface
CN114707655A (en) * 2022-03-30 2022-07-05 北京中科弧光量子软件技术有限公司 Quantum line conversion method, quantum line conversion system, storage medium and electronic equipment
US20220284336A1 (en) * 2021-07-14 2022-09-08 Beijing Baidu Netcom Science Technology Co., Ltd. Processing method for quantum circuit, electronic device, and storage medium
CN115660097A (en) * 2022-10-14 2023-01-31 山东云海国创云计算装备产业创新中心有限公司 Graph editing method, device and medium for compact quantum logic circuit diagram

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2470715A1 (en) * 2001-12-22 2003-07-10 D-Wave Systems, Inc. Quantum computing integrated development environment
CN111401562A (en) * 2020-03-11 2020-07-10 合肥本源量子计算科技有限责任公司 Method and device for operating quantum circuit in terminal interface
CN112230818A (en) * 2020-10-30 2021-01-15 合肥本源量子计算科技有限责任公司 Method and device for editing quantum logic gate on terminal interface
US20220284336A1 (en) * 2021-07-14 2022-09-08 Beijing Baidu Netcom Science Technology Co., Ltd. Processing method for quantum circuit, electronic device, and storage medium
CN114707655A (en) * 2022-03-30 2022-07-05 北京中科弧光量子软件技术有限公司 Quantum line conversion method, quantum line conversion system, storage medium and electronic equipment
CN115660097A (en) * 2022-10-14 2023-01-31 山东云海国创云计算装备产业创新中心有限公司 Graph editing method, device and medium for compact quantum logic circuit diagram

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
夏帅;徐宇嘉;丁郁文;余霖;周扬;朱蔚;陈赛;李志强;: "基于SVG的在线量子电路设计平台的研究与实现", 电脑知识与技术, no. 36, 25 December 2016 (2016-12-25) *

Also Published As

Publication number Publication date
CN116702912B (en) 2024-09-10

Similar Documents

Publication Publication Date Title
US11132820B2 (en) Graph expansion mini-view
EP2584462B1 (en) Method of rendering a user interface
US8984448B2 (en) Method of rendering a user interface
EP2584463B1 (en) Method of rendering a user interface
US9189144B2 (en) Multi-touch gesture-based interface for network design and management
CA2795183C (en) Temporary formatting and charting of selected data
US20130093764A1 (en) Method of animating a rearrangement of ui elements on a display screen of an electronic device
US7793219B1 (en) Construction of multimedia compositions
CN108829314B (en) Screenshot selecting interface selection method, device, equipment and storage medium
JP2012507089A (en) Surface and manage window-specific controls
JP2007257642A (en) Apparatus, method and system for highlighting related user interface control
CN104063128B (en) A kind of information processing method and electronic equipment
EP3485358B1 (en) Electronic device and method thereof for managing applications
CN108804002A (en) Text annotation method and device for interactive intelligent equipment
US9372609B2 (en) Asset-based animation timelines
CN114527897B (en) Tracking and restoring pointer locations between applications
US20110107256A1 (en) Zooming Task Management
US20140245197A1 (en) Duplicating graphical widgets
CN110688190A (en) Control method and device of intelligent interactive panel
JP2016085523A (en) Method for displaying node, and computer for displaying node and computer program thereof
EP3364637B1 (en) Method and apparatus for filtering object by means of pressure
CN116702912B (en) Quantum circuit editing method, device, equipment and medium
JP2000187547A (en) Device and method for controlling scroll
CN117950777A (en) Method, device and storage medium for previewing background application program
CN117369689A (en) Editing method and device for test cases, storage medium and terminal equipment

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
GR01 Patent grant
GR01 Patent grant