CN115907022A - A multi-quantum service conversion and simulation scheduling method, device, equipment and medium - Google Patents

A multi-quantum service conversion and simulation scheduling method, device, equipment and medium Download PDF

Info

Publication number
CN115907022A
CN115907022A CN202310005100.2A CN202310005100A CN115907022A CN 115907022 A CN115907022 A CN 115907022A CN 202310005100 A CN202310005100 A CN 202310005100A CN 115907022 A CN115907022 A CN 115907022A
Authority
CN
China
Prior art keywords
quantum
business system
dispatcher
decision
quantum business
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310005100.2A
Other languages
Chinese (zh)
Inventor
薛长青
刘强
刘幼航
于洪真
李彦祯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310005100.2A priority Critical patent/CN115907022A/en
Publication of CN115907022A publication Critical patent/CN115907022A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method, a device, equipment and a readable medium for converting and simulating multi-quantum services, wherein the method comprises the following steps: collecting data of each quantum system unit through a cloud data center, and constructing a quantum business system simulation environment based on the collected data; designing a quantum business system dispatcher decision model; obtaining data of a quantum business system dispatcher executing a decision, and training a quantum business system dispatcher decision model in a simulation environment based on the obtained data of the executing decision; and using the trained quantum business system dispatcher decision model to assist a quantum business system dispatcher in executing a decision. By using the scheme of the invention, the influence caused by artificial misoperation can be reduced, the scheduling efficiency and accuracy are improved, the difficulty of micro-service application deployment and management can be reduced, and the adaptive management of different types of quantum services can be realized. The present invention relates to the field of computers.

Description

一种多量子业务转化及仿真调度方法、装置、设备及介质A multi-quantum service conversion and simulation scheduling method, device, equipment and medium

技术领域technical field

本发明涉及计算机领域,并且更具体地涉及一种多量子业务转化及仿真调度的方法、装置、设备及可读介质。The present invention relates to the field of computers, and more specifically relates to a method, device, equipment and readable medium for multi-quantum service conversion and simulation scheduling.

背景技术Background technique

近年来,强化学习技术受到了大家的广泛关注,特别是与深度学习结合,给人工智能领域带来了很大的进展。强化学习不同于传统的监督学习,主要表现在强化信号上,强化学习中由环境提供的强化信号是对产生动作的好坏作一种评价(通常为标量信号),而不是告诉强化学习系统RLS(reinforcement learning system)如何去产生正确的动作。强化学习通过智能体与环境之间交互的任务,不断地学习在不同的环境下做出最优的动作,利用这些感知生成策略,因而可以创造更高的机器智能。强化学习在机器人控制、自动驾驶、推荐系统领域等都得到了应用,在很多领域都超越了人类表现。In recent years, reinforcement learning technology has received widespread attention, especially in combination with deep learning, which has brought great progress to the field of artificial intelligence. Reinforcement learning is different from traditional supervised learning, mainly in the reinforcement signal. The reinforcement signal provided by the environment in reinforcement learning is an evaluation of the quality of the generated action (usually a scalar signal), rather than telling the reinforcement learning system RLS (reinforcement learning system) how to produce the correct action. Reinforcement learning continuously learns to make optimal actions in different environments through the task of interaction between the agent and the environment, and uses these perception generation strategies to create higher machine intelligence. Reinforcement learning has been applied in the fields of robot control, autonomous driving, and recommender systems, and has surpassed human performance in many areas.

大型量子业务系统集群调度是由许多量子计算参与节点提供算力和经典计算的结合,是一个复杂的大型集群系统。随着量子计算的发展,对量子系统集群会有更高要求,通过各类传感器收集来自各计算节点的数据,通过数据分析来更好的了解参与大型量子系统的参与者的状态,能够提前发现问题并能及时响应处理量子系统出现的异常故障以及减少调度人员人为操作失误,如何有效的利用强化学习技术通过对大型量子业务系统集群的模拟仿真来模拟真实环境,形成大型量子业务系统集群调度员的准确高效的调度策略,避免调度失误造成不良后果成为待解决的问题。Large-scale quantum business system cluster scheduling is a combination of computing power provided by many quantum computing participating nodes and classical computing. It is a complex large-scale cluster system. With the development of quantum computing, there will be higher requirements for quantum system clusters. Data from various computing nodes are collected through various sensors, and data analysis is used to better understand the status of participants participating in large-scale quantum systems, which can be discovered in advance How to effectively use reinforcement learning technology to simulate the real environment through the simulation of large-scale quantum business system clusters to form a large-scale quantum business system cluster dispatcher An accurate and efficient scheduling strategy to avoid adverse consequences caused by scheduling errors has become a problem to be solved.

发明内容Contents of the invention

有鉴于此,本发明实施例的目的在于提出一种多量子业务转化及仿真调度的方法、装置、设备及可读介质,通过使用本发明的技术方案,能够减少人为操作失误带来的影响,提升调度效率及准确度,能够降低微服务应用部署及管理的难度,能够实现对不同类型的量子业务的适配管理。In view of this, the purpose of the embodiments of the present invention is to propose a method, device, device and readable medium for multi-quantum service conversion and simulation scheduling. By using the technical solution of the present invention, the impact of human error can be reduced. Improving scheduling efficiency and accuracy can reduce the difficulty of micro-service application deployment and management, and can realize the adaptive management of different types of quantum services.

基于上述目的,本发明的实施例的一个方面提供了一种多量子业务转化及仿真调度的方法,包括以下步骤:Based on the above purpose, an aspect of the embodiments of the present invention provides a method for multi-quantum service conversion and simulation scheduling, including the following steps:

通过云数据中心采集各个量子系统单元的数据,并基于采集到的数据构建量子业务系统模拟仿真环境;Collect the data of each quantum system unit through the cloud data center, and build a quantum business system simulation environment based on the collected data;

设计量子业务系统调度员决策模型;Design the decision-making model of the dispatcher of the quantum business system;

获取量子业务系统调度员执行决策的数据,并基于获取到的执行决策的数据在模拟仿真环境中训练量子业务系统调度员决策模型;Obtain the decision-making data of the dispatcher of the quantum business system, and train the decision-making model of the dispatcher of the quantum business system in a simulation environment based on the obtained data of the decision-making execution;

使用训练后的量子业务系统调度员决策模型辅助量子业务系统调度员执行决策。Use the trained quantum business system dispatcher decision-making model to assist the quantum business system dispatcher in making decisions.

根据本发明的一个实施例,通过云数据中心采集各个量子系统单元的数据,并基于采集到的数据构建量子业务系统模拟仿真环境包括:According to an embodiment of the present invention, collecting data of each quantum system unit through the cloud data center, and constructing a quantum business system simulation environment based on the collected data includes:

采集各个量子系统单元运行的数据,其中,运行的数据包括各个量子系统单元的实时状态数据、运行日志、调度计划、故障数据以及调度员调度执行的数据;Collect the operation data of each quantum system unit, wherein the operation data includes the real-time status data, operation log, scheduling plan, fault data and dispatcher scheduling execution data of each quantum system unit;

基于采集的数据并利用数字孪生技术构建量子业务系统模拟仿真环境。Based on the collected data and using digital twin technology to build a quantum business system simulation environment.

根据本发明的一个实施例,获取量子业务系统调度员执行决策的数据,并基于获取到的执行决策的数据在模拟仿真环境中训练量子业务系统调度员决策模型包括:According to an embodiment of the present invention, obtaining the data of the decision-making execution of the dispatcher of the quantum business system, and training the decision-making model of the dispatcher of the quantum business system in a simulation environment based on the data of the obtained decision-making execution include:

获取量子业务系统调度员执行决策的数据;Obtain the data of the decision-making of the dispatcher of the quantum business system;

根据量子业务系统调度员的实际操作,并结合量子业务系统的状态环境构建量子业务系统调度员调度操作指令执行序列;According to the actual operation of the quantum business system dispatcher, combined with the state environment of the quantum business system, the quantum business system dispatcher dispatches the operation instruction execution sequence;

根据当前量子业务系统计划、各个量子系统单元运行状态以及事故异常实践情况在模拟仿真环境中确定下一步执行调度操作;According to the current quantum business system plan, the operating status of each quantum system unit and the practice of abnormal accidents, determine the next step to execute the scheduling operation in the simulation environment;

根据量子业务系统调度员的调度操作以及实际执行效果,结合在模拟仿真环境中确定的调度操作设定量子业务系统模拟仿真环境的奖励函数;According to the scheduling operation of the dispatcher of the quantum business system and the actual execution effect, combined with the scheduling operation determined in the simulation environment, the reward function of the simulation environment of the quantum business system is set;

基于奖励函数并采用A3C算法训练量子业务系统调度员决策模型。Based on the reward function and using the A3C algorithm to train the decision-making model of the quantum business system dispatcher.

根据本发明的一个实施例,基于奖励函数并采用A3C算法训练量子业务系统调度员决策模型包括:According to an embodiment of the present invention, based on the reward function and adopting the A3C algorithm to train the decision-making model of the dispatcher of the quantum business system includes:

设定worker线程数量、全局共享迭代次数、全局最大迭代次数、状态特征维度及操作指令集的全局参数,设定全局模型公共神经网络,设置模拟仿真环境初始化状态;Set the number of worker threads, the number of global shared iterations, the global maximum number of iterations, the state feature dimension and the global parameters of the operation instruction set, set the global model public neural network, and set the initialization state of the simulation environment;

初始化量子业务系统调度员决策模型;Initialize the decision-making model of the quantum business system dispatcher;

使每个worker线程采用全局模型公共神经网络独立与模拟仿真环境进行交互,执行调度操作获得反馈后更新本地全局模型公共神经网络的梯度,更新全局模型公共神经网络的模型参数;Make each worker thread use the global model public neural network to independently interact with the simulation environment, perform scheduling operations to obtain feedback and update the gradient of the local global model public neural network, and update the model parameters of the global model public neural network;

循环执行上一个步骤直至量子业务系统调度员决策模型收敛。Repeat the previous step until the quantum business system dispatcher decision model converges.

根据本发明的一个实施例,全局模型公共神经网络包括Actor网络和Critic 网络。According to an embodiment of the present invention, the global model public neural network includes an Actor network and a Critic network.

