Quantum computer operating system and quantum computer based on microkernel architecture

By adopting a microkernel architecture in the quantum computer operating system, configuring the kernel object management module and data transfer module, and creating an inter-process communication channel, the problems of high system call overhead and poor stability under the macrokernel architecture are solved, and efficient and reliable quantum computing is achieved. A computer operating system that supports the collaborative work of heterogeneous processor platforms.

CN114492821BActive Publication Date: 2024-10-22SHENZHEN SPINQ TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210137722.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-15
Publication Date
2024-10-22
Estimated Expiration
2042-02-15

AI Technical Summary

Technical Problem

The existing macro-kernel architecture quantum computer operating system has problems such as high system call overhead, poor stability, low reliability, and weak security. In particular, it is difficult to ensure efficient collaborative work when dealing with multiple processor platforms.

Method used

Using a quantum computer operating system based on microkernel architecture, by configuring the kernel object management module and data transfer module in the kernel space, moving other system functional modules to the user space, creating an inter-process communication channel, and realizing message passing and remote control of the quantum computer. Memory access reduces the overhead of switching between user mode and kernel mode.

Benefits of technology

It realizes a quantum computer operating system with low overhead, high reliability and good security, improves the efficiency and performance of heterogeneous quantum computers, supports efficient collaborative work of multiple processor platforms, and reduces hardware requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114492821B_ABST
    Figure CN114492821B_ABST
Patent Text Reader

Abstract

The present application discloses a quantum computer operating system and a quantum computer based on a microkernel architecture, wherein the quantum computer is a heterogeneous quantum computer, and the heterogeneous quantum computer includes a quantum processor part and a classical processor part. The present application configures the kernel object management module and the data transfer module in the kernel space, moves other system function modules to the user space, minimizes the functional structure in the kernel space, creates an IPC channel through the kernel object management module, and implements the message transmission and remote memory access of the quantum computer through the IPC channel and the data transfer module, thereby avoiding the overhead of switching between the user state and the kernel state. The present application adopts a microkernel architecture to design a quantum computer operating system, minimizes the functional structure in the kernel space of the operating system, and has the advantages of low overhead, high reliability, good security, etc. The heterogeneous quantum computer is controlled by the quantum computer operating system, thereby improving the efficiency and performance of the heterogeneous quantum computer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of quantum computing, and specifically relates to a quantum computer operating system and a quantum computer based on a microkernel architecture. Background Art

[0002] A quantum computer is a computer device that performs high-speed calculations based on the laws of quantum mechanics. Compared with traditional computers, quantum computers have the advantages of fast operation speed, strong information processing capabilities, and a wide range of applications. In other words, in the process of information processing, the more information is processed, the greater the advantage of using a quantum computer to perform calculations, which can improve processing efficiency while ensuring the accuracy of calculations.

[0003] Quantum computers directly use unique quantum mechanical phenomena (such as superposition and entanglement) to run quantum algorithms to perform operations on quantum information data. Quantum processors are quantum chips composed of a large number of quantum bit units, which run quantum algorithms composed of universal quantum logic gates to realize quantum information processing. Due to the special properties of quantum bit encoding and quantum logic gates, quantum computers have the potential to far exceed the performance limits of classical computers in cutting-edge scientific and technological fields such as password cracking, quantum chemical simulation, and quantum artificial intelligence.

[0004] The quantum computer operating system is the core part of the quantum computer that connects the terminal and the quantum processor. The quantum computer operating system determines the function of the quantum computer. At present, in most application scenarios, quantum computers need to use both quantum processors and classical processors to process tasks. On the one hand, quantum processors are in their infancy and only have a huge speed advantage in processing a certain type of problem. On the other hand, the control logic of classical processors is more mature, and the program application of using classical processors to control other devices is more mature. Therefore, the quantum computers currently on the market use typical heterogeneous quantum computers, that is, the architecture of quantum processors plus classical processors.

[0005] However, currently, quantum computers are configured with a macro-kernel quantum computer operating system to manage hardware and software resources. Under the macro-kernel operating system, most of the system function modules are configured in the kernel space. When the user program needs to use some hardware resources, it needs to frequently enter the kernel state from the user state through system calls, resulting in a large system overhead. Moreover, as the kernel functions of the macro-kernel operating system continue to grow, the complexity of the macro-kernel quantum computer operating system continues to increase, which is likely to cause more problems in terms of reliability and security. This is because under the macro-kernel architecture, all kernel modules run in the privileged kernel state, and a single point of error may cause the entire system to crash or be hacked. Even programs written by kernel programmers of quantum computer operating systems with extremely strong programming capabilities are difficult to avoid bugs. Therefore, the stability, reliability, and security of the existing macro-kernel quantum computer operating system are difficult to guarantee.

