A quantum hardware simulation computation method and device for uniformly controlling a quantum rotating gate

By decomposing a uniformly controlled rotating gate into a combination of a single-qubit rotating gate and a controlled NOT gate, and using FPGA hardware to generate quantum pulse signals, the uniformly controlled quantum rotating gate can be simulated and computed on a quantum chip. This solves the problem that quantum chips cannot directly support this gate and improves computational efficiency.

CN117829300BActive Publication Date: 2026-11-17ORIGIN QUANTUM COMPUTING TECH (HEFEI) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311848056.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2026-11-17
Estimated Expiration
2043-12-28

AI Technical Summary

Technical Problem

Existing quantum chips cannot directly support uniformly controlled quantum rotation gates. They need to be decomposed into a combination of single quantum rotation gates and controlled NOT gates supported by the quantum chip to achieve simulation computation.

Method used

The uniformly controlled rotating gate is decomposed into an equivalent circuit consisting of multiple single-qubit rotating gates and controlled NOT gates. Quantum pulse signals are generated by running FPGA-based measurement and control hardware on a quantum chip to simulate and calculate the uniformly controlled quantum rotating gate.

Benefits of technology

This study demonstrated the ability to simulate uniformly controlled quantum rotation gates on a real quantum chip, reducing complexity and improving the efficiency of quantum computing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117829300B_ABST
    Figure CN117829300B_ABST
Patent Text Reader

Abstract

This application discloses a quantum hardware simulation calculation method and apparatus for a uniformly controlled quantum rotating gate. The uniformly controlled quantum rotating gate includes multiple uniformly controlled rotating single gates. The method includes: decomposing the uniformly controlled rotating single gate into an equivalent circuit including multiple single-qubit rotating gates and controlled NOT gates, wherein the number of single-qubit rotating gates is the same as the total number of uniformly controlled rotating single gates; the rotation angle of each single-qubit rotating gate is determined by the quantum state of the control bit of the uniformly controlled rotating single gate and the rotation angle of the uniformly controlled rotating single gate; and simulating the calculation of the uniformly controlled quantum rotating gate by running quantum pulse signals of the corresponding equivalent circuit generated by FPGA-based measurement and control hardware on a quantum chip. Using the embodiments of this application, the uniformly controlled quantum rotating gate can be simulated and calculated on a quantum chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of quantum computing, and in particular to a quantum hardware simulation computing method and device for uniformly controlling a quantum rotating gate. Background Technology

[0002] Quantum computers, with their immense computing power, offer new possibilities for overcoming the current limitations of computing. This is reflected in two aspects: firstly, quantum computers guarantee exponential or polynomial speedups over classical computers on specific problems; secondly, the manipulation techniques for quantum systems are becoming increasingly sophisticated, enabling high-fidelity gate implementation and reasonable coherence times for multi-qubit devices. A series of calculations based on recent quantum devices demonstrate the enormous potential and application value of quantum computing in the future, making it the most likely path to breaking through the limits of classical computing power.

[0003] Currently, quantum computing algorithms are typically represented using quantum circuits. A quantum circuit consists of qubits and quantum logic gates acting on those qubits. A continuous quantum circuit can usually contain tens, hundreds, or even thousands of quantum logic gates. These gates can be basic quantum logic gates or uniformly controlled gates. Uniformly controlled gates (or multiplexed gates) are a generalization of conditional unitary gates with an arbitrary number of control qubits. For each different configuration of the control qubits, a different unitary operator is applied to the target qubit. A control qubit refers to the qubit that acts as the control bit. For example, the unitary matrix corresponding to a uniformly controlled gate with 3 control qubits is shown below. This matrix form corresponds to a uniformly controlled gate with the control qubits at the top and the target qubits at the bottom.

[0004]

[0005] Each block U is a unitary operator acting on the same number of qubits. Here, each block is labeled with a corresponding control state; for example, when the quantum state of the control bit is |011>, then U... 011 It acts on the target bit. For an n-bit uniform control gate, it is equivalent to 2. n A combination of uniformly controlled single gates, each uniformly controlled single gate corresponding to a quantum state of the uniformly controlled gate control bit.

[0006] Uniform control gates include uniform control quantum rotation gates. Uniform control quantum rotation gates are not quantum logic gates supported by real quantum chips and cannot run on quantum chips. Therefore, quantum hardware simulation calculations of uniform control quantum rotation gates need to decompose the uniform control quantum rotation gates into combinations of quantum logic gates supported by quantum chips. Summary of the Invention

[0007] The purpose of this application is to provide a quantum hardware simulation calculation method and apparatus for uniformly controlling a quantum rotating gate, aiming to achieve uniform control of the quantum rotating gate in quantum chip simulation calculation.

[0008] One embodiment of this application provides a quantum hardware simulation computation method for uniformly controlled quantum rotation gates, the method comprising:

[0009] The uniformly controlled rotating single gate is decomposed into an equivalent circuit comprising multiple single-qubit rotating gates and controlled NOT gates, wherein the number of single-qubit rotating gates is the same as the total number of uniformly controlled rotating single gates; the rotation angle of the single-qubit rotating gate is determined by the quantum state of the control bit of the uniformly controlled rotating single gate and the rotation angle of the uniformly controlled rotating single gate.

[0010] The quantum pulse signal generated by the corresponding equivalent circuit of the quantum chip running FPGA-based measurement and control hardware is used to simulate and calculate the uniform control of the quantum rotating gate.

[0011] Optionally, there are multiple control bits for uniformly controlling the rotation of a single gate;

[0012] The uniformly controlled rotating single gate is decomposed into an equivalent circuit comprising multiple single-qubit rotating gates and controlled NOT gates, including:

[0013] Based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, the uniformly controlled rotating single gate is decomposed into a control NOT gate and a single-qubit rotating gate acting on the target bit to form an equivalent circuit, wherein the control NOT gate is the control NOT gate between the control bit and the target bit.

[0014] Optionally, there are multiple control bits for uniformly controlling the rotation of a single gate;

[0015] The uniformly controlled rotating single gate is decomposed into an equivalent circuit comprising multiple single-qubit rotating gates and controlled NOT gates, including:

[0016] Based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, the uniformly controlled rotating single gate is decomposed into a control NOT gate and a single-qubit rotating gate acting on the target bit to form an equivalent circuit; wherein, the control NOT gate includes the control NOT gate between control bits and the control NOT gate between the control bit and the target bit.

[0017] Optionally, based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, the uniformly controlled rotating single gate is decomposed into a controlled NOT gate and a single-qubit rotating gate acting on the target bit to form an equivalent circuit, including:

