Quantum circuit design method based on multi-gate fixed combination unit and selection mechanism and related device
By designing quantum circuits using multiple fixed-combination units on a quantum computing cloud platform, the limitation of a single quantum logic gate is solved, enabling efficient and flexible quantum circuit design and optimization that is adapted to the execution of quantum processors.
Patent Information
- Application Number
- CN202411986056.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2026-03-03
AI Technical Summary
Existing quantum computers can only add a single quantum logic gate in quantum circuit design, resulting in low design efficiency and failing to meet users' needs for complex and flexible quantum circuits.
A quantum circuit design method based on multi-gate fixed combination units and selection mechanism is adopted. The initial quantum circuit framework is obtained through a quantum computing cloud platform, and the quantum logic gate sequence is filled by multi-gate fixed combination unit software system components. This allows users to flexibly combine quantum logic gates, optimize and map quantum circuits to adapt to quantum processors.
It improves the efficiency and flexibility of quantum circuit design, simplifies the design process, ensures that quantum circuits execute correctly on quantum processors, and lays the foundation for quantum computing applications.
Smart Images

Figure CN121599141A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of quantum computing technology, and in particular to a quantum circuit design method and related device based on multiple fixed combination units and selection mechanisms. Background Technology
[0002] Currently, the quantum circuit design process provided by quantum computers (including physical machines, cloud platforms, and quantum virtual machines / quantum simulators) is mainly based on a single native quantum logic gate. That is, only one quantum logic gate can be added to the quantum circuit at a time. This method greatly limits the design efficiency of quantum circuits. As the application of quantum computing deepens, users' design requirements for quantum circuits are becoming more and more complex and diverse. The traditional single quantum logic gate design method can no longer meet users' needs for efficient, complex, and flexible design of quantum circuits.
[0003] This leads to a new quantum circuit design method, which allows users to design quantum circuits more quickly and flexibly combine different quantum logic gates according to actual needs. This not only allows for the design of more complex quantum circuits but also improves the processing efficiency of quantum computing. Summary of the Invention
[0004] The purpose of this invention is to provide a quantum circuit design method and related apparatus based on a multi-gate fixed combination unit and selection mechanism, which aims to enable users to design quantum circuits more quickly and flexibly combine different quantum logic gates according to actual needs, thereby improving the processing efficiency of quantum computing while designing more complex quantum circuits.
[0005] One embodiment of the present invention provides a quantum circuit design method based on multiple fixed combination units and selection mechanisms, the method comprising:
[0006] A quantum circuit to be filled is obtained based on a quantum computing cloud platform; the quantum circuit to be filled is a quantum circuit design framework in which the number of qubits of the quantum circuit has been determined and the qubits are set to an initial state, but no quantum logic gate operations are inserted.
[0007] The target multi-gate fixed combination unit is obtained by calling the multi-gate fixed combination unit software system component of the quantum computing cloud platform, and the target multi-gate fixed combination unit is filled into the quantum circuit to be filled based on the selection mechanism of the quantum computing system until the quantum circuit design is completed; the multi-gate fixed combination unit is used to characterize the function of multiple quantum logic gates in the quantum computing system; the function includes a sequence of quantum logic gates that function sequentially on different qubits according to a certain execution time order; the selection mechanism is a computer software implementation so that any of the multi-gate fixed combination units can be perceived, selected and applied to the quantum circuit design by the quantum circuit designer in a human-computer interaction manner;
[0008] Transform the filled quantum circuit into a quantum circuit that is executed in a quantum processor.
[0009] Optionally, acquiring a quantum circuit to be filled based on a quantum computing cloud platform includes:
[0010] Initiate a quantum circuit design request based on a quantum computing cloud platform;
[0011] In response to the design request of the quantum circuit, the quantum computing cloud platform provides a quantum circuit framework to be filled, and sets an initial quantum state for each qubit in the quantum circuit framework to obtain the quantum circuit to be filled.
[0012] Optionally, obtaining the target multi-gate fixed combination unit by invoking the multi-gate fixed combination unit software system component of the quantum computing cloud platform includes:
[0013] Based on the logical requirements of the quantum algorithm implemented by the quantum circuit to be filled, as determined by the user, the target multi-gate fixed combination unit is invoked based on the multi-gate fixed combination unit software system component of the quantum computing cloud platform to obtain the target multi-gate fixed combination unit.
[0014] Optionally, filling the target multi-gate fixed combination unit into the quantum circuit to be filled based on the selection mechanism of the quantum computing system includes:
[0015] The acquired target multi-gate fixed combination units are then filled into the corresponding positions of the quantum circuit to be filled based on the selection mechanism of the quantum computing system.
[0016] Optionally, the corresponding positions of the quantum circuit to be filled include:
[0017] The execution timing of quantum bits in quantum circuits and target multi-gate fixed combination units.
[0018] Optionally, the process of converting the filled quantum circuit into a quantum circuit that executes on a quantum processor includes:
[0019] The designed quantum circuit is processed to obtain a quantum circuit that can be executed by a quantum processor.
[0020] Optionally, the line processing procedure includes one or a combination of the following:
[0021] Quantum circuit optimization processing and quantum circuit mapping processing.
[0022] Another embodiment of the present invention provides a quantum circuit design device based on multiple fixed combination units and selection mechanisms, the device comprising:
[0023] An initialization unit is used to obtain a quantum circuit to be filled based on a quantum computing cloud platform; the quantum circuit to be filled is a quantum circuit design framework in which the number of qubits of the quantum circuit has been determined and the qubits are set to an initial state, but no quantum logic gate operations are inserted.
[0024] The calling unit is used to obtain a target multi-gate fixed combination unit by calling the multi-gate fixed combination unit software system component of the quantum computing cloud platform, and to fill the target multi-gate fixed combination unit into the quantum circuit to be filled based on the selection mechanism of the quantum computing system, until the quantum circuit design is completed; the multi-gate fixed combination unit is used to characterize the function of multiple quantum logic gates in the quantum computing system; the function includes a sequence of quantum logic gates that function sequentially on different qubits according to a certain execution time order; the selection mechanism is a computer software implementation so that any of the multi-gate fixed combination units can be perceived, selected and applied to the quantum circuit design by the quantum circuit designer in a human-computer interaction manner;
[0025] An execution unit is used to transform a completed quantum circuit into a quantum circuit that is executed in a quantum processor.
[0026] Another embodiment of the present invention provides an electronic device, wherein the computer-readable storage medium stores a computer program, the computer program including program instructions, which, when executed by a processor, perform the methods described in any of the above embodiments.
[0027] Another embodiment of the present invention provides a computer-readable storage medium storing a computer program, the computer program including program instructions that, when executed by a processor, perform the methods described in any of the above embodiments.
[0028] Another embodiment of the present invention provides a quantum computer operating system, which implements quantum circuit design based on multiple fixed combination units and selection mechanisms according to the method described in any of the above embodiments.
[0029] Compared with existing technologies, this invention first obtains a quantum circuit to be filled based on a quantum computing cloud platform. The quantum circuit to be filled is a quantum circuit design framework in which the number of qubits has been determined and the qubits are set to an initial state without any quantum logic gate operations. Then, a target multi-gate fixed combination unit is obtained by calling the multi-gate fixed combination unit software system component of the quantum computing cloud platform, and the target multi-gate fixed combination unit is filled into the quantum circuit to be filled based on the selection mechanism of the quantum computing system until the quantum circuit design is completed. The multi-gate fixed combination unit is used to characterize the operation mode of multiple quantum logic gates in the quantum computing system. The operation mode includes a sequence of quantum logic gates that operate sequentially on different qubits according to a certain execution time order. The selection mechanism is a computer software implementation so that any of the multi-gate fixed combination units can be perceived, selected, and applied to the quantum circuit design by the quantum circuit designer in a human-computer interaction manner. Finally, the filled quantum circuit is transformed into a quantum circuit that is executed in a quantum processor.
[0030] This invention first obtains a quantum circuit to be filled based on a quantum computing cloud platform. The quantum circuit to be filled is a quantum circuit design framework with a determined number of qubits and an initial state for each qubit, but without any quantum logic gate operations. By utilizing the quantum computing cloud platform, a convenient, efficient, and resource-rich environment is provided for users to construct quantum circuits. Users can obtain a quantum circuit design framework with a determined number of qubits and an initial state for the qubits, providing a foundation for subsequent quantum circuit design. Then, by calling the multi-gate fixed-combination unit software system component of the quantum computing cloud platform, a target multi-gate fixed-combination unit is obtained, and the target multi-gate fixed-combination unit is filled into the quantum circuit to be filled based on the selection mechanism of the quantum computing system, thus completing the quantum circuit design. The multi-gate fixed-combination unit is used to characterize the operation mode of multiple quantum logic gates in the quantum computing system. The operation mode includes a sequence of quantum logic gates that operate sequentially on different qubits according to a certain execution timing. The selection mechanism is a computer software implementation method to ensure that any of the multi-gate fixed combinations... Units are perceived, selected, and applied to quantum circuit design by quantum circuit designers through human-computer interaction. By calling target multi-gate fixed-combination units in the multi-gate fixed-combination unit software system component of the quantum computing cloud platform, users can quickly obtain target multi-gate fixed-combination units composed of one or more native quantum logic gates. These fixed-combination units are pre-designed and optimized, capable of performing specific quantum operations, thereby improving the overall design performance and efficiency of quantum circuits. Users can fill these multi-gate fixed-combination units into the quantum circuit to be filled according to their needs and specified application methods. This not only simplifies the quantum circuit design process but also improves the flexibility and accuracy of circuit design. Finally, the filled quantum circuit is transformed into a quantum circuit that can be executed on a quantum processor. By converting the designed quantum circuit into an executable format on a quantum processor, this step ensures that the quantum circuit can run correctly on actual quantum hardware. This step usually includes optimization and mapping of the quantum circuit to ensure that it can execute efficiently under the hardware limitations of the quantum processor, laying a solid foundation for future quantum computing applications. Attached Figure Description
[0031] Figure 1 This is a network block diagram of a quantum circuit design system based on a multi-gate fixed combination unit and selection mechanism, provided as an embodiment of the present invention.
[0032] Figure 2 This is a flowchart illustrating a quantum circuit design method based on a multi-gate fixed combination unit and selection mechanism, provided as an embodiment of the present invention.
[0033] Figure 3This is a flowchart of a method for designing a quantum circuit to be filled, provided as an embodiment of the present invention.
[0034] Figure 4 This is a flowchart of a method for obtaining a target multi-gate fixed combination unit provided in an embodiment of the present invention.
[0035] Figure 5 This is a structural diagram of a quantum circuit design device based on a multi-gate fixed combination unit and selection mechanism, provided as an embodiment of the present invention.
[0036] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0037] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0038] Figure 1 This is a network block diagram of a quantum circuit design system based on a multi-gate fixed combination unit and selection mechanism provided by an embodiment of the present invention. The quantum circuit design system based on a multi-gate fixed combination unit and selection mechanism may include a network 110, a server 120, a wireless device 130, a client 140, storage 150, a classical computing unit 160, a quantum computing unit 170, and may also include additional memory, a classical processor, a quantum processor, and other devices (not shown).
[0039] Network 110 is a medium used to provide communication links between various devices and computers connected within a quantum circuit design system based on multiple fixed combination units and selection mechanisms. These include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The connection method can be wired, wireless communication links, or fiber optic cables.
[0040] Server 120, wireless device 130, and client 140 are conventional data processing systems that may contain data and application programs or software tools that perform conventional computational processes. Client 140 may be a personal computer or a network computer, so the data may also be provided by server 120. Wireless device 130 may be a smartphone, tablet, laptop, smart wearable device, etc. Storage unit 150 may include database 151, which can be configured to store data such as qubit parameters, quantum logic gate parameters, quantum circuits, and quantum programs.
[0041] The classical computing unit 160 (quantum computing unit 170) may include a classical processor 161 (quantum processor 171) for processing classical data (quantum data) and a memory 162 (memory 172) for storing classical data (quantum data). The classical data (quantum data) may be a boot file, an operating system image, and an application program 163 (application program 173). The application program 163 (application program 173) may be used to implement a quantum algorithm compiled according to the quantum circuit design method based on multiple fixed combination units and selection mechanism provided in the embodiments of the present invention.
[0042] Any data or information stored or generated in the classical computing unit 160 (quantum computing unit 170) can also be configured to be stored or generated in another classical (quantum) processing system in a similar manner, and any application executed therein can also be configured to be executed in another classical (quantum) processing system in a similar manner.
[0043] It should be noted that a true quantum computer has a hybrid structure, which includes at least... Figure 1 The system consists of two main parts: the classical computing unit 160, which is responsible for performing classical calculations and control; and the quantum computing unit 170, which is responsible for running quantum programs to achieve quantum computing.
[0044] The aforementioned classical computing unit 160 and quantum computing unit 170 can be integrated into a single device or distributed across two different devices. For example, a first device including the classical computing unit 160 runs a classical computer operating system, providing quantum application development tools and services, as well as the storage and network services required for quantum applications. Users develop quantum programs using the quantum application development tools and services on the second device, and send these quantum programs to a second device including the quantum computing unit 170 via the network services. The second device runs a quantum computer operating system, which parses and compiles the quantum program's code into instructions that the quantum processor 170 can recognize and execute. The quantum processor 170 then implements the quantum algorithm corresponding to the quantum program based on these instructions.
[0045] The computing units of the classic processor 161 within the classic computing unit 160 are based on CMOS transistors on a silicon chip. These computing units are not limited by time or coherence; that is, they are available at any time without time constraints. Furthermore, the number of such computing units in a silicon chip is sufficient; currently, a single classic processor 161 contains tens of thousands of computing units. Given this sufficient number and the fixed selectable computing logic of the CMOS transistors (e.g., AND logic), computational performance is achieved by combining a large number of CMOS transistors with a limited set of logic functions during operation.
[0046] In the quantum computing unit 170, the basic computing unit of the quantum processor 171 is the qubit. The input of a qubit is limited by coherence and coherence time; that is, a qubit is limited by its available usage time and is not always readily available. Making full use of qubits within their available usage time is a key challenge in quantum computing. Furthermore, the number of qubits in a quantum computer is one of the representative indicators of its performance. Each qubit performs computational functions through on-demand configured logical functions. Given the limited number of qubits and the diverse logical functions available in quantum computing, such as Hadamard gates (H gates), Pauli-X gates (X gates), Pauli-Y gates (Y gates), Pauli-Z gates (Z gates), X gates, RY gates, RZ gates, CNOT gates, CR gates, iSWAP gates, Tofoli gates, etc., quantum computing requires combining a limited number of qubits with diverse logical function combinations to achieve computational effects.
[0047] Based on these differences, the design of classical logic functions applied to CMOS transistors and the design of quantum logic functions applied to qubits are significantly and fundamentally different. The design of classical logic functions applied to CMOS transistors does not need to consider the individuality of CMOS transistors. For example, the representation of a CMOS transistor in a silicon chip is its individual identifier, location, and usable time of each CMOS transistor. Therefore, classical algorithms composed of classical logic functions only express the operational relationship of the algorithm, not the algorithm's dependence on individual CMOS transistors.
[0048] Quantum logic functions applied to qubits need to consider the individuality of each qubit, such as its position within the quantum chip, its relationship with surrounding qubits, and the duration of its usable time. Therefore, quantum algorithms composed of quantum logic functions not only express the computational relationships within the algorithm but also its dependence on the individual qubits.
[0049] A quantum chip can include qubits and channels for controlling them. Quantum logic gates are implemented using analog signals. Different combinations of analog signals are applied to the qubits through these channels, thereby creating quantum circuits with different functions to process data. Therefore, the design of quantum logic functions in the qubits (including the design of whether qubits are used and the design of the efficiency of each qubit) is crucial for improving the computational performance of quantum computers and requires special design. This is the unique characteristic of quantum algorithms based on quantum logic functions, and it is fundamentally and significantly different from classical algorithms based on classical logic functions. The aforementioned design considerations for qubits are technical problems that ordinary computing devices do not need to consider or address.
[0050] In the field of quantum computing, the quantum circuit design process provided by quantum computers (including physical machines, cloud platforms, and quantum virtual machines / quantum simulators) is currently mainly based on a single native quantum logic gate. That is, only one quantum logic gate can be added to the quantum circuit at a time. This method greatly limits the design efficiency of quantum circuits. As the application of quantum computing deepens, users' design requirements for quantum circuits are becoming more and more complex and diverse. The traditional single quantum logic gate design method can no longer meet users' needs for efficient, complex, and flexible design of quantum circuits.
[0051] This leads to a new quantum circuit design method, which allows users to design quantum circuits more quickly and flexibly combine different quantum logic gates according to actual needs. This not only allows for the design of more complex quantum circuits but also improves the processing efficiency of quantum computing.
[0052] See Figure 2 , Figure 2 A quantum circuit design method based on multiple fixed combination units and selection mechanisms provided in this invention includes the following steps:
[0053] Step S201: Obtain a quantum circuit to be filled based on a quantum computing cloud platform; the quantum circuit to be filled is a quantum circuit design framework in which the number of qubits of the quantum circuit has been determined and the qubits are set to an initial state, but no quantum logic gate operations are inserted.
[0054] Specifically, a quantum circuit to be filled is obtained based on a quantum computing cloud platform. This quantum circuit to be filled is a quantum circuit framework in which the number of qubits in the quantum circuit has been determined and the qubits in the quantum circuit have been set to their initial state, but no quantum logic gate operations have been inserted, so as to realize the subsequent quantum circuit design.
[0055] For example, suppose the research team logs into the selected service through the Alibaba Cloud quantum computing platform and requests the creation of a new quantum circuit through its graphical interface or API. While creating the quantum circuit framework, the system initializes the quantum circuit. Suppose that after the initialization operation, it is determined that the quantum circuit has 4 qubits and sets the initial state |0000> for each qubit of the quantum circuit, but no actual quantum logic gate operation is inserted. In this way, a quantum logic gate framework is constructed as the basis for subsequent execution of quantum circuit design.
[0056] Step S202 involves obtaining a target multi-gate fixed combination unit by calling the multi-gate fixed combination unit software system component of the quantum computing cloud platform, and filling the target multi-gate fixed combination unit into the quantum circuit to be filled based on the selection mechanism of the quantum computing system, until the quantum circuit design is completed; the multi-gate fixed combination unit is used to characterize the function of multiple quantum logic gates in the quantum computing system; the function includes a sequence of quantum logic gates that function sequentially on different qubits according to a certain execution timing; the selection mechanism is a computer software implementation so that any of the multi-gate fixed combination units can be perceived, selected, and applied to the quantum circuit design by the quantum circuit designer in a human-computer interaction manner.
[0057] Specifically, the target multi-gate fixed combination unit is obtained through the multi-gate fixed combination unit software system component of the quantum computing cloud platform. Then, the target multi-gate fixed combination unit is used to fill the circuit based on the selection mechanism of the quantum computing system until the quantum circuit design to be filled is completed.
[0058] For example, suppose that in the quantum circuit design process, the design is completed through a graphical human-computer interaction. The screen displays a quantum circuit under design, showing the completed parts, including the qubits already in use and the quantum logic gates arranged on these qubits according to their execution sequence. If a quantum logic gate contains parameters, the software also provides options to show or hide these parameters. It is worth emphasizing that, based on a selection mechanism, the software can display the content of multiple fixed-gate combinations. Multiple fixed-gate combinations can be displayed at once as an image list, or the currently selected combination can be displayed by changing the background or border color of the image. The designer can quickly switch between the currently selected combinations using the mouse wheel, allowing for rapid browsing and searching of different combinations. Once the designer finds a suitable fixed-gate combination, simply clicking its image will mark the software as such. The "Pending Application" state indicates that the application has been selected and is ready to be added to the quantum circuit to be designed. By dragging the image of the multi-gate fixed combination unit to be applied to the expected position in the quantum circuit, the software will automatically add the quantum logic gates of this multi-gate fixed combination unit to the quantum circuit. During the process of adding quantum logic gates, if the designer attempts to place the new quantum logic gate combination on an unused qubit, the software will prompt the designer to select a specific qubit and tell it which qubit the newly added quantum logic gate should act on. Then, the software system will automatically determine which qubits the newly added quantum logic gates should act on based on the designer's instructions and the relative positions between the qubits. If the designer places the new quantum logic gate combination within the range of already used qubits, the software system will automatically determine which qubits the newly added quantum logic gates should act on based on the existing qubit layout and the relative positions between the qubits to ensure that they are correctly placed.
[0059] Step S203: The filled quantum circuit is transformed into a quantum circuit that is executed in the quantum processor.
[0060] Specifically, processing the completed quantum circuits described above can yield quantum circuits that can execute on quantum hardware resources such as quantum processors. It is important to emphasize that the completed quantum circuits obtained through quantum circuit design methods are data with a specific structure that can be stored and used by computers. This data with a specific structure corresponds one-to-one with the completed portion of the quantum circuit being designed, reflecting the designer's concept. This one-to-one correspondence means that data with a specific structure can uniquely identify a quantum circuit with a particular structure. Uniquely identifying a circuit with a particular structure indicates the existence of a transformation process, allowing specific quantum circuits to be applied to real or simulated quantum computing systems based on data with a specific structure.
[0061] In summary, this invention first obtains a quantum circuit to be filled based on a quantum computing cloud platform. The quantum circuit to be filled is a quantum circuit design framework with a determined number of qubits and an initial state for each qubit, but without any quantum logic gate operations. By utilizing the quantum computing cloud platform, a convenient, efficient, and resource-rich environment is provided for users to construct quantum circuits. Users can obtain a quantum circuit design framework with a determined number of qubits and an initial state for the qubits, providing a foundation for subsequent quantum circuit design. Then, by calling the multi-gate fixed combination unit software system component of the quantum computing cloud platform, a target multi-gate fixed combination unit is obtained, and the target multi-gate fixed combination unit is filled into the quantum circuit to be filled based on the selection mechanism of the quantum computing system, until the quantum circuit design is completed. The multi-gate fixed combination unit is used to characterize the operation mode of multiple quantum logic gates in the quantum computing system. The operation mode includes a sequence of quantum logic gates that operate sequentially on different qubits according to a certain execution time order. The selection mechanism is a computer software implementation method, so that any of the multi-gate fixed combination units can be used to perform operations. Fixed-gate combinatorial units are perceived, selected, and applied to quantum circuit design by quantum circuit designers through human-computer interaction. By calling target multi-gate fixed-gate combinatorial units in the multi-gate fixed-gate combinatorial unit software system component of the quantum computing cloud platform, users can quickly obtain target multi-gate fixed-gate combinatorial units composed of one or more native quantum logic gates. These fixed-gate combinatorial units are pre-designed and optimized, capable of performing specific quantum operations, thereby improving the overall design performance and efficiency of quantum circuits. Users can fill these multi-gate fixed-gate combinatorial units into the quantum circuit to be filled according to their own needs and specified application methods. This not only simplifies the quantum circuit design process but also improves the flexibility and accuracy of circuit design. Finally, the filled quantum circuit is transformed into a quantum circuit that can be executed on a quantum processor. By converting the designed quantum circuit into an executable format on a quantum processor, this step ensures that the quantum circuit can run correctly on actual quantum hardware. This step usually includes optimization and mapping of the quantum circuit to ensure that it can execute efficiently under the hardware limitations of the quantum processor, laying a solid foundation for future quantum computing applications.
[0062] See Figure 3 , Figure 3 A flowchart of a method for designing a quantum circuit to be filled, provided by an embodiment of the present invention, includes the following steps:
[0063] Step S301: Initiate a quantum circuit design request based on the quantum computing cloud platform.
[0064] Specifically, the design request for quantum circuits is initiated from the user end to the server end based on the quantum computing cloud platform.
[0065] In step S302, in response to the design request of the quantum circuit, the quantum computing cloud platform provides a quantum circuit framework to be filled, and sets an initial quantum state for each qubit in the quantum circuit framework to obtain the quantum circuit to be filled.
[0066] Specifically, in response to the quantum circuit design request in step S301 above, the quantum computing cloud platform provides a quantum circuit framework to be filled and sets an initial state for each qubit in the quantum circuit framework to realize the design of the quantum circuit to be filled.
[0067] For example, suppose a user plans to implement a QFT operation with N qubits on a quantum computing cloud platform. To meet this requirement, the user first sends a request to the quantum computing cloud platform to design a quantum circuit and specifies the number of qubits required. Upon receiving the user's request, the quantum computing cloud platform responds immediately and provides a quantum circuit framework with N qubits to be filled. Each qubit is initialized with a predefined quantum state. Typically, the initial state of a qubit is the |0> state by default.
[0068] In summary, this embodiment first initiates a quantum circuit design request based on a quantum computing cloud platform. Through this request, the system quickly obtains the required quantum circuit design task. Then, in response to the quantum circuit design request, the quantum computing cloud platform provides a quantum circuit framework to be filled, and sets an initial quantum state for each qubit in the framework to obtain the quantum circuit to be filled. Obtaining a quantum circuit framework to be filled lays the foundation for the subsequent quantum circuit design process.
[0069] See Figure 4 , Figure 4 A flowchart of a method for obtaining a target multi-gate fixed combination unit provided in an embodiment of the present invention includes the following steps:
[0070] Step S401: Based on the logical requirements of the quantum algorithm implemented by the quantum circuit to be filled, as determined by the user, the target multi-gate fixed combination unit is invoked based on the multi-gate fixed combination unit software system component of the quantum computing cloud platform to obtain the target multi-gate fixed combination unit.
[0071] Specifically, based on the logical requirements of the quantum algorithm implemented by the quantum circuit to be filled as determined by the user, the target multi-gate fixed combination unit in the multi-gate fixed combination unit software system component of the quantum computing cloud platform is invoked to obtain the target multi-gate fixed combination unit to be filled.
[0072] For example, on a quantum computing cloud platform, if a user wants to simulate the Shor's algorithm to factor a large integer N, they first need to obtain the specific quantum logic gate combinations required to implement the Shor's algorithm from the multi-gate fixed-combination unit software system component of the quantum computing cloud platform. These include quantum Fourier transform gates (QFT), control modular arithmetic gates (CMOD), and other auxiliary gates (such as Hadamard gates and controlled-NOT gates CNOT) as key multi-gate fixed-combination units. These multi-gate fixed-combination units are composed of one or more native quantum logic gates. For example, QFT can be implemented through a series of single-qubit and two-qubit gates. Following the logical steps of the Shor's algorithm implementation, the user fills the obtained target multi-gate fixed-combination units into the quantum circuit to be filled one by one according to the application method specified by the user, in order to construct a complete quantum circuit.
[0073] In summary, the most suitable multi-gate fixed combination units are selected based on the user's specific needs, i.e., the quantum algorithm logic to be implemented in the quantum circuit to be filled. For example, when constructing Shor's algorithm, multi-gate fixed combination units optimized for integer factorization tasks are selected, while when implementing Grover's search algorithm, combination units that help improve search efficiency are selected. By accurately matching the user's needs, the complexity of implementing the entire quantum circuit design is reduced.
[0074] In one embodiment of this application, filling the target multi-gate fixed combination unit into the quantum circuit to be filled based on the selection mechanism of the quantum computing system includes:
[0075] The acquired target multi-gate fixed combination units are then filled into the corresponding positions of the quantum circuit to be filled based on the selection mechanism of the quantum computing system.
[0076] Specifically, the acquired target multi-gate fixed combination units are filled into the specific positions of the quantum circuit to be filled based on the selection mechanism of the quantum computing system.
[0077] In one embodiment of this application, the corresponding position of the quantum circuit to be filled includes:
[0078] The execution timing of quantum bits in quantum circuits and target multi-gate fixed combination units.
[0079] Among them, the qubit of the quantum circuit refers to the qubit that determines the specific function of the multi-gate fixed combination unit; the execution timing of the target multi-gate fixed combination unit refers to the specific execution timing of placing the multi-gate fixed combination unit into the qubit.
[0080] In one embodiment of this application, the process of converting the filled quantum circuit into a quantum circuit that executes on a quantum processor includes:
[0081] The designed quantum circuit is processed to obtain a quantum circuit that can be executed by a quantum processor.
[0082] Specifically, the designed quantum circuits are processed to obtain quantum circuits that can be executed on quantum hardware resources such as quantum processors.
[0083] In one embodiment of this application, the line processing procedure includes one or a combination of the following:
[0084] Quantum circuit optimization processing and quantum circuit mapping processing.
[0085] Quantum circuit optimization refers to a series of improvements and adjustments made to a quantum circuit before execution, in order to improve efficiency, reduce resource consumption (such as the number of qubits and quantum gates), improve fidelity, or simplify the circuit structure. Quantum circuit mapping refers to the process of converting a logical quantum circuit into a mapped circuit, which is a quantum circuit that can be executed on quantum hardware resources.
[0086] See Figure 5 , Figure 5 A quantum circuit design device based on a multi-gate fixed combination unit and selection mechanism is provided in this embodiment of the invention. The device includes an initialization unit 501, a calling unit 502, and an execution unit 503, wherein:
[0087] Initialization unit 501 is used to obtain a quantum circuit to be filled based on a quantum computing cloud platform; the quantum circuit to be filled is a quantum circuit design framework in which the number of qubits of the quantum circuit has been determined and the qubits are set to an initial state, but no quantum logic gate operations are inserted.
[0088] Specifically, acquiring a quantum circuit to be filled based on a quantum computing cloud platform includes:
[0089] Initiate a quantum circuit design request based on a quantum computing cloud platform.
[0090] In response to the design request of the quantum circuit, the quantum computing cloud platform provides a quantum circuit framework to be filled, and sets an initial quantum state for each qubit in the quantum circuit framework to obtain the quantum circuit to be filled.
[0091] Calling unit 502 is used to obtain a target multi-gate fixed combination unit by calling the multi-gate fixed combination unit software system component of the quantum computing cloud platform, and to fill the target multi-gate fixed combination unit into the quantum circuit to be filled based on the selection mechanism of the quantum computing system until the quantum circuit design is completed; the multi-gate fixed combination unit is used to characterize the function of multiple quantum logic gates in the quantum computing system; the function includes a sequence of quantum logic gates that function sequentially on different qubits according to a certain execution timing; the selection mechanism is a computer software implementation so that any of the multi-gate fixed combination units can be perceived, selected and applied to the quantum circuit design by the quantum circuit designer in a human-computer interaction manner.
[0092] Specifically, obtaining the target multi-gate fixed combination unit by calling the multi-gate fixed combination unit software system component of the quantum computing cloud platform includes:
[0093] Based on the logical requirements of the quantum algorithm implemented by the quantum circuit to be filled, as determined by the user, the target multi-gate fixed combination unit is invoked based on the multi-gate fixed combination unit software system component of the quantum computing cloud platform to obtain the target multi-gate fixed combination unit.
[0094] Specifically, the step of filling the target multi-gate fixed combination unit into the quantum circuit to be filled based on the selection mechanism of the quantum computing system includes:
[0095] The acquired target multi-gate fixed combination units are then filled into the corresponding positions of the quantum circuit to be filled based on the selection mechanism of the quantum computing system.
[0096] Specifically, the corresponding positions of the quantum circuit to be filled include:
[0097] The execution timing of quantum bits in quantum circuits and target multi-gate fixed combination units.
[0098] Execution unit 503 is used to convert the filled quantum circuit into a quantum circuit that is executed in the quantum processor.
[0099] Specifically, the process of converting the filled quantum circuit into a quantum circuit that executes in a quantum processor includes:
[0100] The designed quantum circuit is processed to obtain a quantum circuit that can be executed by a quantum processor.
[0101] Specifically, the line processing procedure includes one or a combination of the following:
[0102] Quantum circuit optimization processing and quantum circuit mapping processing.
[0103] The specific functions and effects of the quantum circuit design device based on multiple fixed combination units and selection mechanisms described above can be explained by referring to other embodiments in this specification, and will not be repeated here. Each module in the quantum circuit design device based on multiple fixed combination units and selection mechanisms can be implemented entirely or partially through software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor in a computer device in hardware form, or it can be stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0104] Please see Figure 6 This specification also provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the quantum circuit design method based on multiple fixed-gate combination units and selection mechanisms described in any of the above embodiments. Please refer to [link to documentation]. Figure 6 The electronic device can be a classical computer or a quantum computer.
[0105] This specification also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a computer, causes the computer to perform the quantum circuit design method based on multiple fixed combination units and selection mechanisms in any of the above embodiments.
[0106] This invention also provides a quantum computer operating system, which implements quantum circuit design based on multiple fixed combination units and selection mechanisms according to any of the above-described method embodiments provided in this invention.
[0107] It is understood that the specific examples in this specification are only intended to help those skilled in the art better understand the implementation methods described herein, and are not intended to limit the scope of the invention.
[0108] It is understood that in the various embodiments of this specification, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not limit the implementation process of the embodiments of this specification in any way.
[0109] It is understood that the various implementation methods described in this specification can be implemented individually or in combination, and the implementation methods in this specification are not limited in this respect.
[0110] Unless otherwise stated, all technical and scientific terms used in the embodiments of this specification have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of this specification. The term "and / or" as used in this specification includes any and all combinations of one or more of the associated listed items. The singular forms "a," "the," and "the" as used in the embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0111] It is understood that the processor in the embodiments of this specification can be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this specification. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this specification can be directly implemented by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory; the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above methods.
[0112] It is understood that the memory in the embodiments of this specification may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may be random access memory (RAM). It should be noted that the memory in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0113] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this specification.
[0114] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the aforementioned method implementations, and will not be repeated here.
[0115] In the several embodiments provided in this specification, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0116] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0117] In addition, the functional units in the various embodiments of this specification can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0118] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of this specification, in essence, or the parts that contribute to the prior art, or parts of the technical solutions, can be embodied in the form of software products. These computer software products are stored in a storage medium and include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this specification. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0119] The above description is merely a specific embodiment of this specification, but the scope of protection of this invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this specification should be included within the scope of protection of this specification. Therefore, the scope of protection of this invention should be determined by the scope of the claims.
Claims
1. A quantum circuit design method based on multi-gate fixed combination units and selection mechanisms, characterized in that, The method includes: A quantum circuit to be filled is obtained based on a quantum computing cloud platform; the quantum circuit to be filled is a quantum circuit design framework in which the number of qubits of the quantum circuit has been determined and the qubits are set to an initial state, but no quantum logic gate operations are inserted. The target multi-gate fixed combination unit is obtained by calling the multi-gate fixed combination unit software system component of the quantum computing cloud platform, and the target multi-gate fixed combination unit is filled into the quantum circuit to be filled based on the selection mechanism of the quantum computing system until the quantum circuit design is completed; the multi-gate fixed combination unit is used to characterize the function of multiple quantum logic gates in the quantum computing system; the function includes a sequence of quantum logic gates that function sequentially on different qubits according to a certain execution time order; the selection mechanism is a computer software implementation so that any of the multi-gate fixed combination units can be perceived, selected and applied to the quantum circuit design by the quantum circuit designer in a human-computer interaction manner; Transform the filled quantum circuit into a quantum circuit that is executed in a quantum processor.
2. The method according to claim 1, characterized in that, The process of acquiring a quantum circuit to be filled based on a quantum computing cloud platform includes: Initiate a quantum circuit design request based on a quantum computing cloud platform; In response to the design request of the quantum circuit, the quantum computing cloud platform provides a quantum circuit framework to be filled, and sets an initial quantum state for each qubit in the quantum circuit framework to obtain the quantum circuit to be filled.
3. The method according to claim 1, characterized in that, The process of obtaining the target multi-gate fixed combination unit by invoking the multi-gate fixed combination unit software system component of the quantum computing cloud platform includes: Based on the logical requirements of the quantum algorithm implemented by the quantum circuit to be filled, as determined by the user, the target multi-gate fixed combination unit is invoked based on the multi-gate fixed combination unit software system component of the quantum computing cloud platform to obtain the target multi-gate fixed combination unit.
4. The method according to claim 1, characterized in that, The step of filling the target multi-gate fixed combination unit into the quantum circuit to be filled based on the selection mechanism of the quantum computing system includes: The acquired target multi-gate fixed combination units are then filled into the corresponding positions of the quantum circuit to be filled based on the selection mechanism of the quantum computing system.
5. The method according to claim 4, characterized in that, The corresponding positions of the quantum circuit to be filled include: The execution timing of quantum bits in quantum circuits and target multi-gate fixed combination units.
6. The method according to claim 1, characterized in that, The process of converting the filled quantum circuit into a quantum circuit that executes on a quantum processor includes: The designed quantum circuit is processed to obtain a quantum circuit that can be executed by a quantum processor.
7. The method according to claim 6, characterized in that, The line processing procedure includes one or a combination of the following: Quantum circuit optimization processing and quantum circuit mapping processing.
8. A quantum circuit design device based on a multi-gate fixed combination unit and selection mechanism, characterized in that, The device includes: An initialization unit is used to obtain a quantum circuit to be filled based on a quantum computing cloud platform; the quantum circuit to be filled is a quantum circuit design framework in which the number of qubits of the quantum circuit has been determined and the qubits are set to an initial state, but no quantum logic gate operations are inserted. The calling unit is used to obtain a target multi-gate fixed combination unit by calling the multi-gate fixed combination unit software system component of the quantum computing cloud platform, and to fill the target multi-gate fixed combination unit into the quantum circuit to be filled based on the selection mechanism of the quantum computing system, until the quantum circuit design is completed; the multi-gate fixed combination unit is used to characterize the function of multiple quantum logic gates in the quantum computing system; the function includes a sequence of quantum logic gates that function sequentially on different qubits according to a certain execution time order; the selection mechanism is a computer software implementation so that any of the multi-gate fixed combination units can be perceived, selected and applied to the quantum circuit design by the quantum circuit designer in a human-computer interaction manner; An execution unit is used to transform a completed quantum circuit into a quantum circuit that is executed in a quantum processor.
9. An electronic device, characterized in that, include: Processor and memory; The processor is connected to a memory, wherein the memory is used to store a computer program, and the processor is used to invoke the computer program to execute the method as described in claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, perform the method as described in claims 1-7.
11. A quantum computer operating system, characterized in that, The quantum computer operating system according to any one of claims 1-7 implements quantum circuit design based on multiple fixed combination units and selection mechanisms.