[0006] Therefore, developing a quantum computer operating system and quantum computer based on a microkernel architecture with low overhead, high stability and superior security has become a technical problem that needs to be solved urgently. Summary of the invention

[0007] The purpose of the embodiments of the present application is to propose a quantum computer operating system and a quantum computer based on a microkernel architecture, so as to solve the technical problems of large system call overhead, poor stability, low reliability, and weak security existing in the existing quantum computer operating system based on a macrokernel.

[0008] In order to solve the above technical problems, the embodiment of the present application provides a quantum computer operating system based on a microkernel architecture, which adopts the following technical solutions:

[0009] A quantum computer operating system based on a microkernel architecture, the quantum computer operating system is used to control a heterogeneous quantum computer, the heterogeneous quantum computer includes at least one quantum processor and at least one classical processor, the quantum computer operating system includes a kernel space and a user space, and also includes a kernel object management module and a data transfer module, the kernel object management module and the data transfer module are configured in the kernel space, and the kernel objects managed by the kernel object management module include at least a process space and an inter-process communication gate, wherein:

[0010] The kernel object management module is used to read the process management data in the process space based on the data transfer request after receiving the data transfer request, obtain the use permission of the remote physical memory address or hardware resources, and create an inter-process communication channel according to the physical memory address or resource use permission;

[0011] A data transfer module is used to implement message transfer and / or remote memory access of at least one quantum processor and at least one classical processor according to a data transfer request and an inter-process communication channel.

[0012] Furthermore, the data transfer module also includes data endpoints, wherein the data endpoints include a sending endpoint, a receiving endpoint and a memory endpoint.

[0013] Furthermore, the kernel object management module creates an inter-process communication channel in the following way:

[0014] When message transmission is performed, the sending endpoint and the receiving endpoint are configured. When message transmission involves the use of hardware resources, whether to create an inter-process communication channel between the sending endpoint and the receiving endpoint is determined based on the use rights of the hardware resources.

[0015] When performing remote memory access, obtain the read and write permissions of the sending endpoint or the receiving endpoint to the remote physical memory address, and create an inter-process communication channel between the sending endpoint or the receiving endpoint and the memory endpoint based on the read and write permissions.

[0016] Furthermore, it also includes a quantum driving module, which is configured in the user space, wherein:

[0017] The quantum driving module is used to implement quantum bit calibration of at least one quantum processor and drive at least one quantum processor after quantum bit calibration to complete quantum computing operations.

[0018] Furthermore, the quantum drive module includes an upper layer component, a middle layer component and a bottom layer component, wherein the bottom layer component includes:

[0019] a parameter model unit, for characterizing the logical relationship between parameters in at least one quantum processor;

[0020] A waveform calculation unit, used for calculating an input pulse waveform according to parameters;

[0021] An interface driving unit, used to drive the measurement and control hardware to transmit a pulse signal corresponding to the input pulse waveform to the quantum bit of at least one quantum processor, and read the signal change result in the quantum bit;

[0022] A numerical processing unit, used to process the signal change results and output the quantum bit calibration results;

[0023] The upper layer component includes an automatic calibration algorithm unit, in which an automatic calibration algorithm is encapsulated, and the automatic calibration algorithm unit is used to obtain attribute data of quantum bits and quantum gates through a preset measurement experiment to realize quantum bit calibration of at least one quantum processor;

[0024] The middle layer components include an interface management unit, which is used to call a parameter model unit, a waveform calculation unit, an interface driving unit and a numerical processing unit to complete a measurement experiment.

[0025] Furthermore, the kernel object management module is also used for process space management, wherein the process space management at least includes configuring a memory page table and a resource usage permission table.

[0026] Furthermore, the kernel objects managed by the kernel object management module also include threads;

[0027] The kernel object management module is also used for thread management, so that multiple threads in the same process space share the memory address space and resource usage rights of the process.

[0028] Furthermore, the kernel objects managed by the kernel object management module also include hardware interrupts;

[0029] The kernel object management module is also used for hardware interrupt management. By receiving an interrupt request, it searches for a target handler that matches the interrupt request from pre-configured interrupt handlers and runs the target handler.

[0030] In order to solve the above technical problems, the embodiment of the present application further provides a quantum computer, which adopts the following technical solution:

[0031] A quantum computer includes a quantum computer operating system and hardware devices based on a microkernel architecture as described above, wherein the hardware devices include at least one quantum processor and at least one classical processor, wherein after the quantum computer operating system loads a compiled executable user program, the executable user program is parsed to obtain a quantum computing task and a classical computing task, and the quantum computing task is sent to at least one quantum processor to execute the quantum computing task, and the classical computing task is sent to at least one classical processor to execute the classical computing task.