根据本发明的一个实施例,使用训练后的量子业务系统调度员决策模型辅助量子业务系统调度员执行决策包括:According to an embodiment of the present invention, using the trained quantum business system dispatcher decision-making model to assist the quantum business system dispatcher to perform decision-making includes:

实时采集当前量子业务系统的实际运行数据,并实时更新到模拟仿真环境中;Collect the actual operating data of the current quantum business system in real time and update it to the simulation environment in real time;

使用训练后的量子业务系统调度员决策模型根据当前实际状况输出下一步调度操作;Use the trained quantum business system dispatcher decision-making model to output the next step of dispatching operation according to the current actual situation;

记录当前模拟仿真环境状态和量子业务系统调度员决策模型输出的下一步调度操作,并反馈更新模拟仿真环境;Record the current state of the simulation environment and the next scheduling operation output by the dispatcher's decision model of the quantum business system, and feedback and update the simulation environment;

设定时间段,重复执行上述步骤以形成量子业务系统调度员推荐操作序列,使用推荐操作序列辅助量子业务系统调度员执行决策。Set a time period, repeat the above steps to form the quantum business system scheduler's recommended operation sequence, and use the recommended operation sequence to assist the quantum business system scheduler in making decisions.

根据本发明的一个实施例,使用推荐操作序列辅助量子业务系统调度员执行决策包括:According to an embodiment of the present invention, using the recommended operation sequence to assist the quantum business system dispatcher to perform decision-making includes:

量子业务系统调度员参考推荐操作序列并结合实际状况进行调度操作;The dispatcher of the quantum business system refers to the recommended operation sequence and performs scheduling operations in combination with the actual situation;

调度操作后获取实际操作结果,并更新当前量子业务系统的实际运行数据,并实时更新到模拟仿真环境中。After the operation is scheduled, the actual operation results are obtained, and the actual operation data of the current quantum business system is updated, and updated in the simulation environment in real time.

根据本发明的一个实施例,还包括:According to an embodiment of the present invention, also include:

根据每一位量子业务系统调度员的实际操作优化量子业务系统调度员决策模型。Optimize the decision-making model of the quantum business system dispatcher according to the actual operation of each quantum business system dispatcher.

根据本发明的一个实施例,根据每一位量子业务系统调度员的实际操作优化量子业务系统调度员决策模型包括:According to an embodiment of the present invention, optimizing the decision-making model of the quantum business system dispatcher according to the actual operation of each quantum business system dispatcher includes:

获取每一位量子业务系统调度员的实际操作的数据;Obtain the actual operation data of each quantum business system dispatcher;

在模拟仿真环境中使用实际操作的数据训练量子业务系统调度员决策模型;Use the actual operation data to train the decision-making model of the quantum business system dispatcher in the simulation environment;

使用量子业务系统调度员决策模型在模拟仿真环境中模拟量子业务系统运行和调度;Use the quantum business system dispatcher decision model to simulate the operation and scheduling of the quantum business system in a simulation environment;

将量子业务系统调度员决策模型的调度结果与最佳调度指令进行对比;Compare the scheduling results of the quantum business system dispatcher decision-making model with the optimal scheduling instructions;

根据对比结果优化量子业务系统调度员决策模型的调度策略。According to the comparison results, the dispatching strategy of the dispatcher decision model of the quantum business system is optimized.

根据本发明的一个实施例,还包括:According to an embodiment of the present invention, also include:

将量子业务系统调度员决策模型的调度操作与最佳调度指令进行对比;Compare the dispatching operation of the dispatcher decision model of the quantum business system with the optimal dispatching instruction;

根据对比结果优化量子业务系统调度员决策模型的调度策略。According to the comparison results, the dispatching strategy of the dispatcher decision model of the quantum business system is optimized.

根据本发明的一个实施例,通过云数据中心采集各个量子系统单元的数据包括:According to an embodiment of the present invention, collecting data of each quantum system unit through the cloud data center includes:

通过云数据中心采集超导量子系统、核自旋量子系统、光学腔量子系统和离子井量子系统的数据。The data of superconducting quantum system, nuclear spin quantum system, optical cavity quantum system and ion well quantum system are collected through the cloud data center.

根据本发明的一个实施例,云数据中心是由各个量子系统单元的实际量子业务系统通过量子业务适配器转换为云中心能处理的业务。According to an embodiment of the present invention, the cloud data center is converted from the actual quantum business system of each quantum system unit into a business that can be processed by the cloud center through the quantum business adapter.

根据本发明的一个实施例,还包括:According to an embodiment of the present invention, also include:

在云数据中心中创建微服务,以将不同的量子业务处理类封装在云数据中心适配接口中。Create microservices in the cloud data center to encapsulate different quantum business processing classes in the cloud data center adaptation interface.

根据本发明的一个实施例,在云数据中心中创建微服务包括:According to an embodiment of the present invention, creating a microservice in a cloud data center includes:

获取微服务创建请求,其中微服务创建请求中包括创建信息和目标量子业务;Obtain a microservice creation request, where the microservice creation request includes creation information and target quantum business;

根据处理类和量子业务的对应关系查找目标量子业务对应的目标处理类;Find the target processing class corresponding to the target quantum business according to the corresponding relationship between the processing class and the quantum business;

利用目标处理类对创建信息进行部署以在目标量子业务上建立微服务的实例。Use the target processing class to deploy the creation information to create an instance of the microservice on the target quantum business.

根据本发明的一个实施例,还包括:According to an embodiment of the present invention, also include:

响应于接收到用户在云数据中心中输入的微服务创建请求,获取创建请求的创建信息和目标量子业务;In response to receiving the microservice creation request input by the user in the cloud data center, obtain the creation information of the creation request and the target quantum business;

基于目标量子业务在云数据中心中调用相应的处理类建立微服务的实例。Based on the target quantum business, call the corresponding processing class in the cloud data center to establish a microservice instance.

根据本发明的一个实施例,在云数据中心中创建微服务包括:According to an embodiment of the present invention, creating a microservice in a cloud data center includes:

获取各种类型量子计算机对应的元数据和服务类型实例;Obtain metadata and service type instances corresponding to various types of quantum computers;

对服务类型实例进行编排以构建服务类型实例的软件环境;orchestrating service type instances to build a software environment for service type instances;

根据元数据对相应的服务类型实例进行参数的配置以得到各个量子业务的处理类。Configure the parameters of the corresponding service type instance according to the metadata to obtain the processing class of each quantum business.

根据本发明的一个实施例,根据处理类和量子业务的对应关系查找目标量子业务对应的目标处理类包括:According to an embodiment of the present invention, searching for the target processing class corresponding to the target quantum service according to the corresponding relationship between the processing class and the quantum service includes:

判断处理类和量子业务的对应关系中是否记录有目标量子业务;Judging whether the target quantum business is recorded in the corresponding relationship between the processing class and the quantum business;

响应于记录有目标量子业务,将目标量子业务对应的处理类作为目标处理类;In response to recording the target quantum service, use the processing class corresponding to the target quantum service as the target processing class;

响应于没有记录目标量子业务,调用预先设定的通用处理类作为目标处理类。In response to no target quantum service being recorded, a pre-set general processing class is invoked as the target processing class.

本发明的实施例的另一个方面,还提供了一种多量子业务转化及仿真调度的装置,装置包括:Another aspect of the embodiments of the present invention also provides a device for multi-quantum service conversion and simulation scheduling, including:

构建模块,构建模块配置为通过云数据中心采集各个量子系统单元的数据,并基于采集到的数据构建量子业务系统模拟仿真环境;Building modules, the building modules are configured to collect data of each quantum system unit through the cloud data center, and build a quantum business system simulation environment based on the collected data;

设计模块,设计模块配置为设计量子业务系统调度员决策模型;Design module, the design module is configured to design the dispatcher decision model of the quantum business system;

训练模块,训练模块配置为获取量子业务系统调度员执行决策的数据,并基于获取到的执行决策的数据在模拟仿真环境中训练量子业务系统调度员决策模型;A training module, the training module is configured to obtain the data of the decision-making execution of the dispatcher of the quantum business system, and train the decision-making model of the dispatcher of the quantum business system in a simulation environment based on the obtained data of the execution decision-making;

执行模块,执行模块配置为使用训练后的量子业务系统调度员决策模型辅助量子业务系统调度员执行决策。The execution module is configured to use the trained decision-making model of the quantum business system dispatcher to assist the quantum business system dispatcher to execute the decision.

本发明的实施例的另一个方面,还提供了一种计算机设备,该计算机设备包括:Another aspect of the embodiments of the present invention also provides a computer device, the computer device includes:

至少一个处理器;以及at least one processor; and

存储器,存储器存储有可在处理器上运行的计算机指令,指令由处理器执行时实现上述任意一项方法的步骤。Memory, the memory stores computer instructions that can be run on the processor, and when the instructions are executed by the processor, the steps of any one of the above-mentioned methods are realized.

本发明的实施例的另一个方面,还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述任意一项方法的步骤。Another aspect of the embodiments of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any one of the above methods are implemented.

本发明具有以下有益技术效果:本发明实施例提供的量子业务系统仿真调度的方法,通过通过云数据中心采集各个量子系统单元的数据,并基于采集到的数据构建量子业务系统模拟仿真环境;设计量子业务系统调度员决策模型;获取量子业务系统调度员执行决策的数据,并基于获取到的执行决策的数据在模拟仿真环境中训练量子业务系统调度员决策模型;使用训练后的量子业务系统调度员决策模型辅助量子业务系统调度员执行决策的技术方案,能够减少人为操作失误带来的影响,提升调度效率及准确度,能够降低微服务应用部署及管理的难度,能够实现对不同类型的量子业务的适配管理。The present invention has the following beneficial technical effects: the method of quantum business system simulation scheduling provided by the embodiment of the present invention collects data of each quantum system unit through the cloud data center, and builds a quantum business system simulation environment based on the collected data; design The decision-making model of the quantum business system dispatcher; obtain the data of the execution decision of the quantum business system dispatcher, and train the decision-making model of the quantum business system dispatcher in the simulation environment based on the obtained execution decision-making data; use the trained quantum business system scheduling The decision-making model of the quantum business system assists the dispatcher of the quantum business system to implement the technical solution of the decision-making, which can reduce the impact of human error, improve the efficiency and accuracy of scheduling, reduce the difficulty of deploying and managing micro-service applications, and realize the control of different types of quantum Business adaptation management.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and those skilled in the art can obtain other embodiments according to these drawings without any creative effort.

