A quantum computing resource management method based on operating system kernel

By unified management of quantum and classical resources in the operating system kernel, analyzing task requirements, allocating bits and performing calibration, the system coupling and stability problems of quantum resource management in the existing technology are solved, and efficient management of quantum computing resources is achieved. and user-friendly quantum state descriptions.

CN115269195BActive Publication Date: 2024-08-30JIANGNAN INST OF COMPUTING TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210933675.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-04
Publication Date
2024-08-30
Estimated Expiration
2042-08-04

AI Technical Summary

Technical Problem

Existing quantum computing resource management software is mainly based on application layer protocols, the system coupling is not strong, it is difficult to effectively manage the state stability and resource allocation of qubits, and it lacks the ability to uniformly manage classical and quantum computing resources.

Method used

Adopting a quantum computing resource management method based on the operating system kernel, by analyzing task requirements, allocating and mapping qubits, and calibrating when necessary, generating control pulse waveform files to perform quantum computing, measuring calculation results, and achieving the unification of quantum resources Management and stability assurance.

Benefits of technology

It achieves unified management and calibration of quantum resources of different technical solutions, improves the scalability of the system, shields complex quantum characteristics, provides stable quantum state descriptions for upper-layer software, and simplifies the use and control of quantum devices by users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115269195B
    Figure CN115269195B
Patent Text Reader

Abstract

A quantum computing resource management method based on an operating system kernel belongs to the field of quantum computing technology. The present invention includes the following steps: Step 1, parsing the quantum computing resources required for the current quantum computing task; Step 2, allocating and mapping the corresponding quantum bits to the current quantum task according to the quantum computing resources and the available computing resources in the current system; Step 3, detecting the state of the quantum bits in the quantum computing resources, and if the quantum bit state does not meet the computing requirements, calibrating the quantum bits; Step 4, generating a corresponding control pulse waveform file according to the quantum logic gate operation contained in the current quantum task; Step 5, controlling the quantum computing resources to perform quantum computing according to the control pulse waveform file; Step 6, measuring the calculation results of this quantum computing task. The present invention shields the user from complex quantum characteristics, provides a stable quantum state description for the upper-level software, and facilitates the user to use and control quantum devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantum computing technology, and in particular to a quantum computing resource management method based on an operating system kernel. Background Art

[0002] The study of quantum computing began in the 1980s. After decades of research and exploration, the field of quantum computing has made great progress. In October 2019, the quantum superiority demonstrated by the 53-bit Sycamore superconducting quantum processor launched by Google caused a strong shock in the field of high-performance computing and attracted widespread attention from the industry. Subsequently, the team of Pan Jianwei and the team of Guo Guoping of USTC launched two quantum prototypes, "Jiuzhang" and "Zu Chongzhi" respectively in 2020, and upgraded them to "Jiuzhang 2.0" and "Zu Chongzhi 2.0" in 2021 and achieved quantum superiority. The realization of quantum superiority marks that quantum computing has entered the second stage of practical development of how to realize high-performance quantum processors in specific fields. Studies have shown that classical and quantum hybrid computing systems with medium-scale noise are expected to make breakthroughs in the next 10 to 20 years.

[0003] At present, the exploration and research on how to realize the physical bits of quantum computing is in a stage of flourishing, and the technical routes have not yet converged. The main technical routes include superconductors, ion traps, silicon-based quantum dots, photons, neutral atoms, diamond color centers and topology. Although the technical solutions used are different, how to improve the quality of quantum bits and improve the fidelity of quantum states are common research focuses in the field of quantum computing. Generally speaking, to achieve universal quantum computing, the error of quantum logic gates must be less than 1%. The factors affecting the quality of quantum bits are very complex. In order to ensure that quantum bits can work effectively for a long time, continuous calibration is required. Unlike classical computing resource management, quantum computing resource management must not only consider how to allocate quantum resources, but also how to ensure the continuous stability of the quantum bit state. In addition, most of the existing quantum computing resource management software is upper-level application software or extension libraries developed based on Python or C++, which are not strongly coupled with the system and are only suitable for quantum resource management at the application layer and the middle layer.

[0004] For example, the Chinese invention patent application with application number 202110140883.6 discloses a unified management method and system for quantum device hardware resources based on an application layer protocol, which is used to centrally control multiple types of quantum devices contained in quantum computers of different systems. The quantum device management protocol QDMP is used as the application layer protocol, and a management agent for connecting multiple types of quantum devices, a management service for managing all management agents, and a management information library for information interaction between the management service and the management agent are pre-set in the quantum device management protocol; the management information library defines the object name, access rights and data type of each quantum device as a managed object; when a device management protocol request message is received, the management service sends a request message to the management agent, and the management agent reads the device information based on the request message and sends response data of the corresponding device to the management service. Summary of the invention