[0032] In order to solve the above technical problems, the embodiment of the present application further provides a quantum computer readable storage medium, which adopts the following technical solution:

[0033] A quantum computer readable storage medium stores quantum computer executable instructions. When the quantum computer executable instructions are executed by the quantum computer, the above-mentioned quantum computer operating system based on the microkernel architecture is implemented.

[0034] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0035] The present application discloses a quantum computer operating system and a quantum computer based on a microkernel architecture, wherein the quantum computer is a heterogeneous quantum computer, and the heterogeneous quantum computer includes a quantum processor part and a classical processor part. The present application configures a kernel object management module and a data transfer module in the kernel space, moves other system function modules to the user space, minimizes the functional structure in the kernel space, and creates an inter-process communication channel, i.e., an IPC channel, through the kernel object management module. The message transmission and remote memory access of the quantum computer are realized through the IPC channel and the data transfer module, and after the IPC channel is established, the kernel object management module no longer participates in the message communication, avoiding the overhead of switching between the user state and the kernel state. The present application adopts a microkernel architecture to design a quantum computer operating system, minimizes the functional structure in the kernel space of the operating system, and has the advantages of low overhead, high reliability, good security, etc. The heterogeneous quantum computer is controlled by the quantum computer operating system, and the efficiency and performance of the heterogeneous quantum computer are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 A schematic diagram of the software architecture of a quantum computer operating system based on a microkernel architecture in one embodiment of the present application is shown;

[0038] Figure 2 A schematic diagram of the structure of a data transmission module in one embodiment of the present application is shown;

[0039] Figure 3 The following is an architecture diagram of a quantum driving module of a quantum processor in one embodiment of the present application;

[0040] Figure 4 A block diagram of a quantum computer in one embodiment of the present application is shown;

[0041] Figure 5 A deployment diagram of a quantum computer operating system in one embodiment of the present application is shown. DETAILED DESCRIPTION

[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0043] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0044] The operating system is the underlying software system that manages computer hardware and software resources. The operating system manages the use and status of processors, memory, and other input and output devices, determines the priority of resource supply and demand, and provides unified abstract interfaces and shared file systems and network communication services to upper-level software systems. In the entire operating system, the kernel is the core of the operating system and provides the most basic functions of the operating system.

[0045] The inventors found that currently, quantum computers are configured with a macro-kernel quantum computer operating system to manage hardware and software resources. As the kernel functions of the macro-kernel operating system continue to grow, the complexity of the macro-kernel quantum computer operating system continues to increase. Under the architecture of the macro-kernel operating system, user programs must obtain corresponding permissions to use hardware resources. They must first enter the kernel state through a system call. After the kernel performs a series of checks and verifications, it performs corresponding resource access operations and finally switches to the user state for processing. The above process has technical problems such as large system call overhead, poor stability, low reliability, and weak security.

[0046] In response to the above findings, the inventors proposed a quantum computer operating system and a quantum computer based on a microkernel architecture. By implementing the kernel object management module and data transfer module required for the quantum computer operating system and configuring them in the kernel space, other system function modules are moved to the user space, minimizing the functional structure in the kernel space, and improving the reliability and security of the quantum computer operating system, the quantum computer's message passing and remote memory access are realized through the inter-process communication channel and data transfer module created by the kernel object management module, avoiding the overhead of switching between user state and kernel state.

[0047] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0048] Please refer to Figure 1 The present application discloses a quantum computer operating system based on a microkernel architecture, and the quantum computer operating system is used to control a heterogeneous quantum computer, and the heterogeneous quantum computer includes at least one quantum processor and at least one classical processor, wherein each processor can directly address and access part of the memory, but cannot directly address and access another part of the memory, and needs to access remotely through data transmission. The quantum computer operating system includes a kernel space 10 and a user space 20, and also includes a kernel object management module 110 and a data transmission module 120, the kernel object management module 110 and the data transmission module 120 are configured in the kernel space 10, the kernel object management module 110 is used to read the process management data in the process space based on the data transmission request after receiving the data transmission request, and extract the physical memory address or the use permission of the hardware resource from the process management data, and create an inter-process communication channel (i.e., IPC channel) based on the physical memory address or the resource use permission; the data transmission module 120 is used to implement the message transmission and / or remote memory access of at least one quantum processor and at least one classical processor according to the data transmission request and the IPC channel.

[0049] It should be noted that the message passing and / or remote memory access of at least one quantum processor and at least one classical processor includes message passing of the processors and the processors' access to the system memory. It should be additionally noted that the kernel space 10 is generally configured with multiple data transfer modules 120, the number of which matches the number of processors, and each processor is configured with one data transfer module 120.