图1为根据本发明一个实施例的多量子业务转化及仿真调度的方法的示意性流程图;FIG. 1 is a schematic flowchart of a method for multi-quantum service conversion and simulation scheduling according to an embodiment of the present invention;

图2为根据本发明一个实施例的多量子业务转化及仿真调度的装置的示意图;FIG. 2 is a schematic diagram of a device for multi-quantum service conversion and simulation scheduling according to an embodiment of the present invention;

图3为根据本发明一个实施例的计算机设备的示意图;Figure 3 is a schematic diagram of a computer device according to one embodiment of the present invention;

图4为根据本发明一个实施例的计算机可读存储介质的示意图。FIG. 4 is a schematic diagram of a computer readable storage medium according to one embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

基于上述目的,本发明的实施例的第一个方面,提出了一种多量子业务转化及仿真调度的方法的一个实施例。图1示出的是该方法的示意性流程图。Based on the above purpose, the first aspect of the embodiments of the present invention proposes an embodiment of a method for multi-quantum service conversion and simulation scheduling. Figure 1 shows a schematic flowchart of the method.

如图1中所示,该方法可以包括以下步骤:As shown in Figure 1, the method may include the following steps:

S1通过云数据中心采集各个量子系统单元的数据,并基于采集到的数据构建量子业务系统模拟仿真环境。通过大型量子业务集群云数据中心采集来自各参与量子系统单元的数据,利用数字孪生技术形成量子业务系统模拟仿真环境,采集的数据主要是各个量子系统单元运行的数据,运行的数据包括各个量子系统单元的实时状态数据、运行日志、调度计划、故障数据以及调度员调度执行的数据。各个量子系统单元包括超导量子系统、核自旋量子系统、光学腔量子系统和离子井量子系统。量子业务系统模拟仿真环境运行在量子业务系统云数据中心,通过对于各个参与量子业务系统单元的数据采集及指令控制,实现参与量子业务系统单元的数据孪生运行体,量子业务系统云数据中心用于提供计算、存储及网络的云技术设施服务,并且运行量子系统的业务管理系统,收集各个参与量子业务系统单元的传感数据,同时提供强化学习训练所需的算力和存储,来自各量子参与节点的数据为量子业务系统的单元数据,此数据已经转化为量子业务经典数据。S1 collects the data of each quantum system unit through the cloud data center, and builds a quantum business system simulation environment based on the collected data. The data from each participating quantum system unit is collected through the large-scale quantum business cluster cloud data center, and the simulation environment of the quantum business system is formed by using digital twin technology. The collected data is mainly the operation data of each quantum system unit, and the operation data includes each quantum system. Unit real-time status data, operation logs, scheduling plans, fault data, and dispatcher scheduling execution data. Each quantum system unit includes a superconducting quantum system, a nuclear spin quantum system, an optical cavity quantum system and an ion well quantum system. The simulation environment of the quantum business system runs in the cloud data center of the quantum business system. Through the data collection and instruction control of each participating quantum business system unit, the data twin operation body participating in the quantum business system unit is realized. The quantum business system cloud data center is used for Provide computing, storage and network cloud technology facilities services, and run the business management system of the quantum system, collect the sensing data of each participating quantum business system unit, and provide the computing power and storage required for intensive learning training, from each quantum participating The data of the node is the unit data of the quantum business system, and this data has been transformed into the classical data of the quantum business.

S2设计量子业务系统调度员决策模型。强化学习量子业务系统调度员决策模型是模拟调度员的实际操作形成的策略模型,通过强化训练得到,为序列化神经网络模型,根据当前量子业务系统的业务计划、业务流程以及业务实际运行情况决定系统调度员要执行的调度操作。S2 Design the decision-making model of the dispatcher of the quantum business system. The reinforcement learning quantum business system dispatcher decision-making model is a strategy model formed by simulating the actual operation of the dispatcher. It is obtained through intensive training and is a serialized neural network model. It is determined according to the current business plan, business process and actual business operation of the quantum business system. The scheduling action to be performed by the system scheduler.

S3获取量子业务系统调度员执行决策的数据,并基于获取到的执行决策的数据在模拟仿真环境中训练量子业务系统调度员决策模型。首先获取量子业务系统调度员执行决策的数据,根据量子业务系统调度员的实际操作,并结合量子业务系统的状态环境构建量子业务系统调度员调度操作指令执行序列,根据当前量子业务系统计划、各个量子系统单元运行状态以及事故异常实践情况在模拟仿真环境中确定下一步执行调度操作,根据量子业务系统调度员的调度操作以及实际执行效果,结合在模拟仿真环境中确定的调度操作设定量子业务系统模拟仿真环境的奖励函数,基于奖励函数并采用A3C算法训练量子业务系统调度员决策模型。训练过程包括设定worker线程数量、全局共享迭代次数、全局最大迭代次数、状态特征维度及操作指令集的全局参数,设定全局模型公共神经网络,其中全局模型公共神经网络包括Actor网络和Critic网络,设置模拟仿真环境初始化状态,初始化量子业务系统调度员决策模型,使每个worker线程采用全局模型公共神经网络独立与模拟仿真环境进行交互,执行调度操作获得反馈后更新本地全局模型公共神经网络的梯度,更新全局模型公共神经网络的模型参数,循环执行上一个步骤直至量子业务系统调度员决策模型收敛。S3 obtains the decision-making data of the dispatcher of the quantum business system, and trains the decision-making model of the dispatcher of the quantum business system in a simulated simulation environment based on the data of the decision-making execution obtained. Firstly, obtain the decision-making data of the dispatcher of the quantum business system, construct the dispatcher’s scheduling operation command execution sequence according to the actual operation of the dispatcher of the quantum business system, and combine with the state environment of the quantum business system, according to the current quantum business system plan, each The operating status of the quantum system unit and the actual situation of abnormal accidents are determined in the simulation environment to determine the next step to execute the scheduling operation, and the quantum business is set according to the scheduling operation of the quantum business system dispatcher and the actual execution effect, combined with the scheduling operation determined in the simulation environment The reward function of the system simulation environment is based on the reward function and the A3C algorithm is used to train the decision-making model of the quantum business system dispatcher. The training process includes setting the number of worker threads, the number of global shared iterations, the global maximum number of iterations, the state feature dimension and the global parameters of the operation instruction set, and setting the global model public neural network, where the global model public neural network includes Actor network and Critic network , set the initialization state of the simulation environment, initialize the decision-making model of the quantum business system dispatcher, make each worker thread interact with the simulation environment independently by using the global model public neural network, and update the local global model public neural network after executing the scheduling operation and obtaining feedback Gradient, update the model parameters of the public neural network of the global model, and execute the previous step in a loop until the decision model of the quantum business system dispatcher converges.

S4使用训练后的量子业务系统调度员决策模型辅助量子业务系统调度员执行决策。S4 uses the trained quantum business system dispatcher's decision-making model to assist the quantum business system dispatcher in making decisions.

通过本发明的技术方案,能够减少人为操作失误带来的影响,提升调度效率及准确度,能够降低微服务应用部署及管理的难度,能够实现对不同类型的量子业务的适配管理。The technical solution of the present invention can reduce the impact of human error, improve scheduling efficiency and accuracy, reduce the difficulty of deploying and managing microservice applications, and realize adaptive management of different types of quantum services.

在本发明的一个优选实施例中,通过云数据中心采集各个量子系统单元的数据,并基于采集到的数据构建量子业务系统模拟仿真环境包括:In a preferred embodiment of the present invention, collecting the data of each quantum system unit through the cloud data center, and constructing a quantum business system simulation environment based on the collected data includes:

采集各个量子系统单元运行的数据,其中,运行的数据包括各个量子系统单元的实时状态数据、运行日志、调度计划、故障数据以及调度员调度执行的数据;Collect the operation data of each quantum system unit, wherein the operation data includes the real-time status data, operation log, scheduling plan, fault data and dispatcher scheduling execution data of each quantum system unit;

基于采集的数据并利用数字孪生技术构建量子业务系统模拟仿真环境。Based on the collected data and using digital twin technology to build a quantum business system simulation environment.

在本发明的一个优选实施例中,获取量子业务系统调度员执行决策的数据,并基于获取到的执行决策的数据在模拟仿真环境中训练量子业务系统调度员决策模型包括:In a preferred embodiment of the present invention, obtaining the data of the execution decision-making of the quantum business system dispatcher, and training the decision-making model of the quantum business system dispatcher in a simulation environment based on the obtained data of execution decision-making includes:

获取量子业务系统调度员执行决策的数据;Obtain the data of the decision-making of the dispatcher of the quantum business system;

根据量子业务系统调度员的实际操作,并结合量子业务系统的状态环境构建量子业务系统调度员调度操作指令执行序列;According to the actual operation of the quantum business system dispatcher, combined with the state environment of the quantum business system, the quantum business system dispatcher dispatches the operation instruction execution sequence;

根据当前量子业务系统计划、各个量子系统单元运行状态以及事故异常实践情况在模拟仿真环境中确定下一步执行调度操作;According to the current quantum business system plan, the operating status of each quantum system unit and the practice of abnormal accidents, determine the next step to execute the scheduling operation in the simulation environment;

根据量子业务系统调度员的调度操作以及实际执行效果,结合在模拟仿真环境中确定的调度操作设定量子业务系统模拟仿真环境的奖励函数;According to the scheduling operation of the dispatcher of the quantum business system and the actual execution effect, combined with the scheduling operation determined in the simulation environment, the reward function of the simulation environment of the quantum business system is set;

基于奖励函数并采用A3C算法训练量子业务系统调度员决策模型。Based on the reward function and using the A3C algorithm to train the decision-making model of the quantum business system dispatcher.

在本发明的一个优选实施例中,基于奖励函数并采用A3C算法训练量子业务系统调度员决策模型包括:In a preferred embodiment of the present invention, based on the reward function and adopting the A3C algorithm to train the quantum business system dispatcher decision-making model includes:

设定worker线程数量、全局共享迭代次数、全局最大迭代次数、状态特征维度及操作指令集的全局参数,设定全局模型公共神经网络,设置模拟仿真环境初始化状态;Set the number of worker threads, the number of global shared iterations, the global maximum number of iterations, the state feature dimension and the global parameters of the operation instruction set, set the global model public neural network, and set the initialization state of the simulation environment;