[0005] The purpose of the present invention is to solve the problems existing in the above-mentioned prior art and to provide a quantum computing resource management method based on the operating system kernel, which shields the complex quantum characteristics from users, provides a stable quantum state description for the upper-level software, and facilitates users to use and control quantum devices.

[0006] The objective of the present invention is achieved through the following technical solutions:

[0007] A quantum computing resource management method based on an operating system kernel comprises the following steps:

[0008] Step 1: Analyze the quantum computing resources required for the current quantum computing task;

[0009] Step 2: Allocate and map corresponding quantum bits to the current quantum task based on the quantum computing resources parsed in step 1 and the available computing resources in the current system;

[0010] Step 3: Detect the state of the quantum bit in the quantum computing resource. If the state of the quantum bit does not meet the computing requirements, calibrate the quantum bit;

[0011] Step 4, generating a corresponding control pulse waveform file according to the quantum logic gate operation included in the current quantum task;

[0012] Step 5, controlling the quantum computing resources to perform quantum computing according to the control pulse waveform file;

[0013] Step 6: Measure the calculation results of this quantum computing task.

[0014] As a preferred embodiment of the present invention, the process before step 1 includes: step 0, waiting for an event to be processed. If there is a quantum computing task, step 1 is performed; if there is an interrupt event, an interrupt processing process is entered.

[0015] As a preferred embodiment of the present invention, the interrupt processing process specifically includes: reading the interrupt vector of the interrupt event, if the interrupt vector matches the interrupt number of the hardware calibration interrupt, then performing step 3; if the interrupt vector matches the interrupt number of the timing calibration interrupt, then resetting the timer and performing step 3.

[0016] As a preferred embodiment of the present invention, the step 3 further includes: if the current calibration task is triggered by a quantum computing task, then proceed to step 4; if the current calibration task is triggered by an interrupt event, then proceed to step 0.

[0017] As a preferred embodiment of the present invention, before step 0, the step also includes: starting the operating system, completing the initialization of each functional module of the operating system, and adding the classical computing devices and quantum computing devices managed by the operating system to the device list for unified management.

[0018] The advantages of the present invention are:

[0019] 1. Different quantum hardware are abstracted as external devices, and the device driver mechanism of the operating system kernel is used to uniformly manage classical computing resources and quantum computing resources. It has strong scalability and can simultaneously manage and allocate quantum computing resources implemented using different technical solutions;

[0020] 2. The calibration method is flexible. The calibration routine can be called before executing the quantum computing task to actively implement the calibration, or the calibration routine can be called in the interrupt context of the operating system kernel to passively implement the calibration;

[0021] 3. It shields users from complex quantum properties and provides a stable quantum state description for upper-level software, making it easier for users to use and control quantum devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a flow chart of a quantum computing resource management method based on an operating system kernel according to the present invention. DETAILED DESCRIPTION

[0023] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0024] like Figure 1 As shown, the present invention provides a quantum computing resource management method based on an operating system kernel, which specifically includes the following steps:

[0025] Step S1: Start the operating system, complete the initialization of each functional module of the operating system, and add the classical computing devices and quantum computing devices managed by the operating system to the device list for unified management. Among them, the classical computing task is executed by existing conventional means, so the following steps are only for quantum computing tasks.

[0026] Step S2: The operating system runs normally and waits for events that need to be processed. The events here include but are not limited to processing interrupts and controlling quantum computing resources to execute quantum tasks. For ease of understanding, the present invention only describes events related to quantum computing resource management. Specifically, if there is an interrupt event, jump to step S3; if there is a quantum computing task to be executed, jump to step S4; otherwise, continue to run normally in step S2.

[0027] Step S3: Enter the interrupt processing function, the interrupt processing function will read the interrupt vector, and then jump to the processing function whose interrupt number matches the interrupt vector for further processing. Specifically, if the interrupt vector matches the interrupt number assigned by the system to the hardware calibration interrupt, then jump to step S5, that is, the system itself monitors a certain performance parameter, and when it reaches the set threshold, it triggers and starts the calibration program; if the interrupt vector matches the interrupt number assigned by the system to the timing calibration interrupt, then jump to step S6, that is, calibrate the quantum bit regularly according to the time set by the system. The two calibration modes work together to ensure the accuracy of the quantum bit when it is working.