[0050] The user space 20 of the quantum computer operating system based on the microkernel architecture includes several classical functional modules, such as a system interface module 210, a task scheduling module 220, a memory allocation module 230, a file system module 240, a network communication module 250 and a device driver module 260. The above functional modules are configured in the kernel space in the macrokernel operating system of the classical computer. The quantum computer operating system of the present application moves the above classical functional modules from the kernel space 10 to the user space 20, so that the functional structure in the kernel space 10 is minimized.

[0051] In addition, the quantum computer operating system based on the microkernel architecture also includes a quantum drive module 270. The quantum drive module 270 is configured in the user space 20. The quantum drive module 270 is a functional module unique to the quantum computer. It is responsible for processing tasks such as automatic calibration of the quantum processor. The quantum processor requires a calibration process when it is started to determine the attribute data of the quantum bits and quantum gates.

[0052] When the quantum computer operating system is started, the kernel object management module 110 will be first run on a classical processor through image loading, and then the classical function modules will be started one by one. The kernel object management module 110 uses a dedicated processor core so that the kernel and user address spaces will not switch or affect each other. The kernel object management module 110 is mainly responsible for maintaining the state data of the kernel object, checking permissions based on usage permissions, switching the context of threads according to the results of the task scheduling module 220, and directly managing the memory used by itself.

[0053] The quantum computer operating system based on the microkernel architecture provided in this application has at least the following beneficial effects:

[0054] First, the quantum computer operating system, based on the microkernel architecture, can flexibly support heterogeneous computer platforms such as quantum computers with multiple completely different processors, enabling quantum processors and classical processors to work together efficiently, and can also support the future evolution of quantum processors.

[0055] Second, reduce the overhead of switching between user mode and kernel mode in the traditional macro-kernel architecture, and improve the input and output efficiency between the quantum processor and other components of the quantum computer.

[0056] Third, many functional modules based on classical computing in existing operating systems are relatively mature, and the microkernel architecture can facilitate the porting of these functional modules.

[0057] Fourth, current macro kernel operating systems generally require the processor to provide some hardware support, such as a memory management unit (MMU) for handling the mapping of virtual memory to physical memory, and a privileged mode for supporting kernel state implementation. Using a micro kernel architecture can relax these hardware requirements.

[0058] It should be noted that under the microkernel architecture, services are completely isolated from each other. Even if a single service fails or is attacked by a security attack, it will not directly cause the entire operating system to crash or be compromised, which can effectively improve the reliability and security of the operating system. In addition, the microkernel architecture brings about a further separation of mechanism and strategy, and can also more conveniently customize different services for different scenarios, thereby better adapting to different application requirements.

[0059] In a specific embodiment of the present application, when the kernel object management module 110 establishes an IPC channel, the sender needs to have sufficient resource usage rights. In the present application, the concept of capability value is used to manage the application's usage rights. A capability value quantitatively represents the resource usage rights of a kernel object. Both the granting and requesting of capability values ​​must go through the kernel object management module.

[0060] The kernel objects managed by the kernel object management module 110 include at least process space, thread, inter-process communication gate (IPC gate) and hardware interrupt, wherein:

[0061] Process space: The protected domain of a process or task, including the page table that maps virtual memory to physical memory and the resource usage permission table. Each functional module also corresponds to a process space.

[0062] Thread: A thread is an execution unit. Multiple threads can be executed in a process space. These threads share virtual address space and resource usage rights.

[0063] IPC gate: used to establish an IPC channel, representing the receiver and sender in the channel. The kernel object management module 110 creates IPC gates to represent different objects.

[0064] Hardware interrupt: A hardware interrupt is a signal generated by hardware, such as some clock signals. These interrupts need to be processed by the operating system. The operating system will pre-set some interrupt handlers. When an interrupt signal occurs, the operating system searches for the corresponding interrupt handler and runs it.

[0065] The kernel object management module 110 is also used for process space management, thread management and hardware interrupt management. When performing process space management, the kernel object management module 110 configures the physical memory address and resource usage rights for each process to form a memory page table and a resource usage rights table. When performing thread management, multiple threads belonging to a process space share physical memory addresses and resource usage rights. When performing hardware interrupt management, the kernel object management module 110 receives an interrupt request, searches for a target handler that matches the interrupt request from the pre-configured interrupt handlers, and runs the target handler.

[0066] In a specific embodiment of the present application, the user program execution process on a typical quantum computer is as follows:

[0067] The compiled user program will be divided into classical computing tasks and quantum computing tasks. The system interface module 210 of the quantum computer operating system will load the user program into the memory. The classical computing tasks and the quantum computing tasks share a process space, but the system interface module 210 of the quantum computer operating system will notify different schedulers to schedule them separately, sending the quantum computing tasks to the quantum processor and the classical computing tasks to the classical processor. When the scheduled tasks can start to execute, the kernel object management module 110 will set the context on the scheduled processor.