初始化量子业务系统调度员决策模型;Initialize the decision-making model of the quantum business system dispatcher;

使每个worker线程采用全局模型公共神经网络独立与模拟仿真环境进行交互,执行调度操作获得反馈后更新本地全局模型公共神经网络的梯度,更新全局模型公共神经网络的模型参数;Make each worker thread use the global model public neural network to independently interact with the simulation environment, perform scheduling operations to obtain feedback and update the gradient of the local global model public neural network, and update the model parameters of the global model public neural network;

循环执行上一个步骤直至量子业务系统调度员决策模型收敛。Repeat the previous step until the quantum business system dispatcher decision model converges.

在本发明的一个优选实施例中,全局模型公共神经网络包括Actor网络和Critic网络。在量子业务系统云数据中心申请资源,采用A3C算法训练强化学习量子业务系统调度员决策模型,首先设定worker线程数量、全局共享迭代次数、全局最大迭代次数、状态特征维度及操作指令集的全局参数,初始化强化学习量子业务系统调度员决策模型,设定全局模型公共神经网络,设置量子业务系统模拟仿真环境初始化状态,其中,全局模型公共神经网络包括Actor网络和Critic 网络,利用A3C算法,使每个worker线程采用Actor网络和Critic网络结构,独立与量子业务系统模拟仿真环境进行交互,执行调度操作获得反馈,并更新本地Actor网络和Critic网络梯度,将更新后的结果汇集到全局模型公共神经网络,更新全局模型公共神经网络的模型参数,循环执行上述步骤直至强化学习量子业务系统调度员决策模型收敛,得到最优的强化学习量子业务系统调度员决策模型。In a preferred embodiment of the present invention, the global model public neural network includes an Actor network and a Critic network. Apply for resources in the cloud data center of the quantum business system, and use the A3C algorithm to train the decision-making model of the dispatcher of the quantum business system for reinforcement learning. First, set the number of worker threads, the number of global shared iterations, the global maximum number of iterations, the dimension of state features, and the global scope of the operation instruction set Parameters, initialize the dispatcher decision-making model of the reinforcement learning quantum business system, set the global model public neural network, and set the initialization state of the quantum business system simulation environment, where the global model public neural network includes Actor network and Critic network, using the A3C algorithm to make Each worker thread adopts the Actor network and Critic network structure, independently interacts with the quantum business system simulation environment, performs scheduling operations to obtain feedback, and updates the local Actor network and Critic network gradients, and brings together the updated results to the global model public neural network network, update the model parameters of the global model public neural network, execute the above steps in a loop until the reinforcement learning quantum business system dispatcher decision model converges, and obtain the optimal reinforcement learning quantum business system dispatcher decision model.

在本发明的一个优选实施例中,使用训练后的量子业务系统调度员决策模型辅助量子业务系统调度员执行决策包括:In a preferred embodiment of the present invention, using the trained quantum business system dispatcher decision-making model to assist the quantum business system dispatcher to perform decision-making includes:

实时采集当前量子业务系统的实际运行数据,并实时更新到模拟仿真环境中;Collect the actual operating data of the current quantum business system in real time and update it to the simulation environment in real time;

使用训练后的量子业务系统调度员决策模型根据当前实际状况输出下一步调度操作;Use the trained quantum business system dispatcher decision-making model to output the next step of dispatching operation according to the current actual situation;

记录当前模拟仿真环境状态和量子业务系统调度员决策模型输出的下一步调度操作,并反馈更新模拟仿真环境;Record the current state of the simulation environment and the next scheduling operation output by the dispatcher's decision model of the quantum business system, and feedback and update the simulation environment;

设定时间段,重复执行上述步骤以形成量子业务系统调度员推荐操作序列,使用推荐操作序列辅助量子业务系统调度员执行决策。将当前量子业务系统的实际运行数据实时更新到模拟仿真环境中,可以使模拟仿真环境与真实的量子业务系统保持一致,根据训练好的决策模型在模拟仿真环境中模拟出调度员需要进行的一些列调度操作,可以给真实的调度员在进行调度操作时作为参考,以防止调度员由于个人原因操作失误。Set a time period, repeat the above steps to form the quantum business system scheduler's recommended operation sequence, and use the recommended operation sequence to assist the quantum business system scheduler in making decisions. Updating the actual operating data of the current quantum business system to the simulation environment in real time can make the simulation environment consistent with the real quantum business system, and simulate some tasks that the dispatcher needs to perform in the simulation environment according to the trained decision-making model. The list of dispatching operations can be used as a reference for the real dispatcher when performing dispatching operations, so as to prevent the dispatcher from making mistakes due to personal reasons.

在本发明的一个优选实施例中,使用推荐操作序列辅助量子业务系统调度员执行决策包括:In a preferred embodiment of the present invention, using the recommended operation sequence to assist the quantum business system dispatcher to perform decision-making includes:

量子业务系统调度员参考推荐操作序列并结合实际状况进行调度操作;The dispatcher of the quantum business system refers to the recommended operation sequence and performs scheduling operations in combination with the actual situation;

调度操作后获取实际操作结果,并更新当前量子业务系统的实际运行数据,并实时更新到模拟仿真环境中。将调度员的实际操作结果事实更新到模拟仿真环境中,以使得决策模型在最新的数据下能够做出最正确的决策。After the operation is scheduled, the actual operation results are obtained, and the actual operation data of the current quantum business system is updated, and updated in the simulation environment in real time. Update the actual operation results of the dispatcher to the simulation environment, so that the decision-making model can make the most correct decision under the latest data.

在本发明的一个优选实施例中,还包括:In a preferred embodiment of the present invention, also include:

根据每一位量子业务系统调度员的实际操作优化量子业务系统调度员决策模型。利用量子业务系统模拟仿真环境,针对实际每一位量子业务系统调度员的实际操作,采用强化学习方法训练其个性化强化学习量子业务系统调度员决策模型,将量子业务系统调度员的个性化强化学习量子业务系统调度员决策模型作为模拟调度员,与量子业务系统模拟仿真环境进行持续交互,模拟量子业务系统运行和调度,评价量子业务系统调度员个性化强化学习量子业务系统调度员决策模型的调度结果,并与最佳调度指令执行策略对比,发现其中的调度问题,进而改善调度策略,根据实际情况,在量子业务系统模拟仿真环境下,模拟全部调度员的调度操作,并与最佳调度指令执行策略对比,发现异常环节,优化调度方式,根据未来实际情况,在量子业务系统模拟仿真环境下,结合量子业务系统实际数据模拟未来时刻量子业务系统运行和调度,提前发现问题,避免事故发生,持续收集来自实际量子业务系统运行及调度的数据,用于优化强化学习量子业务系统调度员的决策模型。Optimize the decision-making model of the quantum business system dispatcher according to the actual operation of each quantum business system dispatcher. Using the simulation environment of the quantum business system, aiming at the actual operation of each quantum business system dispatcher, the reinforcement learning method is used to train the personalized decision-making model of the quantum business system dispatcher, so as to strengthen the individualization of the quantum business system dispatcher Learning the decision-making model of the quantum business system dispatcher As a simulated dispatcher, continuously interact with the simulation environment of the quantum business system, simulate the operation and scheduling of the quantum business system, and evaluate the personalized reinforcement learning of the quantum business system dispatcher’s decision-making model for the quantum business system dispatcher The scheduling results are compared with the optimal scheduling instruction execution strategy to find out the scheduling problems, and then improve the scheduling strategy. According to the actual situation, in the simulation environment of the quantum business system, simulate the scheduling operations of all dispatchers, and compare with the optimal scheduling Comparing instruction execution strategies, discovering abnormal links, optimizing scheduling methods, and according to the actual situation in the future, in the quantum business system simulation environment, combining the actual data of the quantum business system to simulate the operation and scheduling of the quantum business system in the future, so as to detect problems in advance and avoid accidents , continuously collect data from the actual quantum business system operation and scheduling, and use it to optimize the decision-making model of the quantum business system scheduler for reinforcement learning.

在本发明的一个优选实施例中,根据每一位量子业务系统调度员的实际操作优化量子业务系统调度员决策模型包括:In a preferred embodiment of the present invention, optimizing the decision-making model of the quantum business system dispatcher according to the actual operation of each quantum business system dispatcher includes:

获取每一位量子业务系统调度员的实际操作的数据;Obtain the actual operation data of each quantum business system dispatcher;

在模拟仿真环境中使用实际操作的数据训练量子业务系统调度员决策模型;Use the actual operation data to train the decision-making model of the quantum business system dispatcher in the simulation environment;

使用量子业务系统调度员决策模型在模拟仿真环境中模拟量子业务系统运行和调度;Use the quantum business system dispatcher decision model to simulate the operation and scheduling of the quantum business system in a simulation environment;

将量子业务系统调度员决策模型的调度结果与最佳调度指令进行对比;Compare the scheduling results of the quantum business system dispatcher decision-making model with the optimal scheduling instructions;

根据对比结果优化量子业务系统调度员决策模型的调度策略。According to the comparison results, the dispatching strategy of the dispatcher decision model of the quantum business system is optimized.

在本发明的一个优选实施例中,还包括:In a preferred embodiment of the present invention, also include:

将量子业务系统调度员决策模型的调度操作与最佳调度指令进行对比;Compare the dispatching operation of the dispatcher decision model of the quantum business system with the optimal dispatching instruction;

根据对比结果优化量子业务系统调度员决策模型的调度策略。According to the comparison results, the dispatching strategy of the dispatcher decision model of the quantum business system is optimized.

在本发明的一个优选实施例中,通过云数据中心采集各个量子系统单元的数据包括:In a preferred embodiment of the present invention, collecting the data of each quantum system unit through the cloud data center includes:

通过云数据中心采集超导量子系统、核自旋量子系统、光学腔量子系统和离子井量子系统的数据。The data of superconducting quantum system, nuclear spin quantum system, optical cavity quantum system and ion well quantum system are collected through the cloud data center.