[0028] Step S4: Analyze the quantum computing resources required for the current quantum computing task.

[0029] Step S5: Save part of the status information of the current system, and then jump to step S8.

[0030] Step S6: Save partial status information of the current system, reset the timer, and then jump to step S8. The partial status information mentioned in steps S5 and S6, that is, the system status before the interruption, including the register status, etc., is used to restore the system status before the interruption after the interruption event ends.

[0031] Step S7: Allocate and map corresponding quantum bits to the current quantum task according to the quantum computing resource requirements analyzed in step S4 and the available computing resources in the current system, and then jump to step S8.

[0032] Step S8: The calibration routine will detect the state of the quantum bits in the quantum resources. If the state of the quantum bits does not meet the computing requirements, the calibration routine will calibrate the quantum bits. If this step is entered from step S5 or step S6, all quantum bits that need to be calibrated are calibrated, and after the calibration is completed, jump to step S2. If this step is entered from step S7, the quantum bits assigned to the current quantum task are calibrated, and after the calibration is completed, jump to step S9. Due to the characteristics of the quantum bits themselves, they will not be able to work accurately after a period of time, so the quantum bits need to be calibrated.

[0033] Step S9: Generate a corresponding control pulse waveform file according to the quantum logic gate operation included in the current quantum task, and send it to the quantum measurement and control system, and then jump to step S10.

[0034] Step S10: The quantum measurement and control system controls the quantum computing resources to perform quantum computing according to the waveform file, and jumps to step S11 after completion.

[0035] Step S11: The quantum measurement and control system measures the calculation results of this quantum computing task and returns the results to the operating system for further processing, and then jumps to step S2.

[0036] The present invention abstracts different quantum hardware into external devices in the operating system kernel, and uses the device driver mechanism of the operating system kernel to uniformly manage classical computing resources and quantum computing resources. When there is a quantum computing task, the operating system kernel can automatically allocate and map idle quantum bits. At the same time, for the automatic calibration of quantum devices, the calibration routine can be called before executing the quantum computing task to actively implement the calibration, or the calibration routine can be called in the interrupt context of the operating system kernel to passively calibrate the quantum bits. Thereby, the scalability of the system is improved, and quantum computing resources implemented by different technical solutions can be managed and allocated at the same time. At the same time, the complex quantum characteristics are shielded from users, and a stable quantum state description is provided for the upper-level software, which is convenient for users to use and control quantum devices.

[0037] The above is only a preferred specific embodiment of the present invention, which is an implementation method based on the overall concept of the present invention, and the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A quantum computing resource management method based on operating system kernel, It is characterized in that The steps include: Step 0, wait for events to be processed. If there is a quantum computing task, proceed to step 1; if there is an interrupt event, enter the interrupt processing process; The interrupt processing process specifically includes: reading the interrupt vector of the interrupt event, if the interrupt vector matches the interrupt number of the hardware calibration interrupt, then proceeding to step 3; if the interrupt vector matches the interrupt number of the timing calibration interrupt, then resetting the timer and proceeding to step 3; Step 1: Analyze the quantum computing resources required for the current quantum computing task; Step 2: Allocate and map corresponding quantum bits to the current quantum task based on the quantum computing resources parsed in step 1 and the available computing resources in the current system; Step 3: Detect the state of the quantum bit in the quantum computing resource. If the state of the quantum bit does not meet the computing requirements, calibrate the quantum bit; Step 4, generating a corresponding control pulse waveform file according to the quantum logic gate operation included in the current quantum task; Step 5, controlling the quantum computing resources to perform quantum computing according to the control pulse waveform file; Step 6: Measure the calculation results of this quantum computing task.

2. A quantum computing resource management method based on an operating system kernel according to claim 1, It is characterized in that The step 3 further includes: if the current calibration task is triggered by a quantum computing task, then proceed to step 4; if the current calibration task is triggered by an interrupt event, then proceed to step 0.

3. According to claim 1, a quantum computing resource management method based on an operating system kernel, It is characterized in that Before step 0, the process also includes: starting the operating system, completing the initialization of each functional module of the operating system, and adding the classical computing devices and quantum computing devices managed by the operating system to the device list for unified management.

Citation Information

Patent Citations

  • Quantum equipment hardware resource unified management method and system based on application layer protocol

    CN113037708A

  • A real-time kernel implementation and testing method

    CN109101313A

  • Quantum bit calibration method and device and quantum computer

    CN113011594A

  • Quantum computer operating system based on microkernel architecture and quantum computer

    CN114492821A

  • Processing method and processing device for a hardware interrupt

    US20080162764A1