Distributed quantum-classical hybrid control system with accurate time sequence
By introducing a distributed architecture and Quantum Cache mechanism into the quantum control microarchitecture, the problem of increasing the number of qubits and feedback delay of a single FPGA development board is solved, and more efficient qubit control and scalability are achieved, and larger support is achieved. Quantum algorithms of scale.
Patent Information
- Application Number
- CN202410928640.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-15
AI Technical Summary
The existing single FPGA development board cannot meet the gradually increasing number of qubits under noisy mesoscale quantum technology, resulting in limitations in the programmability and scalability of the quantum control microarchitecture, especially in feedback control delays and instructions. It is difficult to meet the requirements in terms of execution efficiency.
A distributed quantum-classic hybrid control microarchitecture is designed, based on multi-core architecture and fully interconnected FPGA cluster, adopting clock source synchronization and Send-Receive mechanism, combining Quantum Cache and routing expansion scheme to realize the multi-FPGA board between multiple FPGA boards The synchronization and information interaction alleviate the feedback delay problem under the tree structure.
Through the distributed control system, the error rate of qubits is significantly reduced, and larger-scale quantum algorithms and feedback control are supported, which improves the execution efficiency and scalability of quantum programs.
Smart Images

Figure CN118966370A_ABST
Abstract
Description
Technical Field The technical field of the present invention is electronic control equipment related to superconducting quantum computing, especially a distributed quantum-classical hybrid control system (microarchitecture) with precise timing. It is a component currently required for superconducting quantum bits. Its main function is to provide a binary program interface to quantum programmers, execute quantum programs and generate specific analog signals with precise timing. Background Art QuMA [1] It is the first timing-precise quantum-classical hybrid control microarchitecture, which realizes quantum-classical hybrid control through classical pipelines and quantum pipelines, and realizes precise timing control function through queue-based mechanism. However, since it is a laboratory version, its programmability is insufficient. eQASM [2] eQASM is the first executable quantum assembly language. It's based on the newer QuMA microarchitecture, addressing programmability issues. However, its design targets a seven-qubit chip, so the microarchitecture itself is implemented using an FPGA development board. In the era of noisy, medium-scale quantum technology, the number of qubits could reach hundreds or even thousands. eQASM includes classical instructions to support quantum program flow control, including runtime feedback. eQASM includes explicit methods for specifying the timing of quantum operations. Low-level hardware information is abstracted from the eQASM assembly language. Limited by the number of analog signal channels of a single FPGA development board and the issuance rate of classical instructions, the single-core quantum control microarchitecture can no longer meet practical requirements, and a distributed quantum control microarchitecture is needed. QuAPE [4] It is a quantum control microarchitecture proposed by Tencent Quantum Laboratory. It adopts a multi-core architecture and utilizes a superscalar architecture to alleviate the parallelism in quantum instruction execution due to the efficiency of quantum instruction emission. However, it does not give much consideration to the scalability of the quantum bit scale, nor does it give much consideration to the corresponding distributed controller system. An architecture proposed by the former Alibaba Quantum Research Institute [3] , uses PXIe to realize the interconnection between different FPGA boards, and uses a tree structure to expand the control scale. However, it is mainly aimed at fault-tolerant quantum computing, so it does not give much consideration to the delay problem in feedback control based on measurement results.
[0001] Fu X, Rol MA, Bultink CC, et al. An Experimental Microarchitecture for a Superconducting Quantum Processor[C] / / ACM.ACM, 2017.
[0002] Fu Xiang,Riesebos L,Rol MA,et al.eQASM:An executablequantuminstructionset architecture[C] / / Proc of 2019IEEE Int Symp on HighPerformance ComputerArchitecture(HPCA).Piscataway,NJ:IEEE,2019:224-237.
[0003] Fang Zhang,Xing Zhu,Rui Chao,Cupjin Huang,Linghang Kong,Guoyang Chen,DaweiDing,Haishan Feng,Yihuai Gao,Xiaotong Ni,Liwei Qiu,Zhe Wei,Yueming Yang,Yang Zhao,Yaoyun Shi,Weifeng Zhang,Peng Zhou,and Jianxin Chen.2023.A Classical Architecture for Digital Quantum Computers.ACM Transactionson Quantum Computing 5,1,Article 3(March 2024),24pages. https: / / doi.org / 10.1145 / 3626199.
[0004] Mengyu Zhang,Lei Xie,Zhenxing Zhang,Qiaonian Yu,Guanglei Xi,HualiangZhang,Fuming Liu,Yarui Zheng,Yicong Zheng,and Shengyu Zhang.2021.Exploiting Different Levels of Parallelismin the Quantum ControlMicroarchitecture for Superconducting Qubits.In MICRO-54:54th Annual IEEE / ACMInternational Symposium on Microarchitecture(MICRO'21). Association for Computing Machinery, New York, NY, USA, 898–911. https: / / doi.org / 10.1145 / 3466752.3480116. Summary of the Invention The purpose of this invention is to propose a distributed quantum-classical hybrid control system (microarchitecture) with precise timing. Its main function is to provide a binary program interface to quantum programmers, execute quantum programs, and generate specific analog signals with precise timing. In the context of noisy mesoscale quantum technology, the scale of quantum bits is gradually increasing. The number of quantum bits that can be controlled by a single FPGA board is limited by its physical ports and instruction transmission efficiency. This invention proposes a distributed quantum-classical hybrid control microarchitecture to solve these two problems. Based on a single-core single-FPGA board that executes the executable quantum assembly language eQASM, a series of components are added to it to support the needs of distributed scenarios. The technical solution of the present invention is a distributed quantum-classical hybrid control system with precise timing. It is based on a single-core single-FPGA board that can execute the executable quantum assembly language eQASM, and has a series of components added to it to support the needs of distributed scenarios. Based on GTX resources, the local FPGA is fully interconnected as a control cluster. Multiple control clusters (multi-FPGA development boards) are interconnected in a network-on-chip manner. Clock sources are used to synchronize clocks. A single device sends a start signal to other devices to synchronize multiple cores on multiple FPGAs. When the compiler compiles the quantum program in the correct order and then sends it to the Instruction RAM of all FPGAs, FPGA A sends a start signal to FPGA B and FPGA C, and the classic pipelines on multiple FPGAs can start working synchronously. In addition, a timing control mechanism based on a time queue is added to achieve precise timing control in distributed situations. The Quantum Cache mechanism is implemented to synchronize quantum bit state information between multiple FPGA boards. The Send-Receive program running mechanism synchronizes the execution of instructions between multiple quantum processors in the quantum program; The problem of information exchange between FPGA boards, the high-speed differential signal path (high-speed serial transceiver) GTX on the FPGA chip; the interaction between quantum programs uses the Send-Receive model, and the compiler distributes the Send and Receive instructions for information exchange to the Instruction RAM in different FPGAs. When the Send instruction occurs before the Receive instruction, the information is sent to the FIFO component in the other FPGA board through the GTX path, and then temporarily stored in the Quantum Cache component; when the Receive instruction is executed, the Quantum Cache is queried and then execution continues; when the Receive instruction occurs before the Send instruction, the classic pipeline on the FPGA executing the Receive instruction enters a waiting state until the result of the Send instruction is received. Quantum Cache structure and internal space division: A FIFO is established for all information that needs to interact, namely quantum bit information, to distinguish the send order and facilitate indexing by the Classic pipeline; each GTX high-speed serial transceiver must maintain all quantum bit information that can be measured by its source FPGA, and establish a FIFO for each quantum bit. This design has low scalability. The Quantum Cache structure is used to achieve efficient resource management. It is organized in a group-associative mode and maintains a limited number of cache lines for the quantum bits controlled by the same FPGA. Each line needs to store three pieces of information: Q_index is the relative index information of the quantum bit controlled by the same FPGA, and Valid is the valid bit of the information. Once the relative index information of the quantum bit is read out from the Quantum Cache, its Valid is immediately set to 0. This mechanism ensures the global consistency of the quantum bit state information. The State_Info field represents the state information of the quantum bit; that is, the information sent by the Send instruction is specified by Q_index and State_Info, and the target FPGA of the Send instruction is specified by other fields of the Send instruction. However, the problem of long feedback delay under the tree structure of multiple FPGA boards is solved. The implementation method is SendQ FPGA_index Q_index. The classic pipeline completes the reading of Qubitregfile, and other peripheral components complete the signal transmission. Only one FIFO is configured to buffer data from all other FPGAs. When the corresponding cache line of the Quantum Cache is free, the data in the FIFO is loaded into the Quantum Cache. Multiple (e.g., three) FPGAs each have a pair of GTX channels for bidirectional communication, which is called fully connected mode. First, the GTX resources on the FPGA board and the routing expansion solution on the FPGA are: The largest fully connected cluster of FPGA boards is called a Group. Each Group selects an FPGA and designs a router component, consisting of several GTX pairs and routing components, which connect to other router components. The routing protocol is implemented based on the relevant on-chip network protocols. The specific connection method between Groups can be changed, and the quantum compiler can provide a compromise solution. When router resources are limited, the specific interconnection model is determined by the relevant algorithms to provide a better connection solution. The beneficial effects of the present invention are as follows: the length of the delay is directly related to the error rate of the superconducting quantum bit. The shorter the delay, the lower the error rate of the superconducting quantum bit, which can support feedback control of larger-scale superconducting quantum bits based on measurement results, and thus support larger-scale quantum algorithms. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 This is the architecture diagram of eQASM; Figure 2 A Group of Distributed Quantum-Classical Architectures; Figure 3 FPGA board A; Figure 4 FIFO version of the architecture; Figure 5 Quantum Cache architecture; Figure 6 Network-on-chip-like topology interconnection structure; Figure 7 More topological structures under Group. DETAILED DESCRIPTION Figure 1 It is the system structure diagram of eQASM, which is a basic project of the present invention. The following uses the interconnection of three FPGA boards as an example to illustrate the connection relationship between the various components in the present invention. Figure 2A distributed quantum classical architecture, a group, expands from a single FPGA to multiple FPGAs. The first issue to be addressed is synchronization. This invention uses clock source synchronization and a single device sending a start signal to other devices to achieve multi-core synchronization on multiple FPGAs. Once the compiler can compile the quantum program in the correct order and distribute it to the Instruction RAM of all FPGAs, FPGA A sends a start signal to FPGAs B and C. The Classic Pipelines on the three FPGAs can then start working synchronously. Combined with a time queue-based timing control mechanism, precise timing control is achieved in a distributed environment. The next problem to be solved is the information exchange between FPGA boards. Figure 3 Take board A as an example. GTX is a high-speed differential signal path (high-speed serial transceiver) on the FPGA chip. It is a hardware resource for information exchange and is limited for a single FPGA board. The interaction between quantum programs uses the Send-Receive model. The compiler distributes the Send and Receive instructions for information exchange to the Instruction RAM in different FPGAs. When the Send instruction occurs before the Receive instruction, the information is sent to the FIFO component in the other FPGA board through the GTX path, and then temporarily stored in the Quantum Cache component. When the Receive instruction is executed, the Quantum Cache is queried and then execution continues. When the Receive instruction occurs before the Send instruction, the classic pipeline on the FPGA that executes the Receive instruction enters a waiting state until the result of the Send instruction is received. Here we need to focus on the design ideas and internal space division of the Quantum Cache structure. In an ideal programming model, the interaction of quantum information is highly time-sensitive, and there are situations where the compiler cannot statically analyze it, and there may be disordered Send-Receive. Therefore, the simplest and most direct design method is to establish a FIFO for all quantum bit information (the information that needs to be interacted is all quantum bit information) to distinguish the order of Send (send) and facilitate the Classic pipeline to index. Figure 4 As shown in the FIFO version of the architecture, each GTX high-speed serial transceiver must maintain all the quantum bit information that can be measured by its source FPGA, and establish a FIFO for each quantum bit. This design has low scalability. Therefore, the present invention designs a Quantum Cache structure to achieve efficient management of resources. Figure 5 The Quantum Cache architecture is similar to but significantly different from traditional caches in classical computing. It is organized in a set-associative fashion, maintaining a limited number of cache lines for qubits controlled by the same FPGA. Each line stores three pieces of information: Q_index represents the relative index of the qubit controlled by the same FPGA, and Valid represents the validity bit of that information. It is important to note that once the qubit state information is read from the Quantum Cache, its Valid field is immediately reset to 0. This mechanism ensures global consistency of the qubit state information. The State_Info field represents the qubit state information. In other words, the information sent by a Send instruction is represented by Q_index and State_Info, while the target FPGA of the Send instruction is specified by other fields of the Send instruction. An optional implementation is SendQ FPGA_index Q_index. The classic pipeline reads the qubit regfile, while other peripheral components handle signal transmission. Additionally, a single FIFO is configured to buffer data from all other FPGAs. Data in the FIFO is loaded into the Quantum Cache when the corresponding cache line in the Quantum Cache becomes free. from Figure 2 It can be clearly seen that each of the three FPGAs has a pair of GTX channels for bidirectional communication, which can be called a fully connected mode. First of all, due to the GTX resources on the FPGA board, such a fully connected mode must have a limit. In order to support the control of larger-scale physical quantum bits, this paper invents a routing expansion solution on the FPGA based on the experience of multi-core on-chip networks of classical processors. Figure 6 A network-on-chip topology interconnection structure; the largest fully connected FPGA board cluster is called a Group, such as Figure 6 The figure shows the interconnection structure of two groups, where each group contains 5 FPGAs. Each group selects one FPGA to additionally design a router component, which contains several pairs of GTX and routing components and is connected to other router components. The routing protocol can be implemented by fully referring to the relevant protocols of the on-chip network. Figure 7More group-based topologies; Due to the field programmability and reconnectability of FPGAs, the specific connection methods between groups can be changed. This problem is often due to the locality principle of quantum programs, and the quantum compiler can provide an optimal compromise. When router resources are sufficient, the specific interconnection model can be optimized by related algorithms. The main innovation of this invention is: a novel Quantum Cache mechanism is proposed to realize the synchronization of quantum bit state information between multiple FPGA boards in hardware. A Send-Receive program execution mechanism was proposed to synchronize instruction execution between multiple quantum processors in quantum programs. The concept of on-chip networks was introduced to multiple FPGA boards, alleviating the problem of excessive feedback delays in tree-structured systems. The best way to implement this invention is to first evaluate the scale of superconducting quantum bits in the application scenario, estimate the number of analog signal channels required, and then select the number and model of suitable FPGA boards. First, implement eQASM on an FPGA board, and then complete the clock synchronization component and the start signal synchronization component in sequence. Then, complete the information processing components of several GTX modules, implement the Quantum Cache and its peripheral FIFO buffer components, and then refer to the relevant implementation of the on-chip network to complete the Router component. When such a set of equipment is completed, copy it into multiple copies and complete the assembly and debugging of several groups first. Assuming each router has up to four pairs of GTX interfaces, let the number of groups be X and the number of fully interconnected FPGA boards in the group be Y. The optimization goal of the group's interconnection structure can be set to the average number of routing hops from each FPGA board to all other FPGAs. The ideal goal is to minimize this average. This is a purely mathematical problem. Currently, it is known that the Steiner algorithm can be used to find an optimal network structure. Considering the locality of quantum programs, qubits requiring signal interaction can be mapped as close as possible to the control range of a group. In this way, instead of using the optimal network structure, a general 2-mesh network is a simpler option. Specific embodiments are used in the present invention to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.
Claims
1. A time-accurate distributed quantum-classical hybrid control system, characterized by: Based on a single-core single-FPGA board that can execute the quantum assembly language eQASM, based on GTX resources, with local FPGAs fully interconnected as control clusters, multiple control clusters are interconnected in a network-on-chip manner, using clock sources to synchronize clocks, and a single device sends a start signal to other devices to perform multi-core synchronization on multiple FPGAs; when the compiler compiles the quantum program in the correct order and then sends it to the Instruction RAM of all FPGAs, FPGA A sends a start signal to FPGA B and FPGA C, and the traditional pipelines on multiple FPGAs can start working synchronously, plus a timing control mechanism based on a time queue, to achieve precise timing control in a distributed situation; implement the Quantum Cache mechanism to synchronize quantum bit state information between multiple FPGA boards; The Send-Receive program running mechanism synchronizes the execution of instructions between multiple quantum processors in the quantum program; Information interaction between FPGAs: Based on the high-speed differential signal path and high-speed serial transceiver GTX on the FPGA chip; the interaction between quantum programs uses the Send-Receive model, and the compiler of the quantum processor issues Send and Receive instructions for information interaction respectively, and distributes them to the Instruction RAM in different FPGAs. When the Send instruction occurs earlier than the Receive instruction, the information is sent to the FIFO component in other FPGA boards through the GTX path, and then temporarily stored in the Quantum Cache component; when the Receive instruction is executed, the Quantum Cache is queried, and then execution continues; when the Receive instruction occurs earlier than the Send instruction, the classic pipeline on the FPGA that executes the Receive instruction enters a waiting state until the result of the Send instruction is received.
2. The control system according to claim 1, characterized in that: Quantum Cache structure and internal space division: Using the group associative mode, a limited number of cache lines are maintained for the quantum bits controlled by the same FPGA, where each line needs to store three pieces of information. Q_index is the relative index information of the quantum bit controlled by the same FPGA, and Valid is the valid bit of the information. Once the relative index information of the quantum bit is read out from the Quantum Cache, its Valid is immediately set to 0. This mechanism ensures the global consistency of the quantum bit state information. The State_Info field represents the state information of the quantum bit; that is, the information sent by the Send instruction is specified by Q_index and State_Info, and the target FPGA of the Send instruction is specified by other fields of the Send instruction. The implementation method is SendQ FPGA_index Q_index, and the classic pipeline completes the reading of the Qubit regfile, and other peripheral components complete the signal sending; only one FIFO is configured to buffer data from all other FPGAs, and the data in the FIFO is loaded into the Quantum Cache when the cache line corresponding to the Quantum Cache is idle.
3. The control system according to claim 1, characterized in that: There is a pair of GTX channels between multiple FPGAs for bidirectional communication, which is called full connection mode. First, the GTX resources on the FPGA board and the routing expansion solution on the FPGA are: The largest fully connected cluster of FPGA boards is called a Group. Each Group selects one FPGA to design an additional Router component, which includes several pairs of GTX and routing components, and is connected to other Router components. The routing protocol is implemented by referring to the relevant protocols of the on-chip network. The specific connection method between Groups can be changed, and the quantum compiler can provide a compromise solution.
4. The control system according to claim 3 is characterized in that When router resources are sufficient, the specific interconnection model is given by the following algorithm. The optimization goal of the group's interconnection structure is set to the average number of routing hops from each FPGA board to all other FPGAs, so that this average value is minimized, and the Steiner algorithm is used to find an optimal network structure.
Citation Information
Cited By
Quantum device instruction distribution system and method based on multi-thread parallel routing
CN120929140A
A quantum device instruction distribution system and method based on multi-thread parallel routing
CN120929140B