在本发明的一个优选实施例中,云数据中心是由各个量子系统单元的实际量子业务系统通过量子业务适配器转换为云中心能处理的业务。量子业务云数据中心是由各个量子节点的实际量子业务系统通过量子业务适配器转换为云中心能处理的经典业务,并且经典业务的流程创建在云中心通过流程编排的方式实现,并提供了量子业务和经典业务适配的微服务管理方法。In a preferred embodiment of the present invention, the cloud data center is converted from the actual quantum business system of each quantum system unit to the business that the cloud center can handle through the quantum business adapter. The quantum business cloud data center is converted from the actual quantum business system of each quantum node to the classic business that the cloud center can handle through the quantum business adapter, and the process creation of the classic business is realized in the cloud center through process arrangement, and provides quantum business Microservice management method adapted to classic business.

在本发明的一个优选实施例中,还包括:In a preferred embodiment of the present invention, also include:

在云数据中心中创建微服务,以将不同的量子业务处理类封装在云数据中心适配接口中。Create microservices in the cloud data center to encapsulate different quantum business processing classes in the cloud data center adaptation interface.

在本发明的一个优选实施例中,在云数据中心中创建微服务包括:In a preferred embodiment of the present invention, creating microservices in the cloud data center includes:

获取微服务创建请求,其中微服务创建请求中包括创建信息和目标量子业务;Obtain a microservice creation request, where the microservice creation request includes creation information and target quantum business;

根据处理类和量子业务的对应关系查找目标量子业务对应的目标处理类;Find the target processing class corresponding to the target quantum business according to the corresponding relationship between the processing class and the quantum business;

利用目标处理类对创建信息进行部署以在目标量子业务上建立微服务的实例。Use the target processing class to deploy the creation information to create an instance of the microservice on the target quantum business.

在本发明的一个优选实施例中,还包括:In a preferred embodiment of the present invention, also include:

响应于接收到用户在云数据中心中输入的微服务创建请求,获取创建请求的创建信息和目标量子业务;In response to receiving the microservice creation request input by the user in the cloud data center, obtain the creation information of the creation request and the target quantum business;

基于目标量子业务在云数据中心中调用相应的处理类建立微服务的实例。能够降低微服务应用部署及管理的难度,实现了对不同类型的量子业务适配管理。Based on the target quantum business, call the corresponding processing class in the cloud data center to establish a microservice instance. It can reduce the difficulty of micro-service application deployment and management, and realize the adaptive management of different types of quantum services.

在本发明的一个优选实施例中,在云数据中心中创建微服务包括:In a preferred embodiment of the present invention, creating microservices in the cloud data center includes:

获取各种类型量子计算机对应的元数据和服务类型实例;Obtain metadata and service type instances corresponding to various types of quantum computers;

对服务类型实例进行编排以构建服务类型实例的软件环境;orchestrating service type instances to build a software environment for service type instances;

根据元数据对相应的服务类型实例进行参数的配置以得到各个量子业务的处理类。Configure the parameters of the corresponding service type instance according to the metadata to obtain the processing class of each quantum business.

在本发明的一个优选实施例中,根据处理类和量子业务的对应关系查找目标量子业务对应的目标处理类包括:In a preferred embodiment of the present invention, searching for the target processing class corresponding to the target quantum business according to the corresponding relationship between the processing class and the quantum business includes:

判断处理类和量子业务的对应关系中是否记录有目标量子业务;Judging whether the target quantum business is recorded in the corresponding relationship between the processing class and the quantum business;

响应于记录有目标量子业务,将目标量子业务对应的处理类作为目标处理类;In response to recording the target quantum service, use the processing class corresponding to the target quantum service as the target processing class;

响应于没有记录目标量子业务,调用预先设定的通用处理类作为目标处理类。In response to no target quantum service being recorded, a pre-set general processing class is invoked as the target processing class.

本发明通过大量传感设备来收集量子业务系统数据,基于海量数据利用数字孪生技术形成仿真环境,设计强化学习量子业务系统调度员决策模型,并根据实际量子业务系统调度员的情况,采用A3C训练方法与仿真环境进行交互,最终形成最佳执行策略,用于辅助量子业务系统系统调度员决策执行,尽量消除人为操作失误带来的影响,提升调度效率及准确度。The invention collects quantum business system data through a large number of sensing devices, uses digital twin technology to form a simulation environment based on massive data, designs a decision-making model for the dispatcher of the quantum business system through reinforcement learning, and adopts A3C training according to the actual situation of the quantum business system dispatcher. The method interacts with the simulation environment, and finally forms the best execution strategy, which is used to assist the quantum business system system dispatcher in decision-making execution, eliminate the impact of human error as much as possible, and improve scheduling efficiency and accuracy.

本发明将不同的量子业务处理类封装在数据平台适配接口中,屏蔽了平台底层不同的部署及管理方式。当用户需要利用某一类量子业务提供服务时,直接在平台管理界面上输入微服务创建请求即可,管理平台通过查找调用相应的处理类,便可以在目标量子业务上建立微服务实例,降低了微服务应用部署及管理的难度,实现了对不同类型的量子业务适配管理。The present invention encapsulates different quantum business processing classes in the data platform adaptation interface, shielding different deployment and management methods at the bottom of the platform. When a user needs to use a certain type of quantum business to provide services, he can directly input a microservice creation request on the platform management interface, and the management platform can establish a microservice instance on the target quantum business by searching and calling the corresponding processing class, reducing the It eliminates the difficulty of microservice application deployment and management, and realizes the adaptive management of different types of quantum services.

需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,上述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中存储介质可为磁碟、光盘、只读存储器(Read-Only Memory,ROM)或随机存取存储器(Random AccessMemory,RAM)等。上述计算机程序的实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。It should be noted that those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct relevant hardware to complete, and the above programs can be stored in computer-readable storage media. When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM). The foregoing computer program embodiments can achieve the same or similar effects as any of the foregoing method embodiments corresponding thereto.

此外,根据本发明实施例公开的方法还可以被实现为由CPU 执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被CPU 执行时,执行本发明实施例公开的方法中限定的上述功能。In addition, the method disclosed according to the embodiments of the present invention can also be implemented as a computer program executed by the CPU, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above-mentioned functions defined in the methods disclosed in the embodiments of the present invention are executed.

基于上述目的,本发明的实施例的第二个方面,提出了一种多量子业务转化及仿真调度的装置,如图2所示,装置200包括:Based on the above purpose, the second aspect of the embodiment of the present invention proposes a multi-quantum service conversion and simulation scheduling device, as shown in Figure 2, the device 200 includes:

构建模块,所述构建模块配置为通过云数据中心采集各个量子系统单元的数据,并基于采集到的数据构建量子业务系统模拟仿真环境;A building module, the building module is configured to collect the data of each quantum system unit through the cloud data center, and build a quantum business system simulation environment based on the collected data;

设计模块,所述设计模块配置为设计量子业务系统调度员决策模型;A design module, the design module is configured to design a quantum business system dispatcher decision model;

训练模块,所述训练模块配置为获取量子业务系统调度员执行决策的数据,并基于获取到的执行决策的数据在模拟仿真环境中训练量子业务系统调度员决策模型;A training module, the training module is configured to obtain the data of the decision-making execution of the quantum business system dispatcher, and train the decision-making model of the dispatcher of the quantum business system in a simulation environment based on the obtained data of the execution decision-making;

执行模块,所述执行模块配置为使用训练后的量子业务系统调度员决策模型辅助量子业务系统调度员执行决策。An execution module configured to use the trained quantum business system dispatcher decision model to assist the quantum business system dispatcher to execute decisions.

基于上述目的,本发明实施例的第三个方面,提出了一种计算机设备。图3示出的是本发明提供的计算机设备的实施例的示意图。如图3所示,本发明实施例包括如下装置:至少一个处理器21;以及存储器22,存储器22存储有可在处理器上运行的计算机指令23,指令由处理器执行时实现以下方法:Based on the above purpose, a third aspect of the embodiments of the present invention provides a computer device. FIG. 3 shows a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in FIG. 3 , the embodiment of the present invention includes the following devices: at least one processor 21; and a memory 22, the memory 22 stores computer instructions 23 that can run on the processor, and when the instructions are executed by the processor, the following methods are implemented:

通过云数据中心采集各个量子系统单元的数据,并基于采集到的数据构建量子业务系统模拟仿真环境;Collect the data of each quantum system unit through the cloud data center, and build a quantum business system simulation environment based on the collected data;

设计量子业务系统调度员决策模型;Design the decision-making model of the dispatcher of the quantum business system;

获取量子业务系统调度员执行决策的数据,并基于获取到的执行决策的数据在模拟仿真环境中训练量子业务系统调度员决策模型;Obtain the decision-making data of the dispatcher of the quantum business system, and train the decision-making model of the dispatcher of the quantum business system in a simulation environment based on the obtained data of the decision-making execution;

使用训练后的量子业务系统调度员决策模型辅助量子业务系统调度员执行决策。Use the trained quantum business system dispatcher decision-making model to assist the quantum business system dispatcher in making decisions.

在本发明的一个优选实施例中,通过云数据中心采集各个量子系统单元的数据,并基于采集到的数据构建量子业务系统模拟仿真环境包括:In a preferred embodiment of the present invention, collecting the data of each quantum system unit through the cloud data center, and constructing a quantum business system simulation environment based on the collected data includes:

采集各个量子系统单元运行的数据,其中,运行的数据包括各个量子系统单元的实时状态数据、运行日志、调度计划、故障数据以及调度员调度执行的数据;Collect the operation data of each quantum system unit, wherein the operation data includes the real-time status data, operation log, scheduling plan, fault data and dispatcher scheduling execution data of each quantum system unit;

基于采集的数据并利用数字孪生技术构建量子业务系统模拟仿真环境。Based on the collected data and using digital twin technology to build a quantum business system simulation environment.

在本发明的一个优选实施例中,获取量子业务系统调度员执行决策的数据,并基于获取到的执行决策的数据在模拟仿真环境中训练量子业务系统调度员决策模型包括:In a preferred embodiment of the present invention, obtaining the data of the execution decision-making of the quantum business system dispatcher, and training the decision-making model of the quantum business system dispatcher in a simulation environment based on the obtained data of execution decision-making includes:

获取量子业务系统调度员执行决策的数据;Obtain the data of the decision-making of the dispatcher of the quantum business system;

根据量子业务系统调度员的实际操作,并结合量子业务系统的状态环境构建量子业务系统调度员调度操作指令执行序列;According to the actual operation of the quantum business system dispatcher, combined with the state environment of the quantum business system, the quantum business system dispatcher dispatches the operation instruction execution sequence;