[0068] If message transmission is required between processors or processors need to access remote memory, it is implemented through the data transmission module 120. Moreover, the program processed by the quantum processor can directly use the allocated physical memory address, not the virtual memory address, and directly apply for the physical memory address from the memory allocation module 230. In addition, the quantum processor can also use software to simulate the function of MMU in the data transfer module (DPU), or the base address of the page table can be translated by the quantum driver module 270 and cached in the DPU.

[0069] For further information, please refer to Figure 2 The data transmission module 120 of the quantum computer operating system based on the microkernel architecture also includes several data endpoints, wherein the data endpoints include a sending endpoint, a receiving endpoint and a memory endpoint.

[0070] Each processor performs message transmission and remote memory access through its corresponding data transmission module 120. Each data transmission module 120 maintains a batch of data endpoints. Each data endpoint includes five areas: identification area, target area, data area, buffer area and quota area.

[0071] Each data endpoint has a unique identifier, which is stored in the identifier area; the data area of ​​the sending endpoint stores the address of the data to be sent in the memory and the size of the data to be sent. The buffer of the sending endpoint does not store data. The target area of ​​the sending endpoint is used to indicate the receiving endpoint connected to the IPC channel or the memory area to be accessed. The buffer of the receiving endpoint will correspond to a ring buffer in the memory. The location and size of this area in the memory will be stored in the buffer of the receiving endpoint by the kernel object management module 110, and the message received by the DPU will be directly placed in this ring buffer.

[0072] If the sender allows the reply to be sent, the receiver's DPU will send a reply, which is stored in the data area of ​​the receiving endpoint. It should be noted that for memory endpoints, the memory area to be accessed and the relevant permissions must be specified in the target area.

[0073] The quota of the data endpoint is used to control the number of messages sent. Usually, this quota is limited by the size of the ring buffer in the memory of the receiving endpoint. The quota of the receiving endpoint is configured in the sender's send endpoint. When the sender has no quota, the message sending will be rejected by the DPU until the quota is reset by the kernel or the receiver, and then the message can be sent again.

[0074] In a specific embodiment of the present application, when performing message transmission, the receiver will configure a receiving endpoint and bind an IPC gate with the receiver's capability value data to the receiving endpoint. At the same time, the sender will configure a sending endpoint and bind an IPC gate with the sender's capability value data to this endpoint. These IPC gates are created and maintained in memory by the kernel object management module 110. When establishing an IPC channel, the kernel object management module 110 also remotely configures the relevant sending endpoints and receiving endpoints to form a corresponding IPC channel. It should be noted that the process is similar when performing remote memory access, except that the target of the sending endpoint is the memory endpoint, not the receiving endpoint.

[0075] In this embodiment, because the message passing is performed between processes through the DPU, there is no kernel involvement except for the establishment of the channel, and there is no context and address space switching caused by the kernel-user mode switching. This design greatly reduces the message passing overhead between heterogeneous processors, and the DPU can also transmit shared memory addresses, which can effectively reduce data copying.

[0076] In a specific embodiment of the present application, a typical process of an application using IPC is as follows:

[0077] After the application is scheduled and starts to execute, the classical processor first establishes an IPC to call the memory allocation module 230 through the kernel object management module 110, obtains the allocated physical memory space, performs the classical computing task to obtain the classical operation result, and writes the classical operation result into the global data area of ​​the memory through the IPC; then the quantum processor executes the quantum computing task, obtains the physical memory address corresponding to the global data area through the kernel object management module 110 (the two tasks belong to the same application and the same process space, otherwise the two need to re-perform IPC communication), reads data from the memory and performs quantum computing, and after obtaining the quantum computing result, establishes an IPC channel to call the file system module 240 through the kernel object management module 110, and then saves the quantum computing result into the target file of the file system through the IPC of the file system module 240.

[0078] It should be noted that when performing message transmission, the kernel object management module 110 configures the corresponding sending endpoint and receiving endpoint. When the purpose of message transmission is to use the hardware resources of the receiving endpoint, it is determined whether to create an inter-process communication channel based on the hardware resource usage permissions of the sending endpoint. When performing remote memory access, the process to which the initiator (referring to the sending endpoint or the receiving endpoint) belongs specifies the memory address that needs to be read and written. The kernel object management is responsible for checking whether the process has read and write permissions for the memory address involved. If the read and write permissions allow, the kernel object management module 110 will notify the DPUs on both sides to create corresponding sending endpoints (or receiving endpoints) and memory endpoints, establish an inter-process communication channel, and record and manage this memory access.