[0018] Based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, the target flip information of the single-qubit rotating gate is determined, and the operation timing of the controlled NOT gate is determined based on the target flip information to form an equivalent circuit.

[0019] Optionally, the rotation angle of the single-qubit rotating gate is determined by the quantum state of the control bit of the uniformly controlled rotating single gate and the rotation angle of the uniformly controlled rotating single gate, including:

[0020] Based on the target flipping information of the single-qubit rotating gate in each equivalent circuit, the row value corresponding to the equivalent circuit in the target matrix is ​​determined. The number of columns in the target matrix is ​​the number of single-qubit rotating gates in the equivalent circuit. The product of the target matrix and the first column vector is equal to the second column vector. The first column vector is composed of the rotation angles of the multiple single-qubit rotating gates. The second column vector includes the rotation angles of the multiple uniformly controlled rotating single gates.

[0021] Based on the target matrix and the second column vector, the rotation angle of the rotating gate for each single qubit is obtained by inverse solving.

[0022] Optionally, determining the row value of the equivalent circuit in the target matrix based on the target flip information of the single-qubit rotation gate in each equivalent circuit includes:

[0023] For each equivalent circuit, based on the target flip information of the single-qubit rotation gate, it is determined whether the quantum state corresponding to each single-qubit rotation gate in the equivalent circuit is flipped, and based on whether it is flipped, the value of each element in the row corresponding to the equivalent circuit in the target matrix is ​​determined.

[0024] Optionally, the elements in the second column vector are determined by the rotation angle of the uniformly controlled rotating single gate and the corresponding target number, wherein the target number is the number of controlled NOT gates in the equivalent circuit corresponding to the uniformly controlled rotating single gate.

[0025] Optionally, when the number of targets corresponding to a uniformly controlled rotating single gate is even, the corresponding element in the second column vector is α. i , where α i To control the rotation angle of the corresponding uniform rotating door;

[0026] When the number of targets corresponding to a uniformly controlled rotating single gate is odd, the corresponding element in the second column vector is ο-α. i .

[0027] Optionally, the quantum pulse signal includes a high-frequency analog signal for realizing a single-qubit rotating gate.

[0028] Optionally, the quantum pulse signal includes a single pulse signal that implements a controlled NOT gate; the single pulse signal includes a bit frequency adjustment signal and a bit state adjustment signal.

[0029] Another embodiment of this application provides a quantum hardware simulation computing device for uniformly controlled quantum rotating gates, wherein the uniformly controlled quantum rotating gates include multiple uniformly controlled rotating single gates, and the device includes:

[0030] The decomposition module is used to decompose the uniformly controlled rotating single gate into an equivalent circuit including multiple single-qubit rotating gates and controlled NOT gates, wherein the number of single-qubit rotating gates is the same as the total number of uniformly controlled rotating single gates; the rotation angle of the single-qubit rotating gate is determined by the quantum state of the control bit of the uniformly controlled rotating single gate and the rotation angle of the uniformly controlled rotating single gate.

[0031] The simulation computing module is used to simulate and calculate the quantum pulse signals of the corresponding equivalent circuit generated by the FPGA-based measurement and control hardware running on the quantum chip to uniformly control the quantum rotating gate.

[0032] One embodiment of this application provides a storage medium storing a computer program, wherein the computer program is configured to implement the method described in any of the above-described embodiments when running.

[0033] One embodiment of this application provides an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to implement the method described in any of the above-described embodiments.

[0034] Compared with the prior art, this application first decomposes the uniformly controlled rotating single gate into a combination of a single quantum rotating gate supported by a quantum chip and a controlled NOT gate. The rotation angle of the single quantum rotating gate is determined by the quantum state of the control bit and the rotation angle of the uniformly controlled rotating single gate. Then, the quantum pulse signal of the corresponding equivalent circuit generated by the FPGA-based measurement and control hardware is used to simulate and calculate the uniformly controlled quantum rotating gate on the quantum chip, thereby realizing the simulation and calculation of the uniformly controlled quantum rotating gate on a real quantum chip. Attached Figure Description

[0035] Figure 1 A network block diagram of a quantum hardware simulation computing system for uniformly controlled quantum rotating gates provided in this application embodiment;

[0036] Figure 2a A schematic diagram of the structure of a quantum circuit with a uniform control gate having 3 control qubits;

[0037] Figure 2b A schematic diagram of the structure of a quantum circuit for a uniform control gate with three control qubits;

[0038] Figure 3 A schematic diagram of the equivalent circuit structure of a 3-bit uniform control gate decomposed into a uniform control single gate;

[0039] Figure 4 A schematic flowchart illustrating a quantum hardware simulation calculation method for uniformly controlled quantum rotating gates provided in this application embodiment;

[0040] Figure 5 A schematic diagram of the equivalent circuit structure of a uniformly controlled quantum rotating gate with 3 control bits decomposed into a uniformly controlled rotating single gate;

[0041] Figure 6 A schematic diagram of the equivalent circuit of a uniformly controlled rotating single door provided in an embodiment of this application;

[0042] Figure 7 A schematic diagram of the equivalent circuit of another uniformly controlled rotating single door provided in an embodiment of this application;

[0043] Figure 8 A schematic diagram of the equivalent circuit of another uniformly controlled rotating single door provided in the embodiments of this application;

[0044] Figure 9 This is a schematic diagram of the equivalent circuit obtained by decomposing a uniformly controlled quantum rotation gate with 3 control bits.

[0045] Figure 10 This is a schematic diagram of the equivalent circuit obtained by decomposing a uniformly controlled quantum rotation gate with two control bits.

[0046] Figure 11 This is a schematic diagram of a quantum hardware simulation computing device for uniformly controlling a quantum rotating gate, provided as an embodiment of this application. Detailed Implementation

[0047] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0048] Figure 1 This is a network block diagram of a quantum hardware simulation computing system for uniformly controlled quantum rotating gates, provided as an embodiment of this application. The quantum hardware simulation computing system for uniformly controlled quantum rotating gates may include a network 110, a server 120, a wireless device 130, a client 140, a storage unit 150, a classical processing system 160, and a quantum processing system 170. It may also include additional memory, a classical processor, a quantum processor, and other devices (not shown).

[0049] Network 110 is a medium used to provide communication links between various devices and computers connected together within a quantum hardware simulation computing system for uniformly controlling quantum rotating gates. This includes, but is 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.

[0050] Server 120 and client 140 are conventional data processing systems that may contain data and applications 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.

