CN110516810B - A quantum program processing method, device, storage medium and electronic device - Google Patents
A quantum program processing method, device, storage medium and electronic device Download PDFInfo
- Publication number
- CN110516810B CN110516810B CN201910810035.4A CN201910810035A CN110516810B CN 110516810 B CN110516810 B CN 110516810B CN 201910810035 A CN201910810035 A CN 201910810035A CN 110516810 B CN110516810 B CN 110516810B
- Authority
- CN
- China
- Prior art keywords
- quantum
- quantum logic
- program
- logic gate
- time sequence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N10/00—Quantum computing, i.e. information processing based on quantum-mechanical phenomena
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)
- Logic Circuits (AREA)
Abstract
本发明公开了一种量子程序的处理方法、装置、存储介质和电子装置,方法包括:将量子程序中的量子逻辑门进行合并,得到合并后的量子程序;划分所述合并后的量子程序中的所有量子逻辑门的执行时序;其中,至少两个所述量子逻辑门处于同一执行时序。利用本发明实施例,能够提高量子程序的计算效率。
The invention discloses a quantum program processing method, device, storage medium and electronic device. The method comprises: combining quantum logic gates in a quantum program to obtain a combined quantum program; dividing the combined quantum program into The execution sequence of all quantum logic gates; wherein, at least two of the quantum logic gates are in the same execution sequence. By using the embodiments of the present invention, the computational efficiency of quantum programs can be improved.
Description
技术领域technical field
本发明属于量子计算技术领域,特别是一种量子程序的处理方法、装置、存储介质和电子装置。The invention belongs to the technical field of quantum computing, in particular to a quantum program processing method, device, storage medium and electronic device.
背景技术Background technique
量子计算机是一类遵循量子力学规律进行高速数学和逻辑运算、存储及处理量子信息的物理装置。当某个装置处理和计算的是量子信息,运行的是量子算法时,它就是量子计算机。A quantum computer is a kind of physical device that follows the laws of quantum mechanics to perform high-speed mathematical and logical operations, store and process quantum information. When a device processes and computes quantum information and runs quantum algorithms, it is a quantum computer.
量子计算模拟是一个借助数值计算和计算机科学来仿真遵循量子力学规律的模拟计算,作为一个仿真程序,它依据量子力学的量子比特的基本定律,利用计算机的高速计算能力,刻画量子态的时空演化。Quantum computing simulation is a simulation calculation that follows the laws of quantum mechanics with the help of numerical computing and computer science. As a simulation program, it uses the high-speed computing power of computers to describe the space-time evolution of quantum states according to the basic laws of quantum mechanics. .
目前,量子计算或模拟的通常步骤是将待转化的实际问题转化成量子程序或量子线路,然后通过量子程序或量子线路的运行得到特定问题的解。然而,量子程序或量子线路的运行往往是串行计算,即量子逻辑门的执行时序为一个一个的顺序执行,一个时序内只有一个量子逻辑门操作,计算效率较为低下。At present, the usual steps of quantum computing or simulation are to transform the actual problem to be transformed into a quantum program or quantum circuit, and then obtain the solution of the specific problem through the operation of the quantum program or quantum circuit. However, the operation of quantum programs or quantum circuits is often serial calculation, that is, the execution sequence of quantum logic gates is executed sequentially one by one, and only one quantum logic gate operates in a sequence, and the computational efficiency is relatively low.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种量子程序的处理方法、装置、存储介质和电子装置,以解决现有技术中的不足,它能够提高量子程序的计算效率。The purpose of the present invention is to provide a quantum program processing method, device, storage medium and electronic device to solve the deficiencies in the prior art, which can improve the computational efficiency of the quantum program.
本发明采用的技术方案如下:The technical scheme adopted in the present invention is as follows:
一种量子程序的处理方法,包括:A method of processing a quantum program, comprising:
将量子程序中的量子逻辑门进行合并,得到合并后的量子程序;Combine the quantum logic gates in the quantum program to obtain the combined quantum program;
划分所述合并后的量子程序中的所有量子逻辑门的执行时序;其中,至少两个所述量子逻辑门处于同一执行时序。Divide the execution sequence of all quantum logic gates in the combined quantum program; wherein, at least two of the quantum logic gates are in the same execution sequence.
可选的,所述将量子程序中的量子逻辑门进行合并,包括:Optionally, the combination of quantum logic gates in the quantum program includes:
遍历量子程序,确定每个量子比特分别执行的所有量子逻辑门;Traverse the quantum program to determine all the quantum logic gates that each qubit executes separately;
针对每个量子比特,将所述量子比特执行的两两相邻的多个单量子逻辑门,合并为一组合量子逻辑门;其中,所述组合量子逻辑门为单量子逻辑门,且所述组合量子逻辑门的酉矩阵为所述两两相邻的多个单量子逻辑门的酉矩阵乘积。For each qubit, multiple adjacent single quantum logic gates executed by the qubit are combined into a combined quantum logic gate; wherein, the combined quantum logic gate is a single quantum logic gate, and the The unitary matrix of the combinatorial quantum logic gate is the unitary matrix product of the plurality of adjacent single quantum logic gates.
可选的,所述划分所述合并后的量子程序中的所有量子逻辑门的执行时序,包括:Optionally, the execution sequence of all quantum logic gates in the divided quantum program includes:
获得所述合并后的量子程序对应的量子线路信息;obtaining quantum circuit information corresponding to the combined quantum program;
根据当前的所述量子线路信息,将每个量子比特各自执行的第一位量子逻辑门中的单量子逻辑门的执行时序,划分为同一时序;According to the current quantum circuit information, the execution sequence of the single quantum logic gate in the first quantum logic gate executed by each qubit is divided into the same sequence;
当所述第一位量子逻辑门中的多量子逻辑门对应的多个位数均为第一位时,将所述多量子逻辑门的执行时序,划分为所述同一时序;When the multiple bits corresponding to the multiple quantum logic gates in the first quantum logic gate are all first bits, dividing the execution sequence of the multiple quantum logic gates into the same sequence;
删除所述量子线路信息包含的时序划分完成的量子逻辑门信息,继续执行所述根据当前的所述量子线路信息,将每个量子比特各自执行的第一位量子逻辑门中的单量子逻辑门的执行时序,划分为同一时序的步骤。Delete the quantum logic gate information of the quantum circuit information that has completed the timing division, and continue to execute the single quantum logic gate in the first quantum logic gate executed by each qubit according to the current quantum circuit information. The execution sequence is divided into steps of the same sequence.
可选的,还包括:Optionally, also include:
当所述第一位量子逻辑门中的多量子逻辑门对应的多个位数不均为第一位时,将所述多量子逻辑门的执行时序,划分为所述同一时序的下一时序。When the number of bits corresponding to the multiple quantum logic gates in the first quantum logic gate is not the first one, the execution sequence of the multiple quantum logic gates is divided into the next sequence of the same sequence .
可选的,还包括:Optionally, also include:
根据各所述执行时序,运行所述合并后的量子程序。According to each of the execution sequences, the combined quantum program is run.
一种量子程序的处理装置,包括:A processing device for a quantum program, comprising:
合并模块,用于将量子程序中的量子逻辑门进行合并,得到合并后的量子程序;The merging module is used to merge the quantum logic gates in the quantum program to obtain the merged quantum program;
划分模块,用于划分所述合并后的量子程序中的所有量子逻辑门的执行时序;其中,至少两个所述量子逻辑门处于同一执行时序。A division module, configured to divide the execution sequence of all quantum logic gates in the combined quantum program; wherein, at least two of the quantum logic gates are in the same execution sequence.
可选的,所述合并模块,具体用于:Optionally, the merging module is specifically used for:
遍历量子程序,确定每个量子比特分别执行的所有量子逻辑门;Traverse the quantum program to determine all the quantum logic gates that each qubit executes separately;
针对每个量子比特,将所述量子比特执行的两两相邻的多个单量子逻辑门,合并为一组合量子逻辑门;其中,所述组合量子逻辑门为单量子逻辑门,且所述组合量子逻辑门的酉矩阵为所述两两相邻的多个单量子逻辑门的酉矩阵乘积。For each qubit, multiple adjacent single quantum logic gates executed by the qubit are combined into a combined quantum logic gate; wherein, the combined quantum logic gate is a single quantum logic gate, and the The unitary matrix of the combinatorial quantum logic gate is the unitary matrix product of the plurality of adjacent single quantum logic gates.
可选的,所述划分模块,具体用于:Optionally, the dividing module is specifically used for:
获得所述合并后的量子程序对应的量子线路信息;obtaining quantum circuit information corresponding to the combined quantum program;
根据当前的所述量子线路信息,将每个量子比特各自执行的第一位量子逻辑门中的单量子逻辑门的执行时序,划分为同一时序;According to the current quantum circuit information, the execution sequence of the single quantum logic gate in the first quantum logic gate executed by each qubit is divided into the same sequence;
当所述第一位量子逻辑门中的多量子逻辑门对应的多个位数均为第一位时,将所述多量子逻辑门的执行时序,划分为所述同一时序;When the multiple bits corresponding to the multiple quantum logic gates in the first quantum logic gate are all first bits, dividing the execution sequence of the multiple quantum logic gates into the same sequence;
删除所述量子线路信息包含的时序划分完成的量子逻辑门信息,继续执行所述根据当前的所述量子线路信息,将每个量子比特各自执行的第一位量子逻辑门中的单量子逻辑门的执行时序,划分为同一时序的步骤。Delete the quantum logic gate information of the quantum circuit information that has completed the timing division, and continue to execute the single quantum logic gate in the first quantum logic gate executed by each qubit according to the current quantum circuit information. The execution sequence is divided into steps of the same sequence.
可选的,所述划分模块,还具体用于:Optionally, the dividing module is also specifically used for:
当所述第一位量子逻辑门中的多量子逻辑门对应的多个位数不均为第一位时,将所述多量子逻辑门的执行时序,划分为所述同一时序的下一时序。When the number of bits corresponding to the multiple quantum logic gates in the first quantum logic gate is not the first one, the execution sequence of the multiple quantum logic gates is divided into the next sequence of the same sequence .
可选的,还包括:Optionally, also include:
运行模块,用于根据各所述执行时序,运行所述合并后的量子程序。An operation module, configured to run the combined quantum program according to each execution sequence.
一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行以上所述的方法。A storage medium in which a computer program is stored, wherein the computer program is configured to execute the above-described method when run.
一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行以上所述的方法。An electronic device comprising a memory and a processor having a computer program stored in the memory, the processor being arranged to run the computer program to perform the method described above.
与现有技术相比,本发明提供了一种量子程序的处理方法,首先将量子程序中的量子逻辑门进行合并,合并后量子程序的量子逻辑门数量较少,从而能够精简量子程序,提高量子程序的计算效率;然后,划分合并后的量子程序中所有量子逻辑门的执行时序,其中,至少两个量子逻辑门处于同一执行时序,处于同一时序的量子逻辑门可以同时执行,由此进一步提高量子程序的计算效率。Compared with the prior art, the present invention provides a quantum program processing method. First, the quantum logic gates in the quantum program are combined. The computational efficiency of the quantum program; then, divide the execution sequence of all quantum logic gates in the combined quantum program, wherein at least two quantum logic gates are in the same execution sequence, and the quantum logic gates in the same sequence can be executed at the same time, thereby further Improve the computational efficiency of quantum programs.
附图说明Description of drawings
图1是本发明实施例提供的一种量子程序的处理方法的流程示意图;1 is a schematic flowchart of a method for processing a quantum program provided by an embodiment of the present invention;
图2是本发明实施例提供的一种量子程序对应的量子线路示意图;2 is a schematic diagram of a quantum circuit corresponding to a quantum program provided in an embodiment of the present invention;
图3是本发明实施例提供的一种合并后的量子线路示意图;3 is a schematic diagram of a combined quantum circuit provided by an embodiment of the present invention;
图4是本发明实施例提供的一种划分时序后的量子线路示意图;FIG. 4 is a schematic diagram of a quantum circuit after dividing a time sequence provided by an embodiment of the present invention;
图5是本发明实施例提供的一种量子程序的处理装置的结构示意图。FIG. 5 is a schematic structural diagram of an apparatus for processing a quantum program according to an embodiment of the present invention.
具体实施方式Detailed ways
下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but not to be construed as a limitation of the present invention.
本发明实施例提供了一种量子程序的处理方法,应用于电子设备如终端,优选应用于计算机,如普通电脑即可。下面对其进行详细说明。The embodiment of the present invention provides a method for processing a quantum program, which is applied to an electronic device such as a terminal, preferably a computer, such as an ordinary computer. It will be described in detail below.
需要说明的是,真正的量子计算机是混合结构的,它包含两大部分:一部分是经典计算机,负责执行经典计算与控制;另一部分是量子设备,负责执行量子计算。实际上,真正的量子程序是由量子语言如Qrunes语言编写的一串能够在量子计算机(前述量子设备)上运行的指令序列,实现了对量子逻辑门操作的支持,并最终实现对量子计算的模拟。具体的说,量子程序就是一系列按照一定时序操作量子逻辑门的指令序列。It should be noted that a real quantum computer is a hybrid structure, which consists of two parts: one part is a classical computer, which is responsible for performing classical calculations and control; the other part is a quantum device, which is responsible for performing quantum calculations. In fact, a real quantum program is a sequence of instructions written in a quantum language such as Qrunes that can run on a quantum computer (the aforementioned quantum device), which supports the operation of quantum logic gates and finally realizes the realization of quantum computing. simulation. Specifically, a quantum program is a series of instruction sequences that operate quantum logic gates in a certain sequence.
在实际应用中,为了对量子计算进行模拟以验证量子应用等等,可以通过运行在普通计算机的量子虚拟机实现。本发明实施例所指量子程序,即是在量子虚拟机上运行的由经典语言编写的表征量子比特及其演化的程序,其中与量子计算相关的量子比特、量子逻辑门等等均有相应的经典代码表示。In practical applications, in order to simulate quantum computing to verify quantum applications, etc., it can be implemented by a quantum virtual machine running on an ordinary computer. The quantum program referred to in the embodiments of the present invention refers to a program written in a classical language and running on a quantum virtual machine to characterize qubits and their evolution, in which qubits, quantum logic gates, etc. related to quantum computing have corresponding Classic code representation.
量子线路,也称量子逻辑电路,是最常用的通用量子计算模型,表示在抽象概念下对于量子比特进行操作的线路,其组成包括量子比特、线路(时间线),以及各种量子逻辑门,最后常需要通过量子测量操作将结果读取出来。Quantum circuits, also known as quantum logic circuits, are the most commonly used general-purpose quantum computing models, representing circuits that operate on qubits under abstract concepts, including qubits, circuits (timelines), and various quantum logic gates. Finally, it is often necessary to read the results through quantum measurement operations.
不同于传统电路是用金属线所连接以传递电压信号或电流信号,在量子线路中,线路可看成是由时间所连接,亦即量子比特的状态随着时间自然演化,在这过程中按照哈密顿运算符的指示,一直到遇上逻辑门而被操作。Unlike traditional circuits, which are connected by metal wires to transmit voltage signals or current signals, in quantum circuits, the wires can be regarded as connected by time, that is, the state of qubits evolves naturally with time. The instruction of the Hamiltonian operator, which is operated until it encounters a logic gate.
一个目标量子程序整体上对应有一条总的量子线路,本发明所述量子线路即指该条总的量子线路,其中,该量子线路中的量子比特总数与量子程序的量子比特总数相同。可以理解为:一个量子程序主要由量子线路、针对量子线路中量子比特的测量操作、保存测量结果的寄存器及控制流节点(跳转指令)组成,一条量子线路可以包含几十上百个甚至千上万个量子逻辑门操作。量子程序的执行过程,就是对所有的量子逻辑门按照一定时序执行的过程。需要说明的是,时序即个量子逻辑门被执行的时间顺序。A target quantum program as a whole corresponds to a total quantum circuit, and the quantum circuit in the present invention refers to the total quantum circuit, wherein the total number of qubits in the quantum circuit is the same as the total number of qubits in the quantum program. It can be understood that a quantum program is mainly composed of quantum circuits, measurement operations for qubits in the quantum circuits, registers for saving the measurement results, and control flow nodes (jump instructions). A quantum circuit can contain dozens, hundreds or even thousands. Tens of thousands of quantum logic gate operations. The execution process of a quantum program is the process of executing all quantum logic gates in a certain sequence. It should be noted that timing is the time sequence in which a quantum logic gate is executed.
需要说明的是,经典计算中,最基本的单元是比特,而最基本的控制模式是逻辑门,可以通过逻辑门的组合来达到控制电路的目的。类似地,处理量子比特的方式就是量子逻辑门。使用量子逻辑门,能够使量子态发生演化,量子逻辑门是构成量子线路的基础,就像传统逻辑门跟一般数位线路之间的关系。量子逻辑门包括单量子逻辑门、双量子逻辑门以及多量子逻辑门。量子逻辑门一般使用酉矩阵表示,而酉矩阵不仅是矩阵形式,也是一种操作和变换。一般量子逻辑门在量子态上的作用是通过酉矩阵左乘以量子态右矢对应的矩阵进行计算的。It should be noted that, in classical computing, the most basic unit is the bit, and the most basic control mode is the logic gate, which can achieve the purpose of controlling the circuit through the combination of logic gates. Similarly, the way qubits are processed are quantum logic gates. The use of quantum logic gates can make quantum states evolve. Quantum logic gates are the basis of quantum circuits, just like the relationship between traditional logic gates and general digital circuits. Quantum logic gates include single quantum logic gates, double quantum logic gates and multiple quantum logic gates. Quantum logic gates are generally represented by a unitary matrix, and a unitary matrix is not only a matrix form, but also an operation and transformation. The function of the general quantum logic gate on the quantum state is calculated by multiplying the unitary matrix by the matrix corresponding to the right vector of the quantum state.
例如,量子态右矢|0>对应的矩阵为而量子态右矢|1>对应的矩阵为 For example, the matrix corresponding to the quantum state right vector |0> is And the matrix corresponding to the quantum state right vector |1> is
参见图1,图1为本发明实施例提供的一种量子程序的处理方法的流程示意图,可以包括如下步骤:Referring to FIG. 1, FIG. 1 is a schematic flowchart of a method for processing a quantum program according to an embodiment of the present invention, which may include the following steps:
S101,将量子程序中的量子逻辑门进行合并,得到合并后的量子程序;S101, combine the quantum logic gates in the quantum program to obtain a combined quantum program;
具体的,可以遍历量子程序,确定每个量子比特分别执行的所有量子逻辑门;Specifically, the quantum program can be traversed to determine all quantum logic gates executed by each qubit;
针对每个量子比特,将所述量子比特执行的两两相邻的多个单量子逻辑门,合并为一组合量子逻辑门;其中,所述组合量子逻辑门为单量子逻辑门,且所述组合量子逻辑门的酉矩阵为所述两两相邻的多个单量子逻辑门的酉矩阵乘积。For each qubit, multiple adjacent single quantum logic gates executed by the qubit are combined into a combined quantum logic gate; wherein, the combined quantum logic gate is a single quantum logic gate, and the The unitary matrix of the combinatorial quantum logic gate is the unitary matrix product of the plurality of adjacent single quantum logic gates.
在实际的量子程序中,程序的运行是一个一个串行计算的。例如,一段量子程序的运行顺序为:H q0、H q1、RY q2、H q4、RX q0、X q1、CNOT q4 q3、Z q0、H q1、CNOT q2 q3、Hq4、CNOT q1 q0、H q2、CNOTq3 q4、RZ q3、Y q4、RX q4。其中,H为阿达马Hadamard门,RX门为任意旋转X门,CNOT为控制非门(Control-NOT),X为非门,RY为任意旋转Y门,RZ为任意旋转Z门,q0、q1、q2、q3、q4是指比特位从0至4的量子比特。除CNOT门为两量子逻辑门外,其余均为单量子逻辑门。In the actual quantum program, the operation of the program is calculated one by one. For example, the running order of a quantum program is: H q0, H q1, RY q2, H q4, RX q0, X q1, CNOT q4 q3, Z q0, H q1, CNOT q2 q3, Hq4, CNOT q1 q0, H q2 , CNOTq3 q4, RZ q3, Y q4, RX q4. Among them, H is a Hadamard gate, RX gate is an arbitrary rotating X gate, CNOT is a control-NOT gate, X is a NOT gate, RY is an arbitrary rotating Y gate, RZ is an arbitrary rotating Z gate, q0, q1 , q2, q3, q4 refer to qubits with bits from 0 to 4. Except for the CNOT gate, which is a two-quantum logic gate, the rest are single-quantum logic gates.
对量子比特施加量子逻辑门操作,是指对量子比特的一量子态进行酉矩阵操作,得到量子比特的另一量子态,酉矩阵是该量子逻辑门的矩阵形式,单量子逻辑门的酉矩阵为2*2的矩阵,两量子逻辑门的酉矩阵为4*4的矩阵。Applying a quantum logic gate operation to a qubit means performing a unitary matrix operation on a quantum state of the qubit to obtain another quantum state of the qubit. The unitary matrix is the matrix form of the quantum logic gate, and the unitary matrix of a single quantum logic gate is a 2*2 matrix, and the unitary matrix of the two quantum logic gates is a 4*4 matrix.
在实际应用中,不同量子比特分别执行的量子逻辑门操作可以同时进行,但一个量子比特同时只能进行一个量子逻辑门操作。并且,一个量子比特先后进行的相邻的单量子逻辑门操作,可以进行合并,不影响量子程序的运行结果。In practical applications, the quantum logic gate operations performed by different qubits can be performed simultaneously, but one quantum bit can only perform one quantum logic gate operation at the same time. In addition, adjacent single quantum logic gate operations performed successively by a qubit can be combined without affecting the running result of the quantum program.
基于该特性,可以遍历量子程序,首先确定每个量子比特分别执行的所有量子逻辑门,目的是找到每个量子比特先后总共执行哪些量子逻辑门,用于后续相邻单量子逻辑门的合并。Based on this feature, the quantum program can be traversed. First, all the quantum logic gates executed by each qubit are determined. The purpose is to find out which quantum logic gates each qubit executes in succession, which is used for subsequent merging of adjacent single quantum logic gates.
示例性的,一段量子程序对应的量子线路如图2所示,能够清晰明了表示量子比特执行的量子逻辑门及时序情况。0、1、2、3、4代表量子比特q0、q1、q2、q3、q4,每个量子比特处的横线表示量子比特执行量子逻辑门的先后时序,即:Exemplarily, a quantum circuit corresponding to a quantum program is shown in Figure 2, which can clearly represent the quantum logic gates and timing conditions of the qubit execution. 0, 1, 2, 3, and 4 represent qubits q0, q1, q2, q3, and q4, and the horizontal line at each qubit represents the sequence in which the qubit executes the quantum logic gate, namely:
q0依次执行H门、RX门、Z门和CNOT门;q0 executes the H gate, RX gate, Z gate and CNOT gate in sequence;
q1依次执行H门、X门、H门和CNOT门;q1 executes the H gate, X gate, H gate and CNOT gate in sequence;
q2依次执行RY门、CNOT门和H门;q2 executes the RY gate, the CNOT gate and the H gate in sequence;
q3依次执行CNOT门、CNOT门、CNOT门和RZ门;q3 executes the CNOT gate, CNOT gate, CNOT gate and RZ gate in sequence;
q4依次执行H门、CNOT门、H门、CNOT门、Y门和RX门。q4 executes the H gate, CNOT gate, H gate, CNOT gate, Y gate and RX gate in sequence.
其中,图2所示的单词NOT及其连接的竖线,即表示两量子逻辑门CNOT门,单词NOT所处横线对应的量子比特表示CNOT门操作的操作比特或称受控比特,竖线连接的另一横线对应的量子比特表示CNOT门操作的控制比特。例如CNOT q1 q0,q1为控制比特,q0为操作比特,CNOT门同时对该两个量子比特进行操作,反过来说,q0执行CNOT门,q1也同时执行该CNOT门。Among them, the word NOT and its connected vertical line shown in Figure 2 represent two quantum logic gates CNOT gate, and the qubit corresponding to the horizontal line where the word NOT is located represents the operation bit or controlled bit of the CNOT gate operation, and the vertical line The qubits corresponding to the other connected horizontal lines represent the control bits for the operation of the CNOT gate. For example, CNOT q1 q0, q1 is the control bit, q0 is the operation bit, the CNOT gate operates on the two qubits at the same time, and conversely, q0 executes the CNOT gate, and q1 also executes the CNOT gate at the same time.
具体的,q0先后执行的两两相邻的单量逻辑门包括三种情况:H门&RX门、RX门&Z门、H门&RX门&Z门,将任一种情况中的单量子逻辑门合并,均能够精简量子程序,提高量子程序的计算效率。优选的,将两两相邻的所有单量子逻辑门进行合并成一新的单量子逻辑门,合并后量子程序中的量子逻辑门数量最少,对量子程序的优化程度最高。将H门、RX门、Z门的酉矩阵按顺序相乘,可获得该新单量子逻辑门的酉矩阵,其余量子比特对应的相邻单量子逻辑门可同理进行合并。Specifically, the adjacent single-quantity logic gates executed by q0 include three cases: H gate & RX gate, RX gate & Z gate, H gate & RX gate & Z gate, and the single quantum logic gates in any case are merged , both can simplify quantum programs and improve the computational efficiency of quantum programs. Preferably, all pairs of adjacent single quantum logic gates are merged into a new single quantum logic gate, the quantum logic gates in the combined quantum program are the least in number, and the quantum program is optimized to the highest degree. Multiply the unitary matrices of the H gate, RX gate, and Z gate in order to obtain the unitary matrix of the new single quantum logic gate, and the adjacent single quantum logic gates corresponding to the remaining qubits can be merged in the same way.
S102,划分所述合并后的量子程序中的所有量子逻辑门的执行时序;其中,至少两个所述量子逻辑门处于同一执行时序。S102: Divide the execution sequence of all quantum logic gates in the combined quantum program; wherein, at least two of the quantum logic gates are in the same execution sequence.
具体的,可以获得所述合并后的量子程序对应的量子线路信息;Specifically, the quantum circuit information corresponding to the combined quantum program can be obtained;
根据当前的所述量子线路信息,将每个量子比特各自执行的第一位量子逻辑门中的单量子逻辑门的执行时序,划分为同一时序;According to the current quantum circuit information, the execution sequence of the single quantum logic gate in the first quantum logic gate executed by each qubit is divided into the same sequence;
当所述第一位量子逻辑门中的多量子逻辑门对应的多个位数均为第一位时,将所述多量子逻辑门的执行时序,划分为所述同一时序;When the multiple bits corresponding to the multiple quantum logic gates in the first quantum logic gate are all first bits, dividing the execution sequence of the multiple quantum logic gates into the same sequence;
删除所述量子线路信息包含的时序划分完成的量子逻辑门信息,继续执行所述根据当前的所述量子线路信息,将每个量子比特各自执行的第一位量子逻辑门中的单量子逻辑门的执行时序,划分为同一时序的步骤。Delete the quantum logic gate information of the quantum circuit information that has completed the timing division, and continue to execute the single quantum logic gate in the first quantum logic gate executed by each qubit according to the current quantum circuit information. The execution sequence is divided into steps of the same sequence.
当所述第一位量子逻辑门中的多量子逻辑门对应的多个位数不均为第一位时,将所述多量子逻辑门的执行时序,划分为所述同一时序的下一时序。When the number of bits corresponding to the multiple quantum logic gates in the first quantum logic gate is not the first one, the execution sequence of the multiple quantum logic gates is divided into the next sequence of the same sequence .
其中,多量子逻辑门对应的多个位数是指,对于多量子逻辑门操作的每一个量子比特而言,都对应有一个位数,表示该多量子逻辑门属于其执行的第几个量子逻辑门。如图2所示,两量子逻辑门CNOT q4 q3,属于q3执行的第一个量子逻辑门、q4执行的第二个量子逻辑门,则该CNOT门对应的两个位数为q3对应的1和q4对应的2。同理,CNOT q2 q3对应的位数为2、2,CNOT q1 q0对应的位数为4、4,CNOT q3 q4对应的位数为3、4。Among them, the number of bits corresponding to the multi-quantum logic gate means that for each qubit operated by the multi-quantum logic gate, there is a corresponding number of bits, indicating that the multi-quantum logic gate belongs to the number of quanta that it executes. logic gate. As shown in Figure 2, the two quantum logic gates CNOT q4 q3 belong to the first quantum logic gate executed by q3 and the second quantum logic gate executed by q4, then the two digits corresponding to the CNOT gate are 1 corresponding to
需要说明的是,删除时序划分完成的量子逻辑门信息,是指删除量子线路信息中的该信息,为了方便时序划分之用,并不是删除量子程序中的量子逻辑门,合并后的量子程序结构并无变化。It should be noted that deleting the quantum logic gate information after the time sequence division is completed refers to deleting the information in the quantum circuit information. For the convenience of time sequence division, it does not mean deleting the quantum logic gates in the quantum program and the combined quantum program structure. No change.
示例性的,如图3所示,合并后量子程序对应的量子线路信息中,U0、U1、U4表示合并后新的单量子逻辑门,其中,U0门由H门、RX门、Z门合并,U1门由H门、X门、H门合并,U4门由Y门、RX门合并。此时,合并后的量子程序,量子逻辑门操作依旧是串行执行的,可根据前述特性划分执行时序,每个执行时序内的量子逻辑门可同时执行,起到并行计算的作用。Exemplarily, as shown in Figure 3, in the quantum circuit information corresponding to the quantum program after the merger, U0, U1, and U4 represent the new single quantum logic gate after the merger, wherein the U0 gate is merged by the H gate, the RX gate, and the Z gate. , U1 gate is merged by H gate, X gate, H gate, U4 gate is merged by Y gate, RX gate. At this time, the combined quantum program and quantum logic gate operations are still executed serially, and the execution sequence can be divided according to the aforementioned characteristics, and the quantum logic gates in each execution sequence can be executed at the same time, playing the role of parallel computing.
对每个量子比特而言,各自执行的第一个(第一位)量子逻辑门分别为U0、U1、RY、CNOT、H。对于单量子逻辑门U0、U1、RY、H,分别对量子比特q0、q1、q2、q4进行的操作间互不影响,可以划分进同一个时序,作为第一个时序内同时执行的量子逻辑门。For each qubit, the first (first bit) quantum logic gate executed respectively is U0, U1, RY, CNOT, H. For single quantum logic gates U0, U1, RY, and H, the operations performed on qubits q0, q1, q2, and q4 do not affect each other, and can be divided into the same sequence as the quantum logic executed simultaneously in the first sequence. Door.
对于q3执行的两量子逻辑门CNOT,该CNOT门同时操作的量子比特还有q4,而相对于q4,该CNOT门属于其第二位执行的量子逻辑门,q4需要在执行H门完成后才能执行,若将该CNOT门划分入第一个时序,则q4会同时执行H门和CNOT门,产生冲突,因此,可以将该CNOT门顺延放入下一个时序内执行。For the two-quantum logic gate CNOT executed by q3, the qubits operated by the CNOT gate at the same time also have q4. Compared with q4, the CNOT gate belongs to the quantum logic gate executed by its second bit, and q4 needs to be executed after the H gate is completed. Execution, if the CNOT gate is divided into the first sequence, q4 will execute the H gate and the CNOT gate at the same time, resulting in a conflict. Therefore, the CNOT gate can be postponed and executed in the next sequence.
同理,各量子比特执行的第二个量子逻辑门包括3个CNOT门,其中,q0、q1同时执行一个CNOT门即CNOT q1 q0,q3、q4同时执行一个CNOT门即CNOT q4 q3,q2执行一个CNOT门即CNOT q2 q3。由于q2执行的CNOT门同时还操作q3,而q3在执行完CNOT q4 q3后才能执行CNOT q2 q3,因此,将量子逻辑门操作CNOT q1 q0、CNOT q4 q3放入同一时序,作为第二个时序内同时执行的量子逻辑门,CNOT q2 q3顺延划分入下一个时序内执行。以此类推,可划分包括CNOT q2 q3、H q4的第三个时序、包括H q2、CNOT q3 q4的第四个时序及包括RZ q3、U4 q4的第五个时序。In the same way, the second quantum logic gate executed by each qubit includes 3 CNOT gates. Among them, q0 and q1 execute a CNOT gate at the same time, namely CNOT q1 q0, q3 and q4 execute a CNOT gate at the same time, namely CNOT q4 q3, and q2 execute A CNOT gate is CNOT q2 q3. Since the CNOT gate executed by q2 also operates q3, and q3 can only execute CNOT q2 q3 after executing CNOT q4 q3, therefore, put the quantum logic gate operations CNOT q1 q0 and CNOT q4 q3 into the same sequence as the second sequence Quantum logic gates that are executed simultaneously within the CNOT q2 q3 are deferred and divided into the next sequence for execution. By analogy, the third sequence including CNOT q2 q3 and H q4 can be divided into the fourth sequence including H q2 and CNOT q3 q4, and the fifth sequence including RZ q3 and U4 q4.
最终,得到如图4所示的量子线路,其中,虚线表示对执行时序的划分。Finally, the quantum circuit shown in Fig. 4 is obtained, wherein the dotted line represents the division of the execution sequence.
具体的,还可以根据各执行时序运行合并后的量子程序,即先执行第一个时序内的量子逻辑门,然后执行第二个时序内的量子逻辑门,直至最后一个时序内的量子逻辑门执行完成,其中,每个时序内的量子逻辑门同时执行。Specifically, the combined quantum program can also be run according to each execution sequence, that is, the quantum logic gate in the first sequence is executed first, then the quantum logic gate in the second sequence is executed, until the quantum logic gate in the last sequence is executed Execution completes, wherein the quantum logic gates within each sequence execute simultaneously.
可见,将量子程序中的量子逻辑门进行合并,合并后量子程序的量子逻辑门数量较少,从而能够精简量子程序,提高量子程序的计算效率;然后,划分合并后的量子程序中所有量子逻辑门的执行时序,其中,至少两个量子逻辑门处于同一执行时序,处于同一时序的量子逻辑门可以同时执行,由此进一步提高量子程序的计算效率。It can be seen that by combining the quantum logic gates in the quantum program, the number of quantum logic gates in the combined quantum program is less, so that the quantum program can be simplified and the computational efficiency of the quantum program can be improved; then, all quantum logics in the combined quantum program are divided The execution sequence of the gate, wherein at least two quantum logic gates are in the same execution sequence, and the quantum logic gates in the same sequence can be executed at the same time, thereby further improving the computational efficiency of the quantum program.
参见图5,图5是本发明实施例提供的一种量子程序的处理装置的结构示意图,与图1所示的流程对应,该装置可以包括:Referring to FIG. 5, FIG. 5 is a schematic structural diagram of an apparatus for processing a quantum program provided by an embodiment of the present invention. Corresponding to the flow shown in FIG. 1, the apparatus may include:
合并模块501,用于将量子程序中的量子逻辑门进行合并,得到合并后的量子程序;The merging
划分模块502,用于划分所述合并后的量子程序中的所有量子逻辑门的执行时序;其中,至少两个所述量子逻辑门处于同一执行时序。A
具体的,所述合并模块,具体用于:Specifically, the merging module is specifically used for:
遍历量子程序,确定每个量子比特分别执行的所有量子逻辑门;Traverse the quantum program to determine all the quantum logic gates that each qubit executes separately;
针对每个量子比特,将所述量子比特执行的两两相邻的多个单量子逻辑门,合并为一组合量子逻辑门;其中,所述组合量子逻辑门为单量子逻辑门,且所述组合量子逻辑门的酉矩阵为所述两两相邻的多个单量子逻辑门的酉矩阵乘积。For each qubit, multiple adjacent single quantum logic gates executed by the qubit are combined into a combined quantum logic gate; wherein, the combined quantum logic gate is a single quantum logic gate, and the The unitary matrix of the combinatorial quantum logic gate is the unitary matrix product of the plurality of adjacent single quantum logic gates.
具体的,所述划分模块,具体用于:Specifically, the division module is specifically used for:
获得所述合并后的量子程序对应的量子线路信息;obtaining quantum circuit information corresponding to the combined quantum program;
根据当前的所述量子线路信息,将每个量子比特各自执行的第一位量子逻辑门中的单量子逻辑门的执行时序,划分为同一时序;According to the current quantum circuit information, the execution sequence of the single quantum logic gate in the first quantum logic gate executed by each qubit is divided into the same sequence;
当所述第一位量子逻辑门中的多量子逻辑门对应的多个位数均为第一位时,将所述多量子逻辑门的执行时序,划分为所述同一时序;When the multiple bits corresponding to the multiple quantum logic gates in the first quantum logic gate are all first bits, dividing the execution sequence of the multiple quantum logic gates into the same sequence;
删除所述量子线路信息包含的时序划分完成的量子逻辑门信息,继续执行所述根据当前的所述量子线路信息,将每个量子比特各自执行的第一位量子逻辑门中的单量子逻辑门的执行时序,划分为同一时序的步骤。Delete the quantum logic gate information of the quantum circuit information that has completed the timing division, and continue to execute the single quantum logic gate in the first quantum logic gate executed by each qubit according to the current quantum circuit information. The execution sequence is divided into steps of the same sequence.
具体的,所述划分模块,还具体用于:当所述第一位量子逻辑门中的多量子逻辑门对应的多个位数不均为第一位时,将所述多量子逻辑门的执行时序,划分为所述同一时序的下一时序。Specifically, the dividing module is also specifically configured to: when the number of bits corresponding to the multiple quantum logic gates in the first quantum logic gate is not the first one, divide the number of bits of the multiple quantum logic gates into The execution sequence is divided into the next sequence of the same sequence.
具体的,还可以包括:运行模块,用于根据各所述执行时序,运行所述合并后的量子程序。Specifically, it may further include: a running module, configured to run the combined quantum program according to each of the execution sequences.
可见,将量子程序中的量子逻辑门进行合并,合并后量子程序的量子逻辑门数量较少,从而能够精简量子程序,提高量子程序的计算效率;然后,划分合并后的量子程序中所有量子逻辑门的执行时序,其中,至少两个量子逻辑门处于同一执行时序,处于同一时序的量子逻辑门可以同时执行,由此进一步提高量子程序的计算效率。It can be seen that by combining the quantum logic gates in the quantum program, the number of quantum logic gates in the combined quantum program is less, so that the quantum program can be simplified and the computational efficiency of the quantum program can be improved; then, all quantum logics in the combined quantum program are divided The execution sequence of the gate, wherein at least two quantum logic gates are in the same execution sequence, and the quantum logic gates in the same sequence can be executed at the same time, thereby further improving the computational efficiency of the quantum program.
本发明实施例还提供一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。An embodiment of the present invention further provides a storage medium, where a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
具体的,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:Specifically, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for executing the following steps:
S1,将量子程序中的量子逻辑门进行合并,得到合并后的量子程序;S1, combine the quantum logic gates in the quantum program to obtain the combined quantum program;
S2,划分所述合并后的量子程序中的所有量子逻辑门的执行时序;其中,至少两个所述量子逻辑门处于同一执行时序。S2, dividing the execution sequence of all quantum logic gates in the combined quantum program; wherein, at least two of the quantum logic gates are in the same execution sequence.
具体的,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。Specifically, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM for short), a random access memory (Random Access Memory, referred to as RAM for short), mobile Various media that can store computer programs, such as hard disks, magnetic disks, or optical disks.
可见,将量子程序中的量子逻辑门进行合并,合并后量子程序的量子逻辑门数量较少,从而能够精简量子程序,提高量子程序的计算效率;然后,划分合并后的量子程序中所有量子逻辑门的执行时序,其中,至少两个量子逻辑门处于同一执行时序,处于同一时序的量子逻辑门可以同时执行,由此进一步提高量子程序的计算效率。It can be seen that by combining the quantum logic gates in the quantum program, the number of quantum logic gates in the combined quantum program is less, so that the quantum program can be simplified and the computational efficiency of the quantum program can be improved; then, all quantum logics in the combined quantum program are divided The execution sequence of the gate, wherein at least two quantum logic gates are in the same execution sequence, and the quantum logic gates in the same sequence can be executed at the same time, thereby further improving the computational efficiency of the quantum program.
本发明实施例还提供一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention further provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments .
具体的,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Specifically, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
具体的,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Specifically, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
S1,将量子程序中的量子逻辑门进行合并,得到合并后的量子程序;S1, combine the quantum logic gates in the quantum program to obtain the combined quantum program;
S2,划分所述合并后的量子程序中的所有量子逻辑门的执行时序;其中,至少两个所述量子逻辑门处于同一执行时序。S2, dividing the execution sequence of all quantum logic gates in the combined quantum program; wherein, at least two of the quantum logic gates are in the same execution sequence.
可见,将量子程序中的量子逻辑门进行合并,合并后量子程序的量子逻辑门数量较少,从而能够精简量子程序,提高量子程序的计算效率;然后,划分合并后的量子程序中所有量子逻辑门的执行时序,其中,至少两个量子逻辑门处于同一执行时序,处于同一时序的量子逻辑门可以同时执行,由此进一步提高量子程序的计算效率。It can be seen that by combining the quantum logic gates in the quantum program, the number of quantum logic gates in the combined quantum program is less, so that the quantum program can be simplified and the computational efficiency of the quantum program can be improved; then, all quantum logics in the combined quantum program are divided The execution sequence of the gate, wherein at least two quantum logic gates are in the same execution sequence, and the quantum logic gates in the same sequence can be executed at the same time, thereby further improving the computational efficiency of the quantum program.
以上依据图式所示的实施例详细说明了本发明的构造、特征及作用效果,以上所述仅为本发明的较佳实施例,但本发明不以图面所示限定实施范围,凡是依照本发明的构想所作的改变,或修改为等同变化的等效实施例,仍未超出说明书与图示所涵盖的精神时,均应在本发明的保护范围内。The structure, features and effects of the present invention have been described in detail above according to the embodiments shown in the drawings. The above are only the preferred embodiments of the present invention, but the scope of the present invention is not limited by the drawings. Changes made to the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, shall fall within the protection scope of the present invention as long as they do not exceed the spirit covered by the description and drawings.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910810035.4A CN110516810B (en) | 2019-08-29 | 2019-08-29 | A quantum program processing method, device, storage medium and electronic device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910810035.4A CN110516810B (en) | 2019-08-29 | 2019-08-29 | A quantum program processing method, device, storage medium and electronic device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110516810A CN110516810A (en) | 2019-11-29 |
| CN110516810B true CN110516810B (en) | 2022-08-12 |
Family
ID=68628123
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910810035.4A Active CN110516810B (en) | 2019-08-29 | 2019-08-29 | A quantum program processing method, device, storage medium and electronic device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110516810B (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111027703B (en) * | 2019-12-11 | 2024-04-05 | 本源量子计算科技(合肥)股份有限公司 | Quantum circuit query method and device, storage medium and electronic device |
| CN111027702B (en) * | 2019-12-11 | 2023-12-15 | 本源量子计算科技(合肥)股份有限公司 | Method and device for realizing quantum circuit replacement, storage medium and electronic device |
| CN113222162B (en) * | 2020-01-21 | 2023-08-08 | 本源量子计算科技(合肥)股份有限公司 | Method and system for judging mobility of quantum logic gate |
| CN111401562B (en) * | 2020-03-11 | 2023-12-15 | 本源量子计算科技(合肥)股份有限公司 | Method and device for operating quantum circuit in terminal interface |
| CN111539531A (en) * | 2020-04-28 | 2020-08-14 | 济南浪潮高新科技投资发展有限公司 | Quantum bit resetting method, device, equipment and readable storage medium |
| CN111563599B (en) * | 2020-04-30 | 2023-12-12 | 本源量子计算科技(合肥)股份有限公司 | Quantum circuit decomposition method and device, storage medium and electronic device |
| CN113010302B (en) * | 2021-02-02 | 2022-11-01 | 中国人民解放军战略支援部队信息工程大学 | Multitask scheduling method, system and quantum computer system architecture under quantum-classical hybrid architecture |
| CN116757288A (en) * | 2023-04-13 | 2023-09-15 | 深圳量旋科技有限公司 | Quantum circuit editing method and device, electronic equipment and storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103839506A (en) * | 2012-11-20 | 2014-06-04 | 联咏科技股份有限公司 | Display device, driving circuit thereof, driving method of display panel and display system |
| CN103888688A (en) * | 2014-03-20 | 2014-06-25 | 中国科学院光电技术研究所 | Time sequence generating device for driving charge coupled device |
| CN107294960A (en) * | 2017-06-08 | 2017-10-24 | 北京邮电大学 | A kind of method for protecting of software defined network control passage |
| CN108334952A (en) * | 2017-11-24 | 2018-07-27 | 南京航空航天大学 | A kind of novel universal quantum door and quantum wire optimization method |
| CN108764490A (en) * | 2018-08-28 | 2018-11-06 | 合肥本源量子计算科技有限责任公司 | A kind of quantum virtual machine |
| CN109472364A (en) * | 2018-10-17 | 2019-03-15 | 合肥本源量子计算科技有限责任公司 | Quantum program processing method and device, storage medium and electronic device |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6924501B2 (en) * | 2001-09-27 | 2005-08-02 | National Institute Of Advanced Industrial Science And Technology | Quantum logic gate and quantum logic operation method using exciton |
| CN109961150B (en) * | 2019-03-27 | 2021-05-07 | 中国科学技术大学 | A quantum program transformation method and system for dealing with decoherence |
-
2019
- 2019-08-29 CN CN201910810035.4A patent/CN110516810B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103839506A (en) * | 2012-11-20 | 2014-06-04 | 联咏科技股份有限公司 | Display device, driving circuit thereof, driving method of display panel and display system |
| CN103888688A (en) * | 2014-03-20 | 2014-06-25 | 中国科学院光电技术研究所 | Time sequence generating device for driving charge coupled device |
| CN107294960A (en) * | 2017-06-08 | 2017-10-24 | 北京邮电大学 | A kind of method for protecting of software defined network control passage |
| CN108334952A (en) * | 2017-11-24 | 2018-07-27 | 南京航空航天大学 | A kind of novel universal quantum door and quantum wire optimization method |
| CN108764490A (en) * | 2018-08-28 | 2018-11-06 | 合肥本源量子计算科技有限责任公司 | A kind of quantum virtual machine |
| CN109472364A (en) * | 2018-10-17 | 2019-03-15 | 合肥本源量子计算科技有限责任公司 | Quantum program processing method and device, storage medium and electronic device |
Non-Patent Citations (1)
| Title |
|---|
| 可编程量子计算架构研究;陈佳临;《中国博士学位论文全文数据库 信息科技辑》;20160115(第1期);摘要 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110516810A (en) | 2019-11-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110826719B (en) | Quantum program processing method and device, storage medium and electronic device | |
| CN110516810B (en) | A quantum program processing method, device, storage medium and electronic device | |
| CN111652368B (en) | Data processing method and related product | |
| CN108154240B (en) | Low-complexity quantum line simulation system | |
| CN110825375A (en) | A quantum program transformation method, device, storage medium and electronic device | |
| JP7394851B2 (en) | Control NOT gate parallelization in quantum computing simulation | |
| CN110188885A (en) | A quantum computing simulation method, device, storage medium and electronic device | |
| CN110929873B (en) | A quantum program processing method, device, storage medium and electronic device | |
| WO2020151129A1 (en) | Quantum machine learning framework construction method and apparatus, and quantum computer and computer storage medium | |
| CN107977541B (en) | Method for optimizing quantum circuit simulation | |
| CN111178532B (en) | Quantum circuit matching method and device, storage medium and electronic device | |
| CN113222159B (en) | A method and device for determining a quantum state | |
| CN114358216B (en) | Quantum clustering method and related device based on machine learning framework | |
| CN114358319B (en) | Machine learning framework-based classification method and related device | |
| KR20230132369A (en) | Reducing resources in quantum circuits | |
| CN111931939A (en) | Single-amplitude quantum computation simulation method | |
| CN118780282A (en) | Natural language processing model training method, device and computer equipment | |
| CN118918395B (en) | Image classification method, device, medium and equipment based on distributed quantum computing | |
| CN114511094B (en) | Quantum algorithm optimization method and device, storage medium and electronic device | |
| Pedretti et al. | Solving Boolean satisfiability problems with resistive content addressable memories | |
| CN113257352A (en) | Gene sequencing data sequencing method, integrated circuit and sequencing equipment | |
| US20220147808A1 (en) | Compiler configurable to generate instructions executable by different deep learning accelerators from a description of an artificial neural network | |
| CN117371551A (en) | Data combination recommendation method and device, electronic equipment and storage medium | |
| CN116403657A (en) | A drug response prediction method, device, storage medium and electronic device | |
| KR20230155760A (en) | Quantum Circuit Simulation Hardware |
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 | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: 230088 6th floor, E2 building, phase II, innovation industrial park, 2800 innovation Avenue, high tech Zone, Hefei City, Anhui Province Patentee after: Benyuan Quantum Computing Technology (Hefei) Co.,Ltd. Country or region after: China Address before: 230088 6th floor, E2 building, phase II, innovation industrial park, 2800 innovation Avenue, high tech Zone, Hefei City, Anhui Province Patentee before: ORIGIN QUANTUM COMPUTING COMPANY, LIMITED, HEFEI Country or region before: China |