[0079] Furthermore, the quantum computer operating system based on the microkernel architecture further includes a quantum driving module 270, which is configured in the user space, wherein:

[0080] The quantum driving module 270 is used to implement quantum bit calibration of at least one quantum processor, and complete quantum computing operations through at least one quantum processor after quantum bit calibration.

[0081] For further information, please refer to Figure 3 The quantum driving module 270 includes an upper layer component, a middle layer component and a bottom layer component, wherein the bottom layer component includes:

[0082] A parameter model unit 273, for characterizing the logical relationship between parameters in at least one quantum processor;

[0083] A waveform calculation unit 274, used to calculate the input pulse waveform according to the parameters;

[0084] An interface driving unit 275 is used to drive the measurement and control hardware to transmit a pulse signal corresponding to the input pulse waveform to the quantum bit of at least one quantum processor, and read the signal change result in the quantum bit;

[0085] A numerical processing unit 276, used to process the signal change result and output the quantum bit calibration result;

[0086] The upper layer component includes an automatic calibration algorithm unit 271, in which an automatic calibration algorithm is encapsulated, and the automatic calibration algorithm unit 271 is used to obtain attribute data of quantum bits and quantum gates through a preset measurement experiment to realize quantum bit calibration of at least one quantum processor;

[0087] The middle layer components include an interface management unit 272, which is used to call a parameter model unit 273, a waveform calculation unit 274, an interface driving unit 275 and a numerical processing unit 276 to complete a measurement experiment.

[0088] Among them, the basic principle of quantum processors is different from that of classical processors. Quantum processors include physical quantum bits, and quantum computing is achieved based on the physical properties of quantum bits and quantum gates acting on them. When the quantum processor is started, the physical properties of these quantum bits and quantum gates need to be calibrated first, which is called quantum bit calibration. The process of quantum bit calibration is run on the classical processor on the quantum computer. This application uses a quantum driver module to handle the automatic calibration of the quantum processor, which is a user-state system service.

[0089] In a specific embodiment of the present application, the quantum drive module is provided with a three-layer architecture, namely, an upper layer component, a middle layer component and a bottom layer component, wherein the upper layer component is a program encapsulating an automatic calibration algorithm, which automatically performs multiple measurement experiments, and obtains the attribute data of the quantum bit and its quantum gate according to the results of these experiments, and these data are sent to the decoder of the quantum processor as input parameters, and the quantum processor performs logical control on the quantum bit according to these parameters when executing the quantum instruction. The automatic calibration algorithm implements the above-mentioned measurement experiment by calling the four processing units of the bottom layer component through the interface management unit 272 in the middle layer component, so that the implementation of the automatic calibration algorithm and the four processing units of the bottom layer component are decoupled from each other and can be updated separately.

[0090] The quantum bit is controlled by the input pulse signal, and the quantum gate is also realized in this way. The general steps of each measurement experiment are to configure the input parameters, calculate the waveform of the input pulse according to the parameters, the measurement and control hardware control part transmits the pulse signal of the corresponding waveform to the physical quantum bit, the measurement and control hardware measurement part reads the result of the signal change, and then analyzes the measurement result. Among them, the four processing units encapsulate the following programs respectively:

[0091] 1) The parameter model unit 273 is a program that describes the logical relationship between the parameters of the quantum processor. These logical relationships are determined by the physical implementation of the quantum processor;

[0092] 2) The waveform calculation unit 274 is a program that calculates the input pulse waveform based on the parameters;

[0093] 3) The interface driver unit 275 is a program that drives the measurement and control hardware to perform measurement and control;

[0094] 4) The numerical processing unit 276 is a program for analyzing and processing the measurement results, including a series of preset function libraries.

[0095] The automatic calibration algorithm executes multiple measurement experiments in the form of a pipeline, that is, while the current experiment is measuring or analyzing the results, the waveform calculation of the next experiment can be carried out in parallel. The calculation and other operations within each component are also carried out in parallel through multi-threading. For example, the waveforms of multiple input pulses can be calculated in parallel, and multiple measurement and control hardware can operate on quantum bits in parallel.

[0096] Based on the same inventive concept, the present application also discloses a quantum computer, including a quantum computer operating system based on a microkernel architecture as described above and a hardware device that communicates with the quantum computer operating system, the hardware device including at least one quantum processor and at least one classical processor. The quantum computer may also include a memory, and the quantum computer operating system may be run through the hardware device and the memory.