[0051] The classical processing system 160 (quantum processing system 170) may include a classical processor 161 (quantum processor 171) for processing classical data (quantum data) and a memory 163 (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 162 (application program 173). The application program 162 (application program 173) may be used to implement a quantum algorithm compiled according to the quantum hardware simulation calculation method for uniformly controlled quantum rotating gate provided in the embodiments of this application.

[0052] Any data or information stored or generated in the classical processing system 160 (quantum processing system 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.

[0053] 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 processing system 160, which is responsible for performing classical calculations and control; and the quantum processing system 170, which is responsible for running quantum programs and thus realizing quantum computing.

[0054] The aforementioned classical processing system 160 and quantum processing system 170 can be integrated into a single device or distributed across two different devices. For example, the first device, including the classical processing system 160, runs a classical computer operating system that provides quantum application development tools and services, as well as the storage and network services required for quantum applications. Users develop quantum applications using the quantum application development tools and services on the second device and send the quantum program to the second device, including the quantum processing system 170, via the network services. The second device runs a quantum computer operating system, which parses the code of the quantum program and compiles it into instructions that can be recognized and executed by the quantum computer control system. The quantum processor 170 then implements the quantum algorithm corresponding to the quantum program based on these instructions.

[0055] In the classic silicon-based processing system 160, the units of the classic processor 161 are CMOS transistors. 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 these computing units in a silicon chip is sufficient; currently, a classic processor contains tens of thousands of computing units. The sufficient number of computing units and the fixed selectable computing logic of the CMOS transistors, such as AND logic, allow for computational efficiency through a combination of numerous CMOS transistors and limited logic functions.

[0056] Unlike the logic units in the classical processing system 160, the basic computational unit of the quantum processor 171 in the quantum processing system 170 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 logic functions. Given the limited number of qubits and the diverse logic 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 logic function combinations to achieve computational effects.

[0057] Based on these differences, the design of logical functions applied to qubits (including the design of whether qubits are used and the design of the efficiency of each qubit's use) is crucial to improving the computational performance of quantum computers and requires specialized design. The aforementioned design considerations for qubits are technical issues that ordinary computing devices do not need to address.

[0058] First, the technologies and key terms related to quantum computing involved in this application will be explained.

[0059] Uniform control gates are typically represented by half-filled boxes or squares in circuit diagrams to indicate their control qubits. For example, a uniform control gate with 3 control qubits can be represented as... Figure 2a or Figure 2b As shown, '\' represents one or more control bits. For a uniform control gate with n control bits, it is equivalent to 2 n A uniformly controlled single-door combination, exemplified as, Figure 3 As shown, a uniform control gate with 3 control bits can be decomposed into 8 uniform control single gates carrying control information. If each diagonal block in the matrix corresponding to a uniform control gate is a 2x2 matrix, then the uniform control gate is called a uniform control single gate. Figure 3 In the diagram, u000, u001, ..., u111 are uniformly controlled single gates, and the quantum state of the control bit corresponding to u000 is |000>.

[0060] Uniform control gates include uniform control quantum rotation gates. The matrix of a uniform control quantum rotation gate with n control qubits can be represented as:

[0061]

[0062] in, To ensure uniform control of the rotating single door.

[0063] See Figure 4 , Figure 4 A flowchart illustrating a quantum hardware simulation computation method for uniformly controlled quantum rotating gates, provided for embodiments of this application, may include the following steps:

[0064] S401: Decompose the uniformly controlled rotating single gate into an equivalent circuit comprising multiple single-qubit rotating gates and controlled NOT gates, wherein the number of single-qubit rotating gates is the same as the total number of uniformly controlled rotating single gates; the rotation angle of the single-qubit rotating gate is determined by the quantum state of the control bit of the uniformly controlled rotating single gate and the rotation angle of the uniformly controlled rotating single gate.

[0065] A uniformly controlled quantum rotation gate comprises multiple uniformly controlled single-gate rotations. Specifically, a uniformly controlled quantum rotation gate can be equivalent to 2n A combination of uniformly controlled rotating single doors, the equivalent circuit can be as follows: Figure 5 As shown. Each uniformly controlled rotating gate is decomposed to obtain the corresponding equivalent circuit. The number of single-qubit rotating gates included in an equivalent circuit is related to the total number of uniformly controlled rotating gates. For example, for a uniformly controlled quantum rotating gate with 3 control bits, the equivalent circuit of a uniformly controlled rotating gate includes 2... 3 A single-qubit rotation gate. The equivalent circuit of different uniformly controlled rotation gates may include different numbers of controlled NOT gates, and there are cases where the equivalent circuit does not contain any controlled NOT gates.

[0066] The uniformly controlled rotation gates corresponding to different quantum states of a control bit can essentially be viewed as corresponding single-qubit rotation gates based on their respective quantum states. Single-qubit controlled quantum rotation gates and multi-qubit controlled quantum rotation gates can be decomposed to obtain corresponding equivalent circuits. During decomposition, controlled-NOT gates are used to ensure that the number of single-qubit rotation gates in the equivalent circuit is the same, and the rotation angle of each single-qubit rotation gate is also the same. Therefore, the number of controlled-NOT gates and the number of active qubits can differ in different equivalent circuits. Various decomposition methods exist, as long as an equivalent circuit is obtained. It should be noted that the equivalent circuits of all uniformly controlled rotation gates combined together constitute the equivalent circuit of a uniformly controlled quantum rotation gate.

[0067] In this embodiment, a mathematical relationship exists between the rotation angles of all single-qubit rotating gates in an equivalent circuit and the rotation angle of the corresponding uniformly controlled rotating gate. Based on these mathematical relationships, a correlation can be established between the rotation angles of the uniformly controlled rotating gates and the rotation angles of the single-qubit rotating gates, allowing one rotation angle to be determined from another. The controlled-NOT gate is a CNOT gate, whose main function is to adjust the combination relationship between the rotation angles of the single-qubit rotating gates, thereby representing the rotation angles of different uniformly controlled rotating gates using the same set of single-qubit rotating gate rotation angles.

[0068] S402: The quantum pulse signal generated by the FPGA-based measurement and control hardware running on the quantum chip is used to simulate and calculate the uniform control of the quantum rotating gate by the quantum pulse signal of the corresponding equivalent circuit.

[0069] Quantum pulse signals can control the state of qubits on a quantum chip, exciting them and causing them to change under the control of the pulse signal. Measuring the quantum state of the controlled qubits yields the simulation results of uniformly controlled quantum rotation gates. It's important to note that quantum pulse signals require design to achieve this simulation. The design of quantum pulse signals can be achieved using mathematical optimization methods, such as dynamic programming, gradient descent, and genetic algorithms. The basic idea is to adjust parameters such as the time, phase, and intensity of the control pulses to create quantum circuits composed of basic quantum logic gates, thereby achieving the final goal.

[0070] Current research on quantum chips mainly includes superconductivity, semiconductor quantum dots, ion traps, quantum topology, diamond vacancies, and photons. Quantum pulse signals also need to be designed according to the characteristics of the quantum chip. For example, the determination of pulse control information for superconducting quantum chips can typically be achieved using microwave pulses, magnetic flux pulses, and pulse amplitude modulation. For quantum chips implemented using other methods, the form and method of pulse signal determination differ, and will not be elaborated upon here.

[0071] The measurement and control hardware is implemented based on FPGA (Field Programmable Gate Array), and the measurement and control hardware can differ depending on the type of quantum chip. The measurement and control hardware for a superconducting quantum chip can include a radio frequency module, an AWG (Arbitrary Waveform Generator) module, a DC voltage source module, a signal acquisition module, and so on. The quantum pulse signal can be a signal sequence, which may contain signals corresponding to different equivalent circuits. These signals are applied sequentially to the quantum chip, causing changes in the state of the qubits, thereby achieving uniform control of the computational results of the quantum rotation gate on the actual quantum chip.

[0072] In this embodiment, the uniformly controlled rotating gate is first decomposed into a combination of a single quantum rotating gate supported by the quantum chip and a controlled NOT gate. The rotation angle of the single quantum rotating gate is determined by the quantum state of the control bit and the rotation angle of the uniformly controlled rotating gate. Then, the quantum pulse signal of the corresponding equivalent circuit generated by the FPGA-based measurement and control hardware is used to simulate and calculate the uniformly controlled quantum rotating gate on the quantum chip, thereby realizing the simulation and calculation of the uniformly controlled quantum rotating gate on a real quantum chip.

[0073] In some embodiments of this application, the quantum pulse signal may include a high-frequency analog signal that implements a single-qubit rotating gate. The high-frequency analog signal may contain information corresponding to the rotation angle of the single-qubit rotating gate. When the equivalent circuit includes more than one single-qubit rotating gate, the high-frequency analog signal includes a series of sub-signals to simulate the rotating gate of each single-qubit.

[0074] In some embodiments of this application, the quantum pulse signal may include a single pulse signal that implements a controlled NOT gate, the single pulse signal including a bit frequency adjustment signal and a bit state adjustment signal.

[0075] In quantum simulation, some or all of the frequency-tunable qubits in a quantum chip need to be adjusted to resonance or near resonance so that these qubits can interact to simulate global entanglement. The bit frequency adjustment signal is used to adjust the frequency to achieve entanglement between qubits, and the bit state adjustment signal is used to adjust the quantum state of the qubits to achieve the function of the controlled NOT gate.

[0076] In some embodiments of this application, there are multiple control bits for uniformly controlling the rotating single gate;

[0077] The uniformly controlled rotating single gate can be decomposed into an equivalent circuit comprising multiple single-qubit rotating gates and controlled NOT gates, which may include:

[0078] Based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, the uniformly controlled rotating single gate is decomposed into a control NOT gate and a single-qubit rotating gate acting on the target bit to form an equivalent circuit, wherein the control NOT gate is the control NOT gate between the control bit and the target bit.

[0079] In this embodiment, both the single-qubit rotation gate and the control NOT gate act on the target bit, which is the target bit of the uniformly controlled quantum rotation gate. All uniformly controlled single-qubit rotation gates use the same target bit. By acting the uniformly controlled single-qubit rotation gate and the control NOT gate on the corresponding qubit in a specific order, an equivalent circuit is formed. The control relationship between the control bit and the target bit can be determined by the quantum state of the control bit. For example, if the control bits are q2 and q1, when the quantum state of the control bit is |10>, the control relationship is that control bit q2 controls target bit q0; when the quantum state of the control bit is |11>, the control relationship is that control bits q2 and q1 control target bit q0. It should be noted that the initial state of the target bit of the uniformly controlled quantum rotation gate is |0>, the initial state of the target bit of the corresponding uniformly controlled single-qubit rotation gate is also |0>, and the initial state of the target bit acted upon by the single-qubit rotation gate is also |0>.

[0080] from Figure 5 It is known that a uniformly controlled rotating gate corresponds to a control relationship, which determines the number of controlled NOT gates and the operation timing of the controlled NOT gates and the single-qubit quantum rotating gate, thus determining the equivalent circuit. Based on the control relationship, the number of controlled NOT gates and their operation timing are determined, thereby adjusting the mathematical relationship between the rotation angle of the uniformly controlled rotating gate and the rotation angle of the single-qubit rotating gate. This satisfies the requirement that different rotation angles of the uniformly controlled rotating gate correspond to the same rotation angle of the single-qubit rotating gate.

[0081] In some embodiments of this application, there are multiple control bits for uniformly controlling the rotating single gate;

[0082] The uniformly controlled rotating single gate can be decomposed into an equivalent circuit comprising multiple single-qubit rotating gates and controlled NOT gates, which may include:

[0083] Based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, the uniformly controlled rotating single gate is decomposed into a control NOT gate and a single-qubit rotating gate acting on the target bit to form an equivalent circuit; wherein, the control NOT gate includes the control NOT gate between control bits and the control NOT gate between the control bit and the target bit.

[0084] Some quantum chips only support quantum logic gates between nearest-neighbor two-qubit pairs. Based on the control relationship, a uniformly controlled rotation gate can be decomposed into a control NOT gate between the control qubit and the target qubit, and a single-qubit rotation gate acting on the target qubit. Since some control qubits are not nearest neighbors to the target qubit, the corresponding control NOT gates are decomposed to obtain combinations of control NOT gates between nearest-neighbor qubits. Then, all single-qubit rotation gates and all control NOT gates are combined to obtain the equivalent circuit. Alternatively, during decomposition, the control NOT gates between nearest-neighbor qubits can be directly obtained based on the control relationship. This equivalent circuit is a chain-like, machine-friendly circuit, reducing the number of swap gates required for operations between non-nearest-neighbor qubits, thus lowering circuit complexity. It is a quantum circuit very friendly to quantum computers.

[0085] Single-qubit gates and two-qubit gates are universally applicable in quantum computing. The number of single-qubit and two-qubit gates is typically used to characterize the complexity of a quantum circuit or algorithm, a concept known as complexity. In quantum computing algorithms, the same problem can be solved using different quantum circuits, and the quality of a quantum circuit affects the efficiency of the algorithm and even the program. The evaluation of a quantum circuit or quantum algorithm primarily considers complexity. Generally, lower complexity indicates higher quality quantum circuits and better quantum computing performance. This is because, on the one hand, the entanglement required for practical quantum computing relies on the coherent interaction between individual qubits, while quantum systems inevitably undergo decoherence with the external environment. In other words, quantum operations must be completed within the system's allowed coherence time. The complexity of the quantum circuit determines whether quantum operations can be completed within the system's maximum coherence time. On the other hand, the complexity of the quantum circuit determines the relaxation time of the quantum algorithm; lower complexity results in shorter relaxation time and better computational performance. Therefore, reducing the number of quantum logic gates can reduce complexity, and the purpose of reducing complexity is to improve practical quantum algorithms. In the embodiments of this application, since the equivalent circuit obtained by decomposition consists entirely of operations between nearest-neighbor two-bit bits, a large number of swap gates are reduced, thus lowering the complexity. This allows for the verification and research of related quantum algorithms on a quantum computer, promoting the development of quantum computing in solving problems in different fields.

[0086] In some embodiments of this application, based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, the uniformly controlled rotating single gate is decomposed into a controlled NOT gate and a single-qubit rotating gate acting on the target bit to form an equivalent circuit, including:

[0087] Based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, the target flip information of the single-qubit rotating gate is determined, and the operation timing of the controlled NOT gate is determined based on the target flip information to form an equivalent circuit.

[0088] Each uniformly controlled rotating gate has the same number of single-qubit rotating gates in its equivalent circuit, but the corresponding control relationships are different. This results in different combinations of rotation angles between the single-qubit rotating gates, which can be equivalent to the rotation angles of the corresponding uniformly controlled rotating gates. The combination relationship is determined by the target flip information defined by the control relationship. There is a correspondence between the control relationship and the target flip information, which in turn determines the combination relationship.

[0089] The target flip information is whether the quantum state corresponding to a single-qubit rotation gate flips. That is, when the corresponding single-qubit rotation gate is executed, whether the quantum state of the target control bit flips. For example, for a uniformly controlled rotation gate, single-qubit rotation gate 1 does not flip, single-qubit rotation gate 2 flips, ..., single-qubit rotation gate n does not flip; or there are a total of 8 single-qubit rotation gates, and the target flip information is that single-qubit rotation gate 2, single-qubit rotation gate 3, single-qubit rotation gate 4, and single-qubit rotation gate 8 flip.

[0090] Once the target flip information is determined, a controlled NOT gate is needed to change the corresponding quantum state to match the flip information. For example, if the target flip information is that single-qubit rotation gate 1 does not flip and single-qubit rotation gate 2 flips, a controlled NOT gate can be applied between single-qubit rotation gate 1 and single-qubit rotation gate 2. The control bits of the controlled NOT gate are determined by the control relationship. If the target flip information also includes single-qubit rotation gate 3 flipping and single-qubit rotation gate 4 not flipping, then because single-qubit rotation gate 2 and single-qubit rotation gate 3 flip, the corresponding quantum state does not flip, and no controlled NOT gate is needed between single-qubit rotation gate 2 and single-qubit rotation gate 3. A flip occurs when the quantum state transitions from single-qubit rotation gate 3 to single-qubit rotation gate 4, in which case a controlled NOT gate is needed to change the corresponding quantum state. After traversing all target flip information and determining the relationship between single-qubit rotation gates and controlled NOT gates, the operation timing is determined. Based on the determined operation timing, quantum logic gates are applied to the corresponding qubits to form an equivalent circuit.

[0091] For example, taking a uniformly controlled quantum rotation gate with 3 control bits as an example, the uniformly controlled quantum rotation gate includes 8 uniformly controlled rotation single gates. The equivalent circuit of each uniformly controlled rotation single gate includes 8 single-qubit rotation gates. The control bits are q3q2q1 from high to low. When the quantum state of the control bit corresponding to the control relationship of a uniformly controlled rotation single gate is |000>, the uniformly controlled rotation single gate is equivalent to a single-qubit rotation gate. The corresponding equivalent circuit can be as follows: Figure 6 As shown. When the quantum state of the control bit corresponding to the control relationship of a uniformly controlled rotating single gate is |010>, the uniformly controlled rotating single gate is equivalent to a single-bit controlled quantum rotating gate. This single-bit controlled quantum rotating gate can be decomposed into a combination of single-qubit rotating gates and controlled NOT gates. However, the number of single-qubit rotating gates and their order of action on the target bit are fixed. Controlled NOT gates need to be applied between the single-qubit rotating gates to establish the combination relationship between the rotation angles of the single-qubit rotating gates, thus obtaining the corresponding equivalent circuit. Specifically, it can be seen as follows... Figure 7As shown. When the quantum state of the control bit corresponding to the control relationship of a uniformly controlled rotating single gate is |011>, the uniformly controlled rotating single gate is equivalent to a two-qubit controlled quantum rotating gate. This two-qubit controlled quantum rotating gate can be decomposed into a combination of a single-qubit rotating gate and a controlled NOT gate, as shown below. Figure 8 The equivalent circuit shown.

[0092] In some embodiments of this application, the uniformly controlled quantum rotation gate can be decomposed first to obtain the corresponding equivalent circuit. Then, based on the control relationship between the control bit and the target bit, the equivalent circuit is further decomposed to obtain the equivalent circuit of each uniformly controlled rotation gate. At this point, the rotation angle of the equivalent circuit of the uniformly controlled rotation gate is not yet determined. By traversing all the equivalent circuits of the uniformly controlled rotation gate, the mathematical relationship between the rotation angle of the uniformly controlled rotation gate and the rotation angle of the single-qubit logic gate is obtained, and then the rotation angle of the single-qubit logic gate is solved. For example, the equivalent circuit of the uniformly controlled quantum rotation gate can be as follows: Figure 9 As shown, for Figure 9 Further decomposition yields Figures 6-8 The equivalent circuit shown can be obtained by decomposing a uniformly controlled rotating single gate. Combining these equivalent circuits yields the following result: Figure 9 The quantum circuit shown is illustrated. The decomposition method for uniformly controlled quantum rotating gates can refer to the methods provided in patent applications "202210913821.9" and "202210989693.6". This application embodiment further processes the equivalent circuit obtained based on the above patent decomposition to meet the equivalent circuit requirements of this application's implementation. Regardless of the decomposition method used, a preliminary equivalent circuit can be obtained after decomposition. Quantum logic gates with mutually canceling effects or redundancy in the preliminary equivalent circuit are deleted to obtain the final equivalent circuit. This operation reduces the number of quantum logic gates, thereby reducing the size of the quantum pulse signal generated by the measurement and control hardware, reducing the computation of the corresponding quantum logic gates running on the quantum chip, and ultimately reducing the waste of computational resources.

[0093] When the controlled NOT gate is a controlled NOT gate between nearest-neighbor two-bit positions, the controlled NOT gate between non-nearest-neighbor two-bit positions can be decomposed to obtain the corresponding equivalent circuit. The equivalent circuit of a uniformly controlled quantum rotation gate with control bits q2 and q1 can be obtained as follows: Figure 10 As shown, Figure 10 The quantum circuit shown can be composed of an equivalent circuit that uniformly controls the rotation of a single gate.

[0094] In some embodiments of this application, the rotation angle of the single-qubit rotating gate is determined by the quantum state of the control bit of the uniformly controlled rotating gate and the rotation angle of the uniformly controlled rotating gate, and may include:

[0095] Based on the target flipping information of the single-qubit rotating gate in each equivalent circuit, the row value corresponding to the equivalent circuit in the target matrix is ​​determined. The number of columns in the target matrix is ​​the number of single-qubit rotating gates in the equivalent circuit. The product of the target matrix and the first column vector is equal to the second column vector. The first column vector is composed of the rotation angles of the multiple single-qubit rotating gates. The second column vector includes the rotation angles of the multiple uniformly controlled rotating single gates.

[0096] Based on the target matrix and the second column vector, the rotation angle of the rotating gate for each single qubit is obtained by inverse solving.

[0097] A row in the target matrix corresponds to a uniformly controlled rotating gate. That is, each quantum state corresponding to the control bit of the uniformly controlled quantum rotating gate corresponds to a row in the target matrix, and each element in the row corresponds to the target flip information of a single-qubit rotating gate. The target matrix is ​​a square matrix. The target flip information determines the value of the single-qubit rotating gate in its corresponding row. It can be predefined that if the single-qubit rotating gate flips, its value in the target matrix is ​​the first value; if it does not flip, its value is the second value. The first and second values ​​can be opposites, or other information representing flipping or non-flipping can be present between them. Because the equivalent circuit of each uniformly controlled rotating gate is different, further processing is needed based on the rotation angle of the uniformly controlled rotating gate to obtain a second column vector. Specifically, values ​​can be added or subtracted from the rotation angle of the uniformly controlled rotating gate according to the different equivalent circuits.

[0098] In some embodiments of this application, determining the row value corresponding to the equivalent circuit in the target matrix based on the target flip information of the single-qubit rotation gate in each equivalent circuit includes:

[0099] For each equivalent circuit, based on the target flip information of the single-qubit rotation gate, it is determined whether the quantum state corresponding to each single-qubit rotation gate in the equivalent circuit is flipped. Based on whether it is flipped, the value of each element in the row corresponding to that equivalent circuit in the target matrix is ​​determined. The target flip information of the single-qubit rotation gate determines the quantum state of the target bit corresponding to the single-qubit rotation gate in the equivalent circuit. If the initial quantum state of the target bit is |0>, and the target flip information of the single-qubit rotation gate is not flipped during the operating time of the single-qubit rotation gate, the quantum state of the target bit is |0>, then the corresponding element value is the first value. For example, when the first value is 1 and the second value is -1... Figure 6 If the uniformly controlled rotating gate shown does not flip, then the mathematical relationship between the rotation angles of the uniformly controlled rotating gate and the single-qubit rotating gate can be determined as: R a (θ1+θ2+θ3+θ4+θ5+θ6+θ7+θ8)=R a (α1), then the corresponding row in the target matrix can be represented as: [1 1 1 1 1 1 1 1 1]; similarly, it can be concluded that Figure 7 The row corresponding to the uniformly controlled rotating single gate in the target matrix can be represented as: [1 1 -1 -1 -1 -1 1 1]; This yields... Figure 8 The row corresponding to the uniformly controlled rotating single gate shown in the target matrix can be represented as: [1 -1 1 -1 -1 1 -1 1].

[0100] by Figure 10 For example, when the quantum state of control bit q1q0 is |00>, all controlled NOT gates are ineffective. Therefore, the equivalent circuit of a uniformly controlled rotating single gate does not include controlled NOT gates. The target flip information corresponding to the uniformly controlled rotating single gate is that all single-qubit rotating gates do not flip. The row corresponding to this uniformly controlled rotating single gate in the target matrix can be represented as: [1 1 1 1]. When the quantum state of control bit q1q0 is |01>, it is related to R... a The controlled NOT gate, which executes in a time-parallel manner, will not currently flip the quantum state of q2, R. a (θ2) does not flip, R a (θ2) and R a The controlled NOT gate between (θ3) causes the quantum state of q2 to flip due to the flip of the quantum state of q1, R a (θ3) Flip, R a (θ3) and R aThe controlled NOT gate between (θ4) does not actually work because the quantum state of q2 is still in a flipped state. Therefore, the quantum state of the control bit q1q0 is |01>, and the corresponding row of the uniform control rotation single gate in the target matrix can be represented as: [1 1 -1-1].

[0101] In some embodiments of this application, the elements in the second column vector are determined by the rotation angle of the uniformly controlled rotating single gate and the corresponding number of targets, wherein the number of targets is the number of controlled NOT gates in the equivalent circuit corresponding to the uniformly controlled rotating single gate.

[0102] The rotation angles of different uniformly controlled rotating gates can be obtained from storage units, from other external devices, or calculated. The calculation method may differ depending on the problem being solved or the algorithm used. Once the problem is solved or the algorithm employed is determined, the method for calculating the rotation angle of the uniformly controlled rotating gate is also determined. By simply obtaining the rotation angle of the uniformly controlled quantum rotating gate, the rotation angle of each uniformly controlled rotating gate can be calculated. The parity of the target number determines the relationship between π and the rotation angle of the uniformly controlled rotating gate.

[0103] In some embodiments of this application, when the number of targets corresponding to a uniformly controlled rotating single gate is even, the corresponding element in the second column vector is α. i , where α i To control the rotation angle of the corresponding uniform rotating door;

[0104] When the number of targets corresponding to a uniformly controlled rotating single gate is odd, the corresponding element in the second column vector is ο-α. i .

[0105] For example, from Figure 5 and Figure 9 From this, it can be concluded that uniform control of rotating single door R a (α1), R a (α2), R a (α3), R a The number of targets in the equivalent circuit of (α4) are 0, 4, 2, and 6, respectively, and the rotating single gate R is uniformly controlled. a (α5), R a (α6), R a (α7), R a The number of targets in the equivalent path of (α8) are 1, 5, 3, and 7 respectively, and the resulting second column vector is:

[0106]

[0107] The relationship between the resulting target matrix, the first column vector, and the second column vector is as follows:

[0108]

[0109] The value of each element in the first column vector can be obtained by using the target matrix and the second column vector.

[0110] Another example, from Figure 10 It can be obtained that the rotating single door R can be uniformly controlled. a (α1), R a (α2), R a (α3), R a The number of targets in the equivalent path of (α4) are 0, 3, 3, and 4 respectively. Therefore, the second column vector obtained is:

[0111]

[0112] Based on this, the resulting target matrix, the first column vector, and the second column vector can be represented as follows:

[0113]

[0114] The value of each element in the first column vector can be obtained by using the target matrix and the second column vector.

[0115] In this application, the rotation angle of a single-qubit rotation gate can be quickly solved using the target matrix and the second column vector. The solution method is simple and requires relatively few computational resources to obtain the desired result. By controlling the quantum state of the target bit with controlled-NOT gates, the combination relationship of the rotation angles of the single-qubit rotation gates is changed, so that the combined rotation angle is the rotation angle of the corresponding uniformly controlled rotation gate. The number of controlled-NOT gates required is relatively small, thus saving quantum computing resources.

[0116] See Figure 11 , Figure 11 This is a schematic diagram of the structure of a quantum hardware simulation computing device for uniformly controlling a quantum rotating gate, provided in an embodiment of this application. Figure 4 Corresponding to the process shown, the apparatus includes:

[0117] The decomposition module 1101 is used to decompose the uniformly controlled rotating single gate into an equivalent circuit including multiple single-qubit rotating gates and controlled NOT gates, wherein the number of single-qubit rotating gates is the same as the total number of uniformly controlled rotating single gates; the rotation angle of the single-qubit rotating gate is determined by the quantum state of the control bit of the uniformly controlled rotating single gate and the rotation angle of the uniformly controlled rotating single gate.

[0118] The simulation calculation module 1102 is used to simulate and calculate the quantum pulse signal of the corresponding equivalent circuit generated by the FPGA-based measurement and control hardware running on the quantum chip to uniformly control the quantum rotating gate.

[0119] In some embodiments of this application, there are multiple control bits for uniformly controlling the rotating single gate;

[0120] The decomposition module 1101 may include:

[0121] The decomposition unit is used to decompose a uniformly controlled rotating single gate into a control NOT gate and a single-qubit rotating gate acting on the target bit to form an equivalent circuit based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate. The control NOT gate is the control NOT gate between the control bit and the target bit.

[0122] In some embodiments of this application, there are multiple control bits for uniformly controlling the rotating single gate;

[0123] The decomposition module 1101 may include:

[0124] The decomposition unit is used to decompose the uniformly controlled rotating single gate into a control NOT gate and a single-qubit rotating gate acting on the target bit, based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, so as to form an equivalent circuit; wherein, the control NOT gate includes the control NOT gate between control bits and the control NOT gate between the control bit and the target bit.

[0125] In some embodiments of this application, the decomposition unit is specifically used for:

[0126] Based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, the target flip information of the single-qubit rotating gate is determined, and the operation timing of the controlled NOT gate is determined based on the target flip information to form an equivalent circuit.

[0127] In some embodiments of this application, the decomposition module 1101 further includes an angle determination unit, which may include:

[0128] A sub-unit is defined to determine the row value corresponding to the equivalent circuit in the target matrix based on the target flip information of the single-qubit rotating gate in each equivalent circuit. The number of columns in the target matrix is ​​the number of single-qubit rotating gates in the equivalent circuit. The product of the target matrix and the first column vector is equal to the second column vector. The first column vector is composed of the rotation angles of the multiple single-qubit rotating gates. The second column vector includes the rotation angles of the multiple uniformly controlled rotating single gates.

[0129] The computational subunit is used to inversely solve for the rotation angle of the rotation gate for each single qubit based on the target matrix and the second column vector.

[0130] In some embodiments of this application, the determining subunit may be specifically used for:

[0131] For each equivalent circuit, based on the target flip information of the single-qubit rotation gate, it is determined whether the quantum state corresponding to each single-qubit rotation gate in the equivalent circuit is flipped, and based on whether it is flipped, the value of each element in the row corresponding to the equivalent circuit in the target matrix is ​​determined.

[0132] In some embodiments of this application, the elements in the second column vector can be determined by the rotation angle of the uniformly controlled rotating single gate and the corresponding target number, wherein the target number is the number of controlled NOT gates in the equivalent circuit corresponding to the uniformly controlled rotating single gate.

[0133] In some embodiments of this application, when the number of targets corresponding to a uniformly controlled rotating single gate is even, the corresponding element in the second column vector can be α. i , where α i To control the rotation angle of the corresponding uniform rotating door;

[0134] When the number of targets corresponding to a uniformly controlled rotating single gate is odd, the corresponding elements in the second column vector can be π-α. i .

[0135] In some embodiments of this application, the quantum pulse signal may include a high-frequency analog signal for implementing a single-qubit rotating gate.

[0136] In some embodiments of this application, the quantum pulse signal may include a single pulse signal implementing a controlled NOT gate; the single pulse signal includes a bit frequency adjustment signal and a bit state adjustment signal.

[0137] In this embodiment, the uniformly controlled rotating gate is first decomposed into a combination of a single quantum rotating gate supported by the quantum chip and a controlled NOT gate. The rotation angle of the single quantum rotating gate is determined by the quantum state of the control bit and the rotation angle of the uniformly controlled rotating gate. Then, the quantum pulse signal of the corresponding equivalent circuit generated by the FPGA-based measurement and control hardware is used to simulate and calculate the uniformly controlled quantum rotating gate on the quantum chip, thus realizing the simulation and calculation of the uniformly controlled quantum rotating gate on a real quantum chip.

[0138] This application also provides a storage medium storing a computer program, wherein the computer program is configured to implement the steps in any of the above method embodiments when running.

[0139] Specifically, in this embodiment, the storage medium can be configured to store a computer program for implementing the following steps:

[0140] S401: Decompose the uniformly controlled rotating single gate into an equivalent circuit comprising multiple single-qubit rotating gates and controlled NOT gates, wherein the number of single-qubit rotating gates is the same as the total number of uniformly controlled rotating single gates; the rotation angle of the single-qubit rotating gate is determined by the quantum state of the control bit of the uniformly controlled rotating single gate and the rotation angle of the uniformly controlled rotating single gate.

[0141] S402: The quantum pulse signal generated by the FPGA-based measurement and control hardware running on the quantum chip is used to simulate and calculate the uniform control of the quantum rotating gate by the quantum pulse signal of the corresponding equivalent circuit.

[0142] This application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the steps in any of the above method embodiments.

[0143] Specifically, the aforementioned electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the aforementioned processor, and the input / output device is connected to the aforementioned processor.

[0144] Specifically, in this embodiment, the processor described above can be configured to implement the following steps via a computer program:

[0145] S401: Decompose the uniformly controlled rotating single gate into an equivalent circuit comprising multiple single-qubit rotating gates and controlled NOT gates, wherein the number of single-qubit rotating gates is the same as the total number of uniformly controlled rotating single gates; the rotation angle of the single-qubit rotating gate is determined by the quantum state of the control bit of the uniformly controlled rotating single gate and the rotation angle of the uniformly controlled rotating single gate.

[0146] S402: The quantum pulse signal generated by the FPGA-based measurement and control hardware running on the quantum chip is used to simulate and calculate the uniform control of the quantum rotating gate by the quantum pulse signal of the corresponding equivalent circuit.

[0147] The above description, based on the embodiments shown in the drawings, details the structure, features, and effects of this application. The above description is only a preferred embodiment of this application, but this application does not limit the scope of implementation to what is shown in the drawings. Any changes made in accordance with the concept of this application, or modifications to equivalent embodiments, that do not exceed the spirit covered by the specification and drawings, should be within the protection scope of this application.

Claims

1. A quantum hardware simulation computing method for uniformly controlling a quantum rotation gate, characterized by, The uniformly controlled quantum rotating gate includes multiple uniformly controlled rotating single gates, and the method includes: Based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, the uniformly controlled rotating single gate is decomposed into a control NOT gate and a single-qubit rotating gate acting on the target bit to form an equivalent circuit. The number of the single-qubit rotating gates is the same as the total number of uniformly controlled rotating single gates. The rotation angle of the single-qubit rotating gate is determined by the quantum state of the control bit of the uniformly controlled rotating single gate and the rotation angle of the uniformly controlled rotating single gate. The uniformly controlled rotating single gate has multiple control bits. The matrix of a uniformly controlled quantum rotation gate with n control bits can be represented as: in, … To ensure uniform control of the rotating single door; The quantum pulse signal generated by the corresponding equivalent circuit of the quantum chip running FPGA-based measurement and control hardware is used to simulate and calculate the uniform control of the quantum rotating gate.

2. The method according to claim 1, characterized in that, The control NOT gate is a control NOT gate between the control bit and the target bit.

3. The method according to claim 1, characterized in that, Controlled NOT gates include controlled NOT gates between control bits and controlled NOT gates between control bits and target bits.

4. The method according to claim 2 or 3, characterized in that, Based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, the uniformly controlled rotating single gate is decomposed into a controlled NOT gate and a single-qubit rotating gate acting on the target bit to form an equivalent circuit, including: Based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, the target flip information of the single-qubit rotating gate is determined, and the operation timing of the controlled NOT gate is determined based on the target flip information to form an equivalent circuit.

5. The method according to claim 4, characterized in that, The rotation angle of the single-qubit rotation gate is determined by the quantum state of the control bit of the uniformly controlled rotation gate and the rotation angle of the uniformly controlled rotation gate, including: Based on the target flipping information of the single-qubit rotating gate in each equivalent circuit, the row value corresponding to the equivalent circuit in the target matrix is ​​determined. The number of columns in the target matrix is ​​the number of single-qubit rotating gates in the equivalent circuit. The product of the target matrix and the first column vector is equal to the second column vector. The first column vector is composed of the rotation angles of the multiple single-qubit rotating gates. The second column vector includes the rotation angles of the multiple uniformly controlled rotating single gates. Based on the target matrix and the second column vector, the rotation angle of the rotating gate for each single qubit is obtained by inverse solving.

6. The method according to claim 5, characterized in that, The step of determining the row value corresponding to the equivalent circuit in the target matrix based on the target flip information of the single-qubit rotation gate in each equivalent circuit includes: For each equivalent circuit, based on the target flip information of the single-qubit rotation gate, it is determined whether the quantum state corresponding to each single-qubit rotation gate in the equivalent circuit is flipped, and based on whether it is flipped, the value of each element in the row corresponding to the equivalent circuit in the target matrix is ​​determined.

7. The method according to claim 5, characterized in that, The elements in the second column vector are determined by the rotation angle of the uniformly controlled rotating single gate and the corresponding target number, wherein the target number is the number of controlled NOT gates in the equivalent circuit corresponding to the uniformly controlled rotating single gate.

8. The method according to claim 7, characterized in that, When the number of targets corresponding to a uniformly controlled rotating single gate is even, the corresponding element in the second column vector is: ,in, To uniformly control the rotation angle of the rotating single door; When the number of targets corresponding to a uniformly controlled rotating single gate is odd, the corresponding element in the second column vector is: .

9. The method according to claim 1, characterized in that the quantum pulse signal comprises a high-frequency analog signal for realizing a single-qubit rotating gate.

10. The method according to claim 1 or 9, characterized in that the quantum pulse signal comprises a single pulse signal implementing a controlled NOT gate; the single pulse signal comprises a bit frequency adjustment signal and a bit state adjustment signal.

11. A quantum hardware simulation computing device for uniformly controlling a quantum rotating gate, characterized in that, The uniformly controlled quantum rotating gate includes multiple uniformly controlled rotating single gates, and the device includes: The decomposition module is used to decompose a uniformly controlled rotating single gate into a controlled NOT gate and a single-qubit rotating gate acting on the target bit, based on the control relationship between the control bit and the target bit of each uniformly controlled rotating single gate, to form an equivalent circuit. The number of single-qubit rotating gates is the same as the total number of uniformly controlled rotating single gates. The rotation angle of each single-qubit rotating gate is determined by the quantum state of the control bit and the rotation angle of the uniformly controlled rotating single gate. A uniformly controlled single gate has multiple control bits. The matrix of a uniformly controlled quantum rotating gate with n control bits can be represented as: in, … To ensure uniform control of the rotating single door; The simulation computing module is used to simulate and calculate the quantum pulse signals of the corresponding equivalent circuit generated by the FPGA-based measurement and control hardware running on the quantum chip to uniformly control the quantum rotating gate.

12. A storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to implement the method described in any one of claims 1 to 10 when it is run.

13. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to implement the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

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

    CN117521821A

  • Decomposition method and device of arbitrary quantum logic gate, storage medium and electronic device

    CN117634619A

  • Quantum State Preparation Circuit Generation Method and Apparatus, Chip, Device, and Program Product

    US20230081903A1

  • Quantum state preparation circuit generation method and apparatus, quantum chip, and electronic device

    US20230351237A1