根据当前量子业务系统计划、各个量子系统单元运行状态以及事故异常实践情况在模拟仿真环境中确定下一步执行调度操作;According to the current quantum business system plan, the operating status of each quantum system unit and the practice of abnormal accidents, determine the next step to execute the scheduling operation in the simulation environment;

根据量子业务系统调度员的调度操作以及实际执行效果,结合在模拟仿真环境中确定的调度操作设定量子业务系统模拟仿真环境的奖励函数;According to the scheduling operation of the dispatcher of the quantum business system and the actual execution effect, combined with the scheduling operation determined in the simulation environment, the reward function of the simulation environment of the quantum business system is set;

基于奖励函数并采用A3C算法训练量子业务系统调度员决策模型。Based on the reward function and using the A3C algorithm to train the decision-making model of the quantum business system dispatcher.

在本发明的一个优选实施例中,基于奖励函数并采用A3C算法训练量子业务系统调度员决策模型包括:In a preferred embodiment of the present invention, based on the reward function and adopting the A3C algorithm to train the quantum business system dispatcher decision-making model includes:

设定worker线程数量、全局共享迭代次数、全局最大迭代次数、状态特征维度及操作指令集的全局参数,设定全局模型公共神经网络,设置模拟仿真环境初始化状态;Set the number of worker threads, the number of global shared iterations, the global maximum number of iterations, the state feature dimension and the global parameters of the operation instruction set, set the global model public neural network, and set the initialization state of the simulation environment;

初始化量子业务系统调度员决策模型;Initialize the decision-making model of the quantum business system dispatcher;

使每个worker线程采用全局模型公共神经网络独立与模拟仿真环境进行交互,执行调度操作获得反馈后更新本地全局模型公共神经网络的梯度,更新全局模型公共神经网络的模型参数;Make each worker thread use the global model public neural network to independently interact with the simulation environment, perform scheduling operations to obtain feedback and update the gradient of the local global model public neural network, and update the model parameters of the global model public neural network;

循环执行上一个步骤直至量子业务系统调度员决策模型收敛。Repeat the previous step until the quantum business system dispatcher decision model converges.

在本发明的一个优选实施例中,全局模型公共神经网络包括Actor网络和Critic网络。In a preferred embodiment of the present invention, the global model public neural network includes an Actor network and a Critic network.

在本发明的一个优选实施例中,使用训练后的量子业务系统调度员决策模型辅助量子业务系统调度员执行决策包括:In a preferred embodiment of the present invention, using the trained quantum business system dispatcher decision-making model to assist the quantum business system dispatcher to perform decision-making includes:

实时采集当前量子业务系统的实际运行数据,并实时更新到模拟仿真环境中;Collect the actual operating data of the current quantum business system in real time and update it to the simulation environment in real time;

使用训练后的量子业务系统调度员决策模型根据当前实际状况输出下一步调度操作;Use the trained quantum business system dispatcher decision-making model to output the next step of dispatching operation according to the current actual situation;

记录当前模拟仿真环境状态和量子业务系统调度员决策模型输出的下一步调度操作,并反馈更新模拟仿真环境;Record the current state of the simulation environment and the next scheduling operation output by the dispatcher's decision model of the quantum business system, and feedback and update the simulation environment;

设定时间段,重复执行上述步骤以形成量子业务系统调度员推荐操作序列,使用推荐操作序列辅助量子业务系统调度员执行决策。Set a time period, repeat the above steps to form the quantum business system scheduler's recommended operation sequence, and use the recommended operation sequence to assist the quantum business system scheduler in making decisions.

在本发明的一个优选实施例中,使用推荐操作序列辅助量子业务系统调度员执行决策包括:In a preferred embodiment of the present invention, using the recommended operation sequence to assist the quantum business system dispatcher to perform decision-making includes:

量子业务系统调度员参考推荐操作序列并结合实际状况进行调度操作;The dispatcher of the quantum business system refers to the recommended operation sequence and performs scheduling operations in combination with the actual situation;

调度操作后获取实际操作结果,并更新当前量子业务系统的实际运行数据,并实时更新到模拟仿真环境中。After the operation is scheduled, the actual operation results are obtained, and the actual operation data of the current quantum business system is updated, and updated in the simulation environment in real time.

在本发明的一个优选实施例中,还包括:In a preferred embodiment of the present invention, also include:

根据每一位量子业务系统调度员的实际操作优化量子业务系统调度员决策模型。Optimize the decision-making model of the quantum business system dispatcher according to the actual operation of each quantum business system dispatcher.

在本发明的一个优选实施例中,根据每一位量子业务系统调度员的实际操作优化量子业务系统调度员决策模型包括:In a preferred embodiment of the present invention, optimizing the decision-making model of the quantum business system dispatcher according to the actual operation of each quantum business system dispatcher includes:

获取每一位量子业务系统调度员的实际操作的数据;Obtain the actual operation data of each quantum business system dispatcher;

在模拟仿真环境中使用实际操作的数据训练量子业务系统调度员决策模型;Use the actual operation data to train the decision-making model of the quantum business system dispatcher in the simulation environment;

使用量子业务系统调度员决策模型在模拟仿真环境中模拟量子业务系统运行和调度;Use the quantum business system dispatcher decision model to simulate the operation and scheduling of the quantum business system in a simulation environment;

将量子业务系统调度员决策模型的调度结果与最佳调度指令进行对比;Compare the scheduling results of the quantum business system dispatcher decision-making model with the optimal scheduling instructions;

根据对比结果优化量子业务系统调度员决策模型的调度策略。According to the comparison results, the dispatching strategy of the dispatcher decision model of the quantum business system is optimized.

在本发明的一个优选实施例中,还包括:In a preferred embodiment of the present invention, also include:

将量子业务系统调度员决策模型的调度操作与最佳调度指令进行对比;Compare the dispatching operation of the dispatcher decision model of the quantum business system with the optimal dispatching instruction;

根据对比结果优化量子业务系统调度员决策模型的调度策略。According to the comparison results, the dispatching strategy of the dispatcher decision model of the quantum business system is optimized.

在本发明的一个优选实施例中,通过云数据中心采集各个量子系统单元的数据包括:In a preferred embodiment of the present invention, collecting the data of each quantum system unit through the cloud data center includes:

通过云数据中心采集超导量子系统、核自旋量子系统、光学腔量子系统和离子井量子系统的数据。The data of superconducting quantum system, nuclear spin quantum system, optical cavity quantum system and ion well quantum system are collected through the cloud data center.

在本发明的一个优选实施例中,云数据中心是由各个量子系统单元的实际量子业务系统通过量子业务适配器转换为云中心能处理的业务。In a preferred embodiment of the present invention, the cloud data center is converted from the actual quantum business system of each quantum system unit to the business that the cloud center can handle through the quantum business adapter.

在本发明的一个优选实施例中,还包括:In a preferred embodiment of the present invention, also include:

在云数据中心中创建微服务,以将不同的量子业务处理类封装在云数据中心适配接口中。Create microservices in the cloud data center to encapsulate different quantum business processing classes in the cloud data center adaptation interface.

在本发明的一个优选实施例中,在云数据中心中创建微服务包括:In a preferred embodiment of the present invention, creating microservices in the cloud data center includes:

获取微服务创建请求,其中微服务创建请求中包括创建信息和目标量子业务;Obtain a microservice creation request, where the microservice creation request includes creation information and target quantum business;

根据处理类和量子业务的对应关系查找目标量子业务对应的目标处理类;Find the target processing class corresponding to the target quantum business according to the corresponding relationship between the processing class and the quantum business;

利用目标处理类对创建信息进行部署以在目标量子业务上建立微服务的实例。Use the target processing class to deploy the creation information to create an instance of the microservice on the target quantum business.

在本发明的一个优选实施例中,还包括:In a preferred embodiment of the present invention, also include:

响应于接收到用户在云数据中心中输入的微服务创建请求,获取创建请求的创建信息和目标量子业务;In response to receiving the microservice creation request input by the user in the cloud data center, obtain the creation information of the creation request and the target quantum business;

基于目标量子业务在云数据中心中调用相应的处理类建立微服务的实例。Based on the target quantum business, call the corresponding processing class in the cloud data center to establish a microservice instance.

在本发明的一个优选实施例中,在云数据中心中创建微服务包括:In a preferred embodiment of the present invention, creating microservices in the cloud data center includes:

获取各种类型量子计算机对应的元数据和服务类型实例;Obtain metadata and service type instances corresponding to various types of quantum computers;

对服务类型实例进行编排以构建服务类型实例的软件环境;orchestrating service type instances to build a software environment for service type instances;

根据元数据对相应的服务类型实例进行参数的配置以得到各个量子业务的处理类。Configure the parameters of the corresponding service type instance according to the metadata to obtain the processing class of each quantum business.

在本发明的一个优选实施例中,根据处理类和量子业务的对应关系查找目标量子业务对应的目标处理类包括:In a preferred embodiment of the present invention, searching for the target processing class corresponding to the target quantum business according to the corresponding relationship between the processing class and the quantum business includes:

判断处理类和量子业务的对应关系中是否记录有目标量子业务;Judging whether the target quantum business is recorded in the corresponding relationship between the processing class and the quantum business;

响应于记录有目标量子业务,将目标量子业务对应的处理类作为目标处理类;In response to recording the target quantum service, use the processing class corresponding to the target quantum service as the target processing class;

响应于没有记录目标量子业务,调用预先设定的通用处理类作为目标处理类。In response to no target quantum service being recorded, a pre-set general processing class is invoked as the target processing class.

基于上述目的,本发明实施例的第四个方面,提出了一种计算机可读存储介质。图4示出的是本发明提供的计算机可读存储介质的实施例的示意图。如图4所示,计算机可读存储介质31存储有被处理器执行时执行如上方法的计算机程序32。Based on the above purpose, a fourth aspect of the embodiments of the present invention provides a computer-readable storage medium. FIG. 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. As shown in FIG. 4 , a computer readable storage medium 31 stores a computer program 32 for executing the above method when executed by a processor.

此外,根据本发明实施例公开的方法还可以被实现为由处理器执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被处理器执行时,执行本发明实施例公开的方法中限定的上述功能。In addition, the method disclosed according to the embodiments of the present invention can also be implemented as a computer program executed by a processor, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above functions defined in the methods disclosed in the embodiments of the present invention are executed.