[0097] Please refer to Figures 4 to 5 As shown, in this embodiment, a quantum computer operating system 1 based on a microkernel architecture in a quantum computer is used to control a heterogeneous quantum computer, which includes a quantum processor 30 and a classical processor 40, and the quantum computer also includes a memory 60. The quantum computer operating system 1 includes a kernel space 10 and a user space 20, and also includes a kernel object management module 110 and two data transfer modules, a first data transfer module 121 and a second data transfer module 122. The kernel object management module 110 and the two data transfer modules are all configured in the kernel space. The kernel object management module 110 is used to read the process management data in the process space based on the data transfer request after receiving the data transfer request, and extract the remote physical memory address or the use right of the hardware resource from the process management data, and create an IPC channel based on the physical memory address or the use right; the first data transfer module 121 is used to implement the message transfer and / or remote memory access of the quantum processor 30 according to the data transfer request and the IPC channel; the second data transfer module 122 is used to implement the message transfer and / or remote memory access of the classical processor 40 according to the data transfer request and the IPC channel.

[0098] The user space 20 of the quantum computer operating system based on the microkernel architecture includes several classical functional modules, such as a system interface module 210, a task scheduling module 220, a memory allocation module 230, a file system module 240, a network communication module 250 and a device driver module 260. The above functional modules are configured in the kernel space in the macrokernel operating system of the classical computer. The quantum computer operating system of the present application moves the above classical functional modules from the kernel space 10 to the user space 20, so that the functional structure in the kernel space 10 is minimized.

[0099] In addition, the quantum computer operating system 1 based on the microkernel architecture also includes a quantum drive module 270. The quantum drive module 270 is a functional module unique to the quantum computer, which is responsible for processing tasks such as automatic calibration of the quantum processor.

[0100] In this embodiment, after the quantum computer operating system loads the compiled executable user program 50, it parses the executable user program 50 to obtain quantum computing tasks and classical computing tasks, sends the quantum computing tasks to the quantum processor 30 to execute the quantum computing tasks, and sends the classical computing tasks to the classical processor 40 to execute the classical computing tasks.

[0101] This embodiment discloses a quantum computer, wherein the quantum computer is a heterogeneous quantum computer, and the heterogeneous quantum computer includes a quantum processor part and a classical processor part. This application configures a kernel object management module and a data transfer module in the kernel space, moves other system function modules to the user space, minimizes the functional structure in the kernel space, and creates an inter-process communication channel, i.e., an IPC channel, through the kernel object management module. The message transmission and remote memory access of the quantum computer are realized through the IPC channel and the data transfer module. After the IPC channel is established, the kernel object management module no longer participates in the message communication, avoiding the overhead of switching between the user state and the kernel state. This application adopts a microkernel architecture to design a quantum computer operating system, minimizes the functional structure in the kernel space of the operating system, and has the advantages of low overhead, high reliability, good security, etc. The heterogeneous quantum computer is controlled by the quantum computer operating system, thereby improving the efficiency and performance of the heterogeneous quantum computer.

[0102] Based on the same inventive concept, the present application also discloses a quantum computer-readable storage medium storing quantum computer executable instructions. When the quantum computer executable instructions are executed by the quantum computer, the above-mentioned quantum computer operating system based on the microkernel architecture is implemented.

[0103] The quantum computer readable storage medium may be a storage device that implements storage functions based on any medium, including but not limited to an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. The executable instructions of the quantum computer may be loaded from the quantum computer readable storage medium into a quantum processor or a classical processor, or transmitted to other external computers or external storage devices.

[0104] The executable instructions for implementing the quantum computer operating system may be codes written in any combination of one or more programming languages, and the executable instructions may be executed on the quantum computer. In some embodiments, the electronic circuits that can execute the executable instructions of the quantum computer are personalized by using the state information of the executable instructions of the quantum computer, such as the programmable logic circuits corresponding to the executable instructions, and the above-mentioned various embodiments are implemented through the electronic circuits.

[0105] With reference to the block diagrams of the quantum computer operating system, quantum computer, and computer program product of the above-mentioned embodiments, it should be understood that each block of the block diagram and the combination of the blocks can be implemented by executable instructions of the quantum computer. These quantum computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a quantum computing machine, so that when these instructions are executed by the processor of the quantum computer or other programmable data processing device, a device that implements the functions / actions specified in one or more blocks in the block diagram is generated. These executable instructions can also be stored in a quantum computer readable storage medium, which enables the quantum computer, the programmable data processing device, and / or other devices to work in a specific manner, so that the quantum computer readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / processing specified in one or more blocks in the block diagram.

[0106] Quantum computer-readable program instructions may also be loaded onto a quantum computer, other programmable quantum data processing apparatus, or other quantum device, so that a series of processing is performed on the quantum computer, other programmable quantum data processing apparatus, or other quantum device to produce a process implemented by the quantum computer, thereby causing the instructions executed on the quantum computer, other programmable quantum data processing apparatus, or other quantum device to implement the functions / processing specified in one or more blocks in the block diagram.

[0107] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A quantum computer operating system based on a microkernel architecture, the quantum computer operating system is used to control a heterogeneous quantum computer, the heterogeneous quantum computer includes at least one quantum processor and at least one classical processor, the quantum computer operating system includes a kernel space and a user space, characterized in that: It also includes a kernel object management module and a data transfer module, the kernel object management module and the data transfer module are configured in the kernel space, and the kernel objects managed by the kernel object management module include at least a process space and an inter-process communication gate, wherein: The kernel object management module is used to, after receiving a data transfer request, read the process management data in the process space based on the data transfer request, obtain the use permission of the remote physical memory address or hardware resources, and create an inter-process communication channel according to the physical memory address or resource use permission; The data transfer module is used to implement message transfer and / or remote memory access between the at least one quantum processor and the at least one classical processor according to the data transfer request and the inter-process communication channel.

2. The quantum computer operating system based on microkernel architecture as claimed in claim 1, characterized in that: The data transfer module also includes data endpoints, wherein the data endpoints include a sending endpoint, a receiving endpoint and a memory endpoint.

3. The quantum computer operating system based on microkernel architecture as claimed in claim 2, characterized in that: The kernel object management module creates an inter-process communication channel in the following manner: When performing message transmission, configuring the sending endpoint and the receiving endpoint, and when the message transmission involves the use of hardware resources, determining whether to create an inter-process communication channel between the sending endpoint and the receiving endpoint according to the use rights of the hardware resources; When performing remote memory access, the read and write permissions of the sending endpoint or the receiving endpoint for the remote physical memory address are obtained, and based on the read and write permissions, an inter-process communication channel is created between the sending endpoint or the receiving endpoint and the memory endpoint.

4. The quantum computer operating system based on microkernel architecture as claimed in claim 1, characterized in that: Also included is a quantum drive module, the quantum drive module is configured in the user space, wherein: The quantum driving module is used to implement quantum bit calibration of the at least one quantum processor and drive the at least one quantum processor after quantum bit calibration to complete quantum computing operations.

5. The quantum computer operating system based on microkernel architecture as claimed in claim 4, characterized in that: The quantum drive module includes an upper layer component, a middle layer component and a bottom layer component, wherein the bottom layer component includes: a parameter model unit, for characterizing the logical relationship between parameters in the at least one quantum processor; A waveform calculation unit, used for calculating the input pulse waveform according to the parameters; An interface driving unit, used to drive the measurement and control hardware to transmit a pulse signal corresponding to the input pulse waveform to the quantum bit of the at least one quantum processor, and read the signal change result in the quantum bit; A numerical processing unit, used to process the signal change result and output a quantum bit calibration result; The upper layer component includes an automatic calibration algorithm unit, in which an automatic calibration algorithm is encapsulated, and the automatic calibration algorithm unit is used to obtain attribute data of quantum bits and quantum gates through a preset measurement experiment to realize quantum bit calibration of the at least one quantum processor; The middle layer component includes an interface management unit, and the interface management unit is used to call the parameter model unit, the waveform calculation unit, the interface driving unit and the numerical processing unit to complete the measurement experiment.

6. The quantum computer operating system based on microkernel architecture as claimed in claim 1, characterized in that: The kernel object management module is also used for process space management, wherein the process space management at least includes configuring a memory page table and a resource usage permission table.

7. The quantum computer operating system based on microkernel architecture as claimed in claim 6, characterized in that: The kernel objects managed by the kernel object management module also include threads; The kernel object management module is also used for thread management, so that multiple threads in the same process space share the memory address space and resource usage rights of the process.

8. The quantum computer operating system based on microkernel architecture as claimed in claim 1, characterized in that: The kernel objects managed by the kernel object management module also include hardware interrupts; The kernel object management module is also used for hardware interrupt management. By receiving an interrupt request, the module searches for a target processing program that matches the interrupt request from pre-configured interrupt processing programs and runs the target processing program.

9. A quantum computer, characterized in that: The invention comprises a quantum computer operating system and a hardware device based on a microkernel architecture according to any one of claims 1 to 8, wherein the hardware device comprises at least one quantum processor and at least one classical processor, wherein after the quantum computer operating system loads the compiled executable user program, the executable user program is parsed to obtain a quantum computing task and a classical computing task, the quantum computing task is sent to the at least one quantum processor to execute the quantum computing task, and the classical computing task is sent to the at least one classical processor to execute the classical computing task.

10. A quantum computer readable storage medium, characterized in that: The invention comprises storing quantum computer executable instructions, and when the quantum computer executable instructions are executed by a quantum computer, a quantum computer operating system based on a microkernel architecture according to any one of claims 1 to 8 is implemented.