此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储介质实现。In addition, the above-mentioned method steps and system units can also be realized by using a controller and a computer-readable storage medium for storing a computer program for enabling the controller to realize the functions of the above-mentioned steps or units.

本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现的功能,但是这种实现决定不应被解释为导致脱离本发明实施例公开的范围。Those of skill would also appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described generally in terms of their functionality. Whether such functionality is implemented as software or as hardware depends upon the particular application and design constraints imposed on the overall system. Those skilled in the art may implement the functions in various ways for each specific application, but such implementation decisions should not be interpreted as causing a departure from the scope disclosed in the embodiments of the present invention.

在一个或多个示例性设计中,功能可以在硬件、软件、固件或其任意组合中实现。如果在软件中实现,则可以将功能作为一个或多个指令或代码存储在计算机可读介质上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质,该通信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的,该计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储设备、磁盘存储设备或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外,任何连接都可以适当地称为计算机可读介质。例如,如果使用同轴线缆、光纤线缆、双绞线、数字用户线路(DSL)或诸如红外线、无线电和微波的无线技术来从网站、服务器或其它远程源发送软件,则上述同轴线缆、光纤线缆、双绞线、DSL或诸如红外线、无线电和微波的无线技术均包括在介质的定义。如这里所使用的,磁盘和光盘包括压缩盘(CD)、激光盘、光盘、数字多功能盘(DVD)、软盘、蓝光盘,其中磁盘通常磁性地再现数据,而光盘利用激光光学地再现数据。上述内容的组合也应当包括在计算机可读介质的范围内。In one or more exemplary designs, functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example and not limitation, the computer readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage device, magnetic disk storage device or other magnetic storage device, or may be used to carry or store instructions in Any other medium that can be accessed by a general purpose or special purpose computer or a general purpose or special purpose processor, and the required program code or data structure. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial Cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers . Combinations of the above should also be included within the scope of computer-readable media.

以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。The above are the exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications can be made without departing from the scope of the disclosed embodiments of the present invention defined in the claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in an individual form, they may also be understood as a plurality unless explicitly limited to a singular number.

应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that as used herein, the singular form "a" and "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.

上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments disclosed in the above-mentioned embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above-mentioned embodiments can be completed by hardware, or can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned The storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like.

所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that: the discussion of any of the above embodiments is exemplary only, and is not intended to imply that the disclosed scope (including claims) of the embodiments of the present invention is limited to these examples; under the idea of the embodiments of the present invention , the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in details for the sake of brevity. Therefore, within the spirit and principle of the embodiments of the present invention, any omissions, modifications, equivalent replacements, improvements, etc., shall be included in the protection scope of the embodiments of the present invention.

Claims (20)

1.一种多量子业务转化及仿真调度的方法,其特征在于,包括以下步骤:1. A method for multi-quantum business conversion and simulation scheduling, characterized in that, comprising the following steps: 通过云数据中心采集各个量子系统单元的数据,并基于采集到的数据构建量子业务系统模拟仿真环境;Collect the data of each quantum system unit through the cloud data center, and build a quantum business system simulation environment based on the collected data; 设计量子业务系统调度员决策模型;Design the decision-making model of the dispatcher of the quantum business system; 获取量子业务系统调度员执行决策的数据,并基于获取到的执行决策的数据在模拟仿真环境中训练量子业务系统调度员决策模型;Obtain the decision-making data of the dispatcher of the quantum business system, and train the decision-making model of the dispatcher of the quantum business system in a simulation environment based on the obtained data of the decision-making execution; 使用训练后的量子业务系统调度员决策模型辅助量子业务系统调度员执行决策。Use the trained quantum business system dispatcher decision-making model to assist the quantum business system dispatcher in making decisions. 2.根据权利要求1所述的方法,其特征在于,通过云数据中心采集各个量子系统单元的数据,并基于采集到的数据构建量子业务系统模拟仿真环境包括:2. The method according to claim 1, characterized in that, collecting the data of each quantum system unit through the cloud data center, and constructing a quantum business system simulation environment based on the collected data includes: 采集各个量子系统单元运行的数据,其中,运行的数据包括各个量子系统单元的实时状态数据、运行日志、调度计划、故障数据以及调度员调度执行的数据;Collect the operation data of each quantum system unit, wherein the operation data includes the real-time status data, operation log, scheduling plan, fault data and dispatcher scheduling execution data of each quantum system unit; 基于采集的数据并利用数字孪生技术构建量子业务系统模拟仿真环境。Based on the collected data and using digital twin technology to build a quantum business system simulation environment. 3.根据权利要求1所述的方法,其特征在于,获取量子业务系统调度员执行决策的数据,并基于获取到的执行决策的数据在模拟仿真环境中训练量子业务系统调度员决策模型包括:3. The method according to claim 1, characterized in that, obtaining the data of the execution decision of the quantum business system dispatcher, and training the decision model of the quantum business system dispatcher in the simulated simulation environment based on the data of the execution decision obtained includes: 获取量子业务系统调度员执行决策的数据;Obtain the data of the decision-making of the dispatcher of the quantum business system; 根据量子业务系统调度员的实际操作,并结合量子业务系统的状态环境构建量子业务系统调度员调度操作指令执行序列;According to the actual operation of the quantum business system dispatcher, combined with the state environment of the quantum business system, the quantum business system dispatcher dispatches the operation instruction execution sequence; 根据当前量子业务系统计划、各个量子系统单元运行状态以及事故异常实践情况在模拟仿真环境中确定下一步执行调度操作;According to the current quantum business system plan, the operating status of each quantum system unit and the practice of abnormal accidents, determine the next step to execute the scheduling operation in the simulation environment; 根据量子业务系统调度员的调度操作以及实际执行效果,结合在模拟仿真环境中确定的调度操作设定量子业务系统模拟仿真环境的奖励函数;According to the scheduling operation of the dispatcher of the quantum business system and the actual execution effect, combined with the scheduling operation determined in the simulation environment, the reward function of the simulation environment of the quantum business system is set; 基于奖励函数并采用A3C算法训练量子业务系统调度员决策模型。Based on the reward function and using the A3C algorithm to train the decision-making model of the quantum business system dispatcher. 4.根据权利要求3所述的方法,其特征在于,基于奖励函数并采用A3C算法训练量子业务系统调度员决策模型包括:4. method according to claim 3, is characterized in that, based on reward function and adopts A3C algorithm to train quantum service system dispatcher's decision-making model to comprise: 设定worker线程数量、全局共享迭代次数、全局最大迭代次数、状态特征维度及操作指令集的全局参数,设定全局模型公共神经网络,设置模拟仿真环境初始化状态;Set the number of worker threads, the number of global shared iterations, the global maximum number of iterations, the state feature dimension and the global parameters of the operation instruction set, set the global model public neural network, and set the initialization state of the simulation environment; 初始化量子业务系统调度员决策模型;Initialize the decision-making model of the quantum business system dispatcher; 使每个worker线程采用全局模型公共神经网络独立与模拟仿真环境进行交互,执行调度操作获得反馈后更新本地全局模型公共神经网络的梯度,更新全局模型公共神经网络的模型参数;Make each worker thread use the global model public neural network to independently interact with the simulation environment, perform scheduling operations to obtain feedback and update the gradient of the local global model public neural network, and update the model parameters of the global model public neural network; 循环执行上一个步骤直至量子业务系统调度员决策模型收敛。Repeat the previous step until the quantum business system dispatcher decision model converges. 5.根据权利要求4所述的方法,其特征在于,全局模型公共神经网络包括Actor网络和Critic 网络。5. method according to claim 4, is characterized in that, global model public neural network comprises Actor network and Critic network. 6.根据权利要求1所述的方法,其特征在于,使用训练后的量子业务系统调度员决策模型辅助量子业务系统调度员执行决策包括:6. The method according to claim 1, wherein, using the trained quantum business system dispatcher decision-making model to assist the quantum business system dispatcher to perform decision-making includes: 实时采集当前量子业务系统的实际运行数据,并实时更新到模拟仿真环境中;Collect the actual operating data of the current quantum business system in real time and update it to the simulation environment in real time; 使用训练后的量子业务系统调度员决策模型根据当前实际状况输出下一步调度操作;Use the trained quantum business system dispatcher decision-making model to output the next step of dispatching operation according to the current actual situation; 记录当前模拟仿真环境状态和量子业务系统调度员决策模型输出的下一步调度操作,并反馈更新模拟仿真环境;Record the current state of the simulation environment and the next scheduling operation output by the dispatcher's decision model of the quantum business system, and feedback and update the simulation environment; 设定时间段,重复执行上述步骤以形成量子业务系统调度员推荐操作序列,使用推荐操作序列辅助量子业务系统调度员执行决策。Set a time period, repeat the above steps to form the quantum business system scheduler's recommended operation sequence, and use the recommended operation sequence to assist the quantum business system scheduler in making decisions. 7.根据权利要求6所述的方法,其特征在于,使用推荐操作序列辅助量子业务系统调度员执行决策包括:7. The method according to claim 6, characterized in that, using the recommended operation sequence to assist the quantum business system dispatcher to execute the decision comprises: 量子业务系统调度员参考推荐操作序列并结合实际状况进行调度操作;The dispatcher of the quantum business system refers to the recommended operation sequence and performs scheduling operations in combination with the actual situation; 调度操作后获取实际操作结果,并更新当前量子业务系统的实际运行数据,并实时更新到模拟仿真环境中。After the operation is scheduled, the actual operation results are obtained, and the actual operation data of the current quantum business system is updated, and updated in the simulation environment in real time. 8.根据权利要求1所述的方法,其特征在于,还包括:8. The method of claim 1, further comprising: 根据每一位量子业务系统调度员的实际操作优化量子业务系统调度员决策模型。Optimize the decision-making model of the quantum business system dispatcher according to the actual operation of each quantum business system dispatcher. 9.根据权利要求8所述的方法,其特征在于,根据每一位量子业务系统调度员的实际操作优化量子业务系统调度员决策模型包括:9. The method according to claim 8, characterized in that, optimizing the decision-making model of the quantum business system dispatcher according to the actual operation of each quantum business system dispatcher comprises: 获取每一位量子业务系统调度员的实际操作的数据;Obtain the actual operation data of each quantum business system dispatcher; 在模拟仿真环境中使用实际操作的数据训练量子业务系统调度员决策模型;Use the actual operation data to train the decision-making model of the quantum business system dispatcher in the simulation environment; 使用量子业务系统调度员决策模型在模拟仿真环境中模拟量子业务系统运行和调度;Use the quantum business system dispatcher decision model to simulate the operation and scheduling of the quantum business system in a simulation environment; 将量子业务系统调度员决策模型的调度结果与最佳调度指令进行对比;Compare the scheduling results of the quantum business system dispatcher decision-making model with the optimal scheduling instructions; 根据对比结果优化量子业务系统调度员决策模型的调度策略。According to the comparison results, the dispatching strategy of the dispatcher decision model of the quantum business system is optimized. 10.根据权利要求9所述的方法,其特征在于,还包括:10. The method of claim 9, further comprising: 将量子业务系统调度员决策模型的调度操作与最佳调度指令进行对比;Compare the dispatching operation of the dispatcher decision model of the quantum business system with the optimal dispatching instruction; 根据对比结果优化量子业务系统调度员决策模型的调度策略。According to the comparison results, the dispatching strategy of the dispatcher decision model of the quantum business system is optimized. 11.根据权利要求1所述的方法,其特征在于,通过云数据中心采集各个量子系统单元的数据包括:11. The method according to claim 1, wherein collecting the data of each quantum system unit through the cloud data center comprises: 通过云数据中心采集超导量子系统、核自旋量子系统、光学腔量子系统和离子井量子系统的数据。The data of superconducting quantum system, nuclear spin quantum system, optical cavity quantum system and ion well quantum system are collected through the cloud data center. 12.根据权利要求1所述的方法,其特征在于,所述云数据中心是由各个量子系统单元的实际量子业务系统通过量子业务适配器转换为云中心能处理的业务。12. The method according to claim 1, wherein the cloud data center is converted from the actual quantum business system of each quantum system unit into a business that can be processed by the cloud center through a quantum business adapter. 13.根据权利要求1所述的方法,其特征在于,还包括:13. The method of claim 1, further comprising: 在云数据中心中创建微服务,以将不同的量子业务处理类封装在云数据中心适配接口中。Create microservices in the cloud data center to encapsulate different quantum business processing classes in the cloud data center adaptation interface. 14.根据权利要求13所述的方法,其特征在于,在云数据中心中创建微服务包括:14. The method according to claim 13, wherein creating microservices in the cloud data center comprises: 获取微服务创建请求,其中微服务创建请求中包括创建信息和目标量子业务;Obtain a microservice creation request, where the microservice creation request includes creation information and target quantum business; 根据处理类和量子业务的对应关系查找目标量子业务对应的目标处理类;Find the target processing class corresponding to the target quantum business according to the corresponding relationship between the processing class and the quantum business; 利用目标处理类对创建信息进行部署以在目标量子业务上建立微服务的实例。Use the target processing class to deploy the creation information to create an instance of the microservice on the target quantum business. 15.根据权利要求14所述的方法,其特征在于,还包括:15. The method of claim 14, further comprising: 响应于接收到用户在云数据中心中输入的微服务创建请求,获取创建请求的创建信息和目标量子业务;In response to receiving the microservice creation request input by the user in the cloud data center, obtain the creation information of the creation request and the target quantum business; 基于目标量子业务在云数据中心中调用相应的处理类建立微服务的实例。Based on the target quantum business, call the corresponding processing class in the cloud data center to establish a microservice instance. 16.根据权利要求14所述的方法,其特征在于,在云数据中心中创建微服务包括:16. The method according to claim 14, wherein creating microservices in the cloud data center comprises: 获取各种类型量子计算机对应的元数据和服务类型实例;Obtain metadata and service type instances corresponding to various types of quantum computers; 对服务类型实例进行编排以构建服务类型实例的软件环境;orchestrating service type instances to build a software environment for service type instances; 根据元数据对相应的服务类型实例进行参数的配置以得到各个量子业务的处理类。Configure the parameters of the corresponding service type instance according to the metadata to obtain the processing class of each quantum business. 17.根据权利要求16所述的方法,其特征在于,根据处理类和量子业务的对应关系查找目标量子业务对应的目标处理类包括:17. The method according to claim 16, wherein searching for the target processing class corresponding to the target quantum business according to the corresponding relationship between the processing class and the quantum business includes: 判断处理类和量子业务的对应关系中是否记录有目标量子业务;Judging whether the target quantum business is recorded in the corresponding relationship between the processing class and the quantum business; 响应于记录有目标量子业务,将目标量子业务对应的处理类作为目标处理类;In response to recording the target quantum service, use the processing class corresponding to the target quantum service as the target processing class; 响应于没有记录目标量子业务,调用预先设定的通用处理类作为目标处理类。In response to no target quantum service being recorded, a pre-set general processing class is invoked as the target processing class. 18.一种多量子业务转化及仿真调度的装置,其特征在于,所述装置包括:18. A device for multi-quantum service conversion and simulation scheduling, characterized in that the device includes: 构建模块,所述构建模块配置为通过云数据中心采集各个量子系统单元的数据,并基于采集到的数据构建量子业务系统模拟仿真环境;A building module, the building module is configured to collect the data of each quantum system unit through the cloud data center, and build a quantum business system simulation environment based on the collected data; 设计模块,所述设计模块配置为设计量子业务系统调度员决策模型;A design module, the design module is configured to design a quantum business system dispatcher decision model; 训练模块,所述训练模块配置为获取量子业务系统调度员执行决策的数据,并基于获取到的执行决策的数据在模拟仿真环境中训练量子业务系统调度员决策模型;A training module, the training module is configured to obtain the data of the decision-making execution of the quantum business system dispatcher, and train the decision-making model of the dispatcher of the quantum business system in a simulation environment based on the obtained data of the execution decision-making; 执行模块,所述执行模块配置为使用训练后的量子业务系统调度员决策模型辅助量子业务系统调度员执行决策。An execution module configured to use the trained quantum business system dispatcher decision model to assist the quantum business system dispatcher to execute decisions. 19.一种计算机设备,其特征在于,包括:19. A computer device, comprising: 至少一个处理器;以及at least one processor; and 存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现权利要求1-17任意一项所述方法的步骤。A memory, the memory stores computer instructions operable on the processor, and when the instructions are executed by the processor, the steps of the method according to any one of claims 1-17 are implemented. 20.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-17任意一项所述方法的步骤。20. A computer-readable storage medium, the computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1-17 are implemented.
CN202310005100.2A 2023-01-04 2023-01-04 A multi-quantum service conversion and simulation scheduling method, device, equipment and medium Pending CN115907022A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310005100.2A CN115907022A (en) 2023-01-04 2023-01-04 A multi-quantum service conversion and simulation scheduling method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310005100.2A CN115907022A (en) 2023-01-04 2023-01-04 A multi-quantum service conversion and simulation scheduling method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115907022A true CN115907022A (en) 2023-04-04

Family

ID=86476379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310005100.2A Pending CN115907022A (en) 2023-01-04 2023-01-04 A multi-quantum service conversion and simulation scheduling method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115907022A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116151137A (en) * 2023-04-24 2023-05-23 之江实验室 Simulation system, method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157422A (en) * 2021-04-29 2021-07-23 清华大学 Cloud data center cluster resource scheduling method and device based on deep reinforcement learning
CN113886080A (en) * 2021-09-29 2022-01-04 苏州浪潮智能科技有限公司 High-performance cluster task scheduling method, device, electronic device and storage medium
CN114139354A (en) * 2021-11-12 2022-03-04 山东浪潮科学研究院有限公司 Power system simulation scheduling method and system based on reinforcement learning

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157422A (en) * 2021-04-29 2021-07-23 清华大学 Cloud data center cluster resource scheduling method and device based on deep reinforcement learning
CN113886080A (en) * 2021-09-29 2022-01-04 苏州浪潮智能科技有限公司 High-performance cluster task scheduling method, device, electronic device and storage medium
CN114139354A (en) * 2021-11-12 2022-03-04 山东浪潮科学研究院有限公司 Power system simulation scheduling method and system based on reinforcement learning

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116151137A (en) * 2023-04-24 2023-05-23 之江实验室 Simulation system, method and device

Similar Documents

Publication Publication Date Title
CN112418438B (en) Container-based machine learning procedural training task execution method and system
US11120299B2 (en) Installation and operation of different processes of an AI engine adapted to different configurations of hardware located on-premises and in hybrid environments
CN114442510A (en) Digital twin closed-loop control method, system, computer equipment and storage medium
TWI866012B (en) Computer-implemented method, computer program product, and computer system
CN112753016B (en) Method and device for managing computing resources in data preprocessing stage in neural network
US20240090154A1 (en) Distributed building automation controllers
CN114422322B (en) Alarm compression method, device, equipment and storage medium
CN115934344A (en) Heterogeneous distributed reinforcement learning calculation method, system and storage medium
CN115394140A (en) Intelligent game training and simulating device for confrontation of complex equipment system
Banjongkan et al. A study of job failure prediction at job submit-state and job start-state in high-performance computing system: Using decision tree algorithms [j]
CN116610082B (en) RPA job workflow redundancy scheduling method and system based on deep reinforcement learning
CN118250243A (en) Computing-network integrated resource scheduling system, method, electronic device and storage medium
CN117992231A (en) Multi-agent task processing method, device, computer equipment and storage medium
CN115907022A (en) A multi-quantum service conversion and simulation scheduling method, device, equipment and medium
CN118331199A (en) Multi-task collaborative processing method based on artificial intelligence agent and event chain
Ferrucci et al. A framework for genetic algorithms based on hadoop
CN117575181A (en) Dispatching and production scheduling simulation method and device thereof
CN114239406A (en) Financial process mining method based on reinforcement learning and related device
CN118709384A (en) Cross-domain equipment intelligent operation and maintenance scenario modeling method, device, equipment and storage medium
Kinneer et al. Building reusable repertoires for stochastic self-* planners
WO2024092244A2 (en) Composable self-modeling cyber-physical systems
Andrzejak et al. On adaptability in grid systems
CN113222134B (en) Brain-like computing system, method and computer readable storage medium
Nielsen Application of artificial intelligence techniques to simulation
Ge et al. Capability-based project scheduling with genetic algorithms

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20230404

RJ01 Rejection of invention patent application after publication