CN112488317B - Simulation method and device in quantum control, classical computer and storage medium - Google Patents

Simulation method and device in quantum control, classical computer and storage medium Download PDF

Info

Publication number
CN112488317B
CN112488317B CN202011358498.0A CN202011358498A CN112488317B CN 112488317 B CN112488317 B CN 112488317B CN 202011358498 A CN202011358498 A CN 202011358498A CN 112488317 B CN112488317 B CN 112488317B
Authority
CN
China
Prior art keywords
pulse
target
step length
time
quantum
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.)
Active
Application number
CN202011358498.0A
Other languages
Chinese (zh)
Other versions
CN112488317A (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011358498.0A priority Critical patent/CN112488317B/en
Publication of CN112488317A publication Critical patent/CN112488317A/en
Priority to JP2021151966A priority patent/JP7223089B2/en
Application granted granted Critical
Publication of CN112488317B publication Critical patent/CN112488317B/en
Priority to US17/503,933 priority patent/US20220044143A1/en
Priority to AU2021258068A priority patent/AU2021258068B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • G06N10/20Models of quantum computing, e.g. quantum circuits or universal quantum computers
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/36Circuit design at the analogue level
    • G06F30/367Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • G06N10/40Physical realisations or architectures of quantum processors or components for manipulating qubits, e.g. qubit coupling or qubit control

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Artificial Intelligence (AREA)
  • Computational Mathematics (AREA)
  • Condensed Matter Physics & Semiconductors (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Analysis (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Geometry (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Superconductor Devices And Manufacturing Methods Thereof (AREA)

Abstract

本申请公开了量子控制中的仿真方法,涉及量子控制领域。具体实现方案为:获取量子系统所对应的硬件参数,以及所述量子系统所需实现的目标量子门;获取基于离散的时间切片所表征的脉冲函数;确定出所述脉冲函数中离散的所述时间切片对应的目标步长,以根据所述时间切片对应的目标步长和所述脉冲函数得到所述目标步长对应时长下的脉冲参数值;基于得到的所述目标步长对应时长下的脉冲参数值,以及所述量子系统的硬件参数,得到所述目标步长对应时长下的仿真量子门,直至得到预设脉冲时长下的目标仿真量子门,如此,快速得到与目标量子门之间的误差满足预设规则的目标仿真量子门。

Figure 202011358498

The present application discloses a simulation method in quantum control, and relates to the field of quantum control. The specific implementation scheme is as follows: obtaining the hardware parameters corresponding to the quantum system and the target quantum gate to be realized by the quantum system; obtaining the pulse function represented by discrete time slices; determining the discrete pulse function in the pulse function The target step size corresponding to the time slice, to obtain the pulse parameter value under the time length corresponding to the target step size according to the target step size corresponding to the time slice and the pulse function; based on the obtained target step size corresponding to the time length under the The pulse parameter value, and the hardware parameters of the quantum system, obtain the simulated quantum gate under the corresponding time length of the target step, until the target simulated quantum gate under the preset pulse duration is obtained, in this way, the distance between the target quantum gate and the target quantum gate is quickly obtained. The error satisfies the pre-set rules of the target simulation quantum gate.

Figure 202011358498

Description

量子控制中的仿真方法、装置、经典计算机及存储介质Simulation method, device, classical computer and storage medium in quantum control

技术领域technical field

本申请涉及量子计算领域,尤其涉及量子控制领域。The present application relates to the field of quantum computing, in particular to the field of quantum control.

背景技术Background technique

量子控制是连接量子软硬件的桥梁,也是量子计算中必不可少的一环。在量子计算中,除了关心量子硬件的性能(包括量子比特的质量和数量)外,还需有效地控制量子硬件,从而使得量子算法和量子信息处理方案得以高效地被执行。具体而言,需要将量子软件层面的量子逻辑门(也即量子门)编译为量子硬件能够识别的物理脉冲信号。在这个过程中,编译实现的量子门的保真度和速度都至关重要。因此,这意味着,需要快速实现高精度的量子门的量子控制技术,而如何快速和精确的实现量子仿真成为量子控制技术的核心。Quantum control is a bridge connecting quantum software and hardware, and an essential part of quantum computing. In quantum computing, in addition to the performance of quantum hardware (including the quality and quantity of qubits), it is also necessary to effectively control the quantum hardware, so that quantum algorithms and quantum information processing schemes can be efficiently executed. Specifically, quantum logic gates (ie, quantum gates) at the quantum software level need to be compiled into physical pulse signals that can be recognized by quantum hardware. In this process, the fidelity and speed of the compiled quantum gates are critical. Therefore, this means that it is necessary to quickly realize the quantum control technology of high-precision quantum gates, and how to realize quantum simulation quickly and accurately has become the core of quantum control technology.

发明内容SUMMARY OF THE INVENTION

本申请提供了一种量子控制中的仿真方法、装置、经典计算机以及存储介质。The present application provides a simulation method, device, classical computer and storage medium in quantum control.

根据本申请的一方面,提供了一种量子控制中的仿真方法,包括:According to an aspect of the present application, a simulation method in quantum control is provided, comprising:

获取量子系统所对应的硬件参数,以及所述量子系统所需实现的目标量子门;Obtain the hardware parameters corresponding to the quantum system and the target quantum gate that the quantum system needs to implement;

获取基于离散的时间切片所表征的脉冲函数,其中,各时间切片的起始时间与终止时间的时间段内的脉冲参数值相同;Obtain the pulse function represented by discrete time slices, wherein the start time of each time slice is the same as the pulse parameter value in the time period of the end time;

确定出所述脉冲函数中离散的所述时间切片对应的目标步长,以根据所述时间切片对应的目标步长和所述脉冲函数得到所述目标步长对应时长下的脉冲参数值;Determine the target step size corresponding to the discrete time slices in the pulse function, so as to obtain the pulse parameter value under the time length corresponding to the target step size according to the target step size corresponding to the time slice and the pulse function;

基于得到的所述目标步长对应时长下的脉冲参数值,以及所述量子系统的硬件参数,得到所述目标步长对应时长下的仿真量子门,直至得到预设脉冲时长下的目标仿真量子门,其中,所述预设脉冲时长下的所述目标仿真量子门与所述目标量子门的差距满足预设规则。Based on the obtained pulse parameter values of the duration corresponding to the target step size and the hardware parameters of the quantum system, the simulated quantum gate of the duration corresponding to the target step size is obtained, until the target simulated quantum gate of the preset pulse duration is obtained gate, wherein the gap between the target simulation quantum gate and the target quantum gate under the preset pulse duration satisfies a preset rule.

根据本申请的另一方面,提供了一种量子控制中的仿真装置,包括:According to another aspect of the present application, a simulation device in quantum control is provided, comprising:

数据获取单元,用于获取量子系统所对应的硬件参数,以及所述量子系统所需实现的目标量子门;a data acquisition unit for acquiring hardware parameters corresponding to the quantum system and target quantum gates that the quantum system needs to implement;

函数获取单元,用于获取基于离散的时间切片所表征的脉冲函数,其中,各时间切片的起始时间与终止时间的时间段内的脉冲参数值相同;a function acquisition unit, configured to acquire a pulse function represented by discrete time slices, wherein the start time of each time slice is the same as the pulse parameter value in the time period of the end time;

步长确定单元,用于确定出所述脉冲函数中离散的所述时间切片对应的目标步长;a step size determination unit, configured to determine the target step size corresponding to the discrete time slices in the impulse function;

脉冲参数值确定单元,用于根据所述时间切片对应的目标步长和所述脉冲函数得到所述目标步长对应时长下的脉冲参数值;a pulse parameter value determination unit, configured to obtain the pulse parameter value under the time length corresponding to the target step length according to the target step size corresponding to the time slice and the pulse function;

仿真单元,用于基于得到的所述目标步长对应时长下的脉冲参数值,以及所述量子系统的硬件参数,得到所述目标步长对应时长下的仿真量子门,直至得到预设脉冲时长下的目标仿真量子门,其中,所述预设脉冲时长下的所述目标仿真量子门与所述目标量子门的差距满足预设规则。The simulation unit is used for obtaining the simulated quantum gate under the time length corresponding to the target step size based on the obtained pulse parameter values corresponding to the target step size and the hardware parameters of the quantum system, until the preset pulse length is obtained The target simulation quantum gate under the preset pulse duration, wherein the gap between the target simulation quantum gate and the target quantum gate under the preset pulse duration satisfies a preset rule.

根据本申请的再一方面,提供了一种经典计算机,包括:According to yet another aspect of the present application, a classical computer is provided, comprising:

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

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行以上所述的方法。The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method described above.

根据本申请的再一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使计算机执行以上所述的方法。According to yet another aspect of the present application, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the above-described method.

根据本申请的再一方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现如上所述的方法。According to yet another aspect of the present application, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method as described above.

根据本申请的技术能够快速和精准的实现量子仿真,并得到目标仿真量子门,该目标仿真量子门即为计划实现的目标量子门,如此,为量子门更高效的实现奠定了基础。According to the technology of the present application, quantum simulation can be realized quickly and accurately, and a target simulation quantum gate can be obtained, and the target simulation quantum gate is the target quantum gate planned to be realized, thus laying a foundation for a more efficient realization of the quantum gate.

应当理解,本部分所描述的内容并非旨在标识本申请的实施例的关键或重要特征,也不用于限制本申请的范围。本申请的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or critical features of the embodiments of the application, nor is it intended to limit the scope of the application. Other features of the present application will become readily understood from the following description.

附图说明Description of drawings

附图用于更好地理解本方案,不构成对本申请的限定。其中:The accompanying drawings are used for better understanding of the present solution, and do not constitute a limitation to the present application. in:

图1是根据本申请实施例量子控制中的仿真方法的实现流程示意图;FIG. 1 is a schematic flowchart of the implementation of a simulation method in quantum control according to an embodiment of the present application;

图2是根据本申请实施例在一具体场景中离散的时间切片示意图一;2 is a schematic diagram 1 of discrete time slices in a specific scene according to an embodiment of the present application;

图3是根据本申请实施例在一具体场景中离散的时间切片示意图二;3 is a schematic diagram 2 of discrete time slices in a specific scene according to an embodiment of the present application;

图4是根据本申请实施例量子控制中的仿真方法在一具体示例中的流程示意图;FIG. 4 is a schematic flowchart in a specific example of a simulation method in quantum control according to an embodiment of the present application;

图5是根据本申请实施例量子控制中的仿真装置的结构示意图;5 is a schematic structural diagram of a simulation device in quantum control according to an embodiment of the present application;

图6是根据本申请实施例的量子控制中的仿真方法的经典计算机的框图。FIG. 6 is a block diagram of a classical computer of a simulation method in quantum control according to an embodiment of the present application.

具体实施方式Detailed ways

以下结合附图对本申请的示范性实施例做出说明,其中包括本申请实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本申请的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present application are described below with reference to the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

本发明实施例提供一种量子控制中的仿真方法,具体地,图1是根据本申请实施例量子控制中的仿真方法的实现流程示意图,如图1所示,所述包括:An embodiment of the present invention provides a simulation method in quantum control. Specifically, FIG. 1 is a schematic diagram of an implementation flowchart of a simulation method in quantum control according to an embodiment of the present application. As shown in FIG. 1 , the process includes:

步骤S101:获取量子系统所对应的硬件参数,以及所述量子系统所需实现的目标量子门。Step S101: Obtain hardware parameters corresponding to the quantum system and target quantum gates that the quantum system needs to implement.

步骤S102:获取基于离散的时间切片所表征的脉冲函数,其中,各时间切片的起始时间与终止时间的时间段内的脉冲参数值相同。Step S102: Acquire a pulse function represented by discrete time slices, wherein the start time of each time slice is the same as the pulse parameter value in the time period of the end time.

步骤S103:确定出所述脉冲函数中离散的所述时间切片对应的目标步长,以根据所述时间切片对应的目标步长和所述脉冲函数得到所述目标步长对应时长下的脉冲参数值。Step S103: Determine the target step size corresponding to the discrete time slice in the pulse function, so as to obtain the pulse parameter under the time length corresponding to the target step size according to the target step size corresponding to the time slice and the pulse function value.

步骤S104:基于得到的所述目标步长对应时长下的脉冲参数值,以及所述量子系统的硬件参数,得到所述目标步长对应时长下的仿真量子门,直至得到预设脉冲时长下的目标仿真量子门,其中,所述预设脉冲时长下的所述目标仿真量子门与所述目标量子门的差距满足预设规则。Step S104: Based on the obtained pulse parameter values under the corresponding duration of the target step, and the hardware parameters of the quantum system, obtain a simulated quantum gate under the duration corresponding to the target step, until the preset pulse duration is obtained. A target simulation quantum gate, wherein the gap between the target simulation quantum gate and the target quantum gate under the preset pulse duration satisfies a preset rule.

这样,由于本申请方案能够对时间进行切片处理,所以,能够快速且精准的实现量子仿真,且该仿真过程中得到的目标仿真量子门即可认为是计划实现的目标量子门,如此,为量子门更高效的实现奠定了基础。In this way, since the solution of the present application can perform slicing processing on time, quantum simulation can be realized quickly and accurately, and the target simulation quantum gate obtained in the simulation process can be regarded as the target quantum gate that is planned to be realized. The foundation is laid for a more efficient implementation of gates.

实际应用中,所述量子系统为量子硬件所形成的系统,所述硬件参数为量子硬件对应的参数,比如,对于超导量子电路而言,硬件参数可以具体为超导量子比特的频率、失谐性强度等参数。In practical applications, the quantum system is a system formed by quantum hardware, and the hardware parameters are parameters corresponding to the quantum hardware. Harmonic strength and other parameters.

在一示例中,可以采用如下方式,对脉冲函数的时间信息进行离散化处理,进而得到基于离散的时间切片所表征的脉冲函数,具体地,将脉冲函数ck(t)近似划分为时间离散的切片序列,其中,第i(i≥1)个切片的起始时间为ti-1,结束时间为ti,时间跨度(也即步长)为Δti=ti-ti-1,第i(i≥1)个切片的高度(也即脉冲参数值)恒定为

Figure GDA0002987084170000041
In an example, the following method can be used to discretize the time information of the impulse function, and then obtain the impulse function represented by discrete time slices. Specifically, the impulse function c k (t) is approximately divided into time discrete The slice sequence of , where the starting time of the i (i≥1) slice is t i-1 , the end time is t i , and the time span (ie step size) is Δt i =t i -t i-1 , the height of the ith (i≥1) slice (that is, the pulse parameter value) is constant as
Figure GDA0002987084170000041

在本申请方案的一具体示例中,各所述时间切片对应的目标步长相同或者不相同。举例来说,在对脉冲函数的时间信息进行离散化处理后,每一个时间切片的时间跨度(也即目标步长)一样,如图2所示的离散化处理结果,这里,每个时间切片对应的步长相同,每个时间切片内脉冲的高度(脉冲参数值)是恒定不变的。当然,如图3所示,不同时间切片的时间跨度(也即目标步长)不同,或者说无需相同,如图3所示的离散化处理结果,这里,每个时间切片对应的步长不相同,但每个时间切片内脉冲的高度(脉冲参数值)是恒定不变的。如此,实现动态确定目标步长的目的,进而为简化计算流程、提高计算效率奠定了基础,同时也为后续快速且精准地仿真得到目标量子门奠定了基础。而且,由于目标步长可以相同也可以不相同,所以,可以兼顾误差(目标仿真量子门与目标量子门之间的差距)和计算效率,如此,提升了本申请方案的灵活性。In a specific example of the solution of the present application, the target step size corresponding to each of the time slices is the same or different. For example, after discretizing the time information of the impulse function, the time span (that is, the target step size) of each time slice is the same, as shown in the discretization processing result shown in Figure 2. Here, each time slice The corresponding step size is the same, and the height of the pulse (pulse parameter value) in each time slice is constant. Of course, as shown in Figure 3, the time spans (that is, the target step size) of different time slices are different, or need not be the same. The same, but the height of the pulse (pulse parameter value) within each time slice is constant. In this way, the purpose of dynamically determining the target step size is achieved, which lays a foundation for simplifying the calculation process and improving the calculation efficiency, and also lays a foundation for the subsequent rapid and accurate simulation of the target quantum gate. Moreover, since the target step size can be the same or different, the error (the gap between the target simulation quantum gate and the target quantum gate) and the computational efficiency can be taken into account, thus improving the flexibility of the solution of the present application.

在本申请方案的一具体示例中,可以采用如下方式来得到目标步长,具体地,上述确定出所述脉冲函数中离散的所述时间切片对应的目标步长,包括:获取第一初始化步长(比如,为预设值);基于所述第一初始化步长以及所述脉冲函数计算得到相邻时刻脉冲参数值之间的差值;在确定出所述相邻时刻脉冲参数值之间的差值小于预设的脉冲阈值,以及所述第一初始化步长对应的时段未超出所述预设脉冲时长的情况下(也就是说,当前确定目标步长的时间段未超过预设脉冲时间的情况下),将所述第一初始化步长作为所述目标步长。举例来说,如图3所示,假设当前待确定目标步长的时段为(t1,t2)时段,且预设脉冲时间为tg,此时,只要(t1,t2)时段在tg内,比如,tg对应到图3中t3时刻,此时,t2在t3之前,即为(t1,t2)时段在tg内,此时,即可将所述第一初始化步长作为所述目标步长。否则,停止操作。In a specific example of the solution of the present application, the target step size can be obtained in the following manner. Specifically, the above-mentioned determining the target step size corresponding to the discrete time slices in the pulse function includes: obtaining a first initialization step length (for example, a preset value); based on the first initialization step size and the pulse function, the difference between the pulse parameter values at adjacent moments is obtained; after determining the pulse parameter values at the adjacent moments When the difference value is less than the preset pulse threshold, and the period corresponding to the first initialization step does not exceed the preset pulse duration (that is, the time period for which the target step is currently determined does not exceed the preset pulse duration) time), the first initialization step size is used as the target step size. For example, as shown in FIG. 3 , it is assumed that the current period of the target step size to be determined is the (t 1 , t 2 ) period, and the preset pulse time is t g , at this time, only the (t 1 , t 2 ) period is required Within t g , for example, t g corresponds to time t 3 in Figure 3. At this time, t 2 is before t 3 , that is, the (t 1 , t 2 ) period is within t g . At this time, all the The first initialization step size is used as the target step size. Otherwise, stop the operation.

如此,得到每个时间切片对应的目标步长,为简化计算流程奠定了基础,同时也为后续快速且精准地仿真得到目标量子门奠定了基础。In this way, the target step size corresponding to each time slice is obtained, which lays a foundation for simplifying the calculation process, and also lays a foundation for the subsequent rapid and accurate simulation of the target quantum gate.

在本申请方案的一具体示例中,可以采用如下方式来得到目标步长,具体地,上述确定出所述脉冲函数中离散的所述时间切片对应的目标步长,包括:获取第二初始化步长;基于所述第二初始化步长以及所述脉冲函数计算得到相邻时刻脉冲参数值之间的差值;在确定出所述相邻时刻脉冲参数值之间的差值大于等于预设的脉冲阈值的情况下,对所述第二初始化步长进行调整,直至调整后的相邻时刻脉冲参数值之间的差值小于所述脉冲阈值;在确定调整后的所述第二初始化步长对应的时段未超出所述预设脉冲时长的情况下,将相邻时刻脉冲参数值之间的差值小于所述脉冲阈值的调整后的所述第二初始化步长作为所述目标步长。In a specific example of the solution of the present application, the target step size can be obtained in the following manner. Specifically, the above-mentioned determining the target step size corresponding to the discrete time slices in the pulse function includes: obtaining a second initialization step The difference between the pulse parameter values at adjacent moments is calculated based on the second initialization step size and the pulse function; when it is determined that the difference between the pulse parameter values at the adjacent moments is greater than or equal to a preset value In the case of the pulse threshold, the second initialization step is adjusted until the difference between the adjusted pulse parameter values at adjacent moments is less than the pulse threshold; after determining the adjusted second initialization step Under the condition that the corresponding period does not exceed the preset pulse duration, the adjusted second initialization step size in which the difference between the pulse parameter values at adjacent moments is less than the pulse threshold value is used as the target step size.

类似于上述示例,该示例中给出了在所述相邻时刻脉冲参数值之间的差值大于等于预设的脉冲阈值的情况,此时,可以调整目标步长,比如,缩小目标步长,进而使得满足相邻时刻脉冲参数值之间的差值小于所述脉冲阈值的条件。如此,提升了一种动态确定步长的方案,如此,为简化计算流程奠定了基础,同时也为后续快速且精准地仿真得到目标量子门奠定了基础。Similar to the above example, this example shows the situation that the difference between the pulse parameter values at the adjacent moments is greater than or equal to the preset pulse threshold. In this case, the target step size can be adjusted, for example, the target step size can be reduced , so as to satisfy the condition that the difference between the pulse parameter values at adjacent moments is less than the pulse threshold. In this way, a scheme of dynamically determining the step size is improved, which lays a foundation for simplifying the calculation process, and also lays a foundation for the subsequent fast and accurate simulation to obtain the target quantum gate.

这里,值得注意的是,在实际应用中,第一初始化步长和第二初始化步长可以统一为预设设置的预设步长。Here, it is worth noting that, in practical applications, the first initialization step size and the second initialization step size may be unified as a preset preset step size set by default.

在本申请方案的一具体示例中,还可以采用如下方式得到时间演化算符的数据处理规则,进而基于该数据处理规则得到仿真量子门;具体地,在步骤S104之前,还包括:确定所述量子系统所对应的总哈密顿量,并得到时间演化算符与所述总哈密顿量之间的第一映射关系,比如,该第一映射关系可以具体为线性薛定谔方程;其中,所述总哈密顿量至少包含有脉冲哈密顿量,所述脉冲哈密顿量中包含有用于控制脉冲的与时间信息相关的所述脉冲函数;进一步地,基于离散的时间切片所表征的所述脉冲函数,对所述第一映射关系进行数学变换,确定出所述时间演化算符的数据处理规则;最后,在确定出数据处理规则后,上述基于得到的所述目标步长对应时长下的脉冲参数值,以及所述量子系统的硬件参数,得到所述目标步长对应时长下的仿真量子门,则具体包括:将得到的所述目标步长对应时长下的脉冲参数值以及所述量子系统的硬件参数,输入至所述数据处理规则中,得到目标步长对应时长下的仿真量子门。也就是说,实际应用中,在对脉冲函数的时间信息离散化处理后,可以基于离散的时间切片所表征的所述脉冲函数对总哈密顿量进行数学变化,进而得到一种数据处理规则,利用该数据处理规则即可基于脉冲参数值,以及量子系统的硬件参数得到仿真量子门。如此,实现量子仿真,并得到目标仿真量子门,该目标仿真量子门即为计划实现的目标量子门,如此,为量子门更高效的实现奠定了基础。In a specific example of the solution of the present application, the data processing rule of the time evolution operator can also be obtained in the following manner, and then a simulated quantum gate can be obtained based on the data processing rule; specifically, before step S104, the method further includes: determining the The total Hamiltonian corresponding to the quantum system is obtained, and the first mapping relationship between the time evolution operator and the total Hamiltonian is obtained. For example, the first mapping relationship can be specifically the linear Schrödinger equation; wherein, the total The Hamiltonian includes at least an impulse Hamiltonian, and the impulse Hamiltonian includes the impulse function related to time information used to control the impulse; further, based on the impulse function represented by discrete time slices, Mathematically transform the first mapping relationship to determine the data processing rule of the time evolution operator; finally, after the data processing rule is determined, the pulse parameter value based on the obtained target step corresponding to the duration , and the hardware parameters of the quantum system, to obtain the simulated quantum gate under the time length corresponding to the target step size, which specifically includes: the obtained pulse parameter value under the time length corresponding to the target step size and the hardware of the quantum system The parameters are input into the data processing rules, and the simulated quantum gate under the time length corresponding to the target step size is obtained. That is to say, in practical applications, after discretizing the time information of the impulse function, the total Hamiltonian can be mathematically changed based on the impulse function represented by the discrete time slice, and then a data processing rule can be obtained, Using the data processing rule, the simulated quantum gate can be obtained based on the pulse parameter value and the hardware parameters of the quantum system. In this way, quantum simulation is realized, and a target simulation quantum gate is obtained, and the target simulation quantum gate is the target quantum gate planned to be realized, thus laying a foundation for a more efficient realization of the quantum gate.

这样,由于本申请方案能够对时间进行切片处理,所以,能够快速且精准的实现量子仿真,且该仿真过程中得到的目标仿真量子门即可认为是计划实现的目标量子门,如此,为量子门更高效的实现奠定了基础。In this way, since the solution of the present application can perform slicing processing on time, quantum simulation can be realized quickly and accurately, and the target simulation quantum gate obtained in the simulation process can be regarded as the target quantum gate that is planned to be realized. The foundation is laid for a more efficient implementation of gates.

以下结合具体示例对本申请方案做进一步详细说明,具体地,本示例提出了一种用于量子控制、且基于常微分方程求解的量子仿真方法,也可称为基于动态步长的离散时间近似求解的量子仿真方法。本申请方案能够在用于控制量子门的脉冲函数的生成过程中根据实际所需求目标量子门,来动态调整计算系统演化过程中离散时间的步长,进而调整用于得到目标量子门的脉冲参数值,从而大大降低计算得到目标量子门的目标脉冲参数值的时间,且能够保证运算结果的精度。The solution of the present application will be described in further detail below with reference to specific examples. Specifically, this example proposes a quantum simulation method for quantum control and solving based on ordinary differential equations, which can also be called discrete-time approximate solution based on dynamic step size. method of quantum simulation. The solution of the present application can dynamically adjust the step size of discrete time in the evolution process of the computing system according to the actual required target quantum gate in the process of generating the pulse function used to control the quantum gate, and then adjust the pulse parameters used to obtain the target quantum gate Therefore, the time required to obtain the target pulse parameter value of the target quantum gate is greatly reduced, and the accuracy of the operation result can be guaranteed.

实际应用中,实验人员能够根据使用场景的不同,直接将本申请方案应用于实验,抑或基于本技术方案给出的脉冲函数再结合其它优化方案来进一步提高量子门保真度,本申请方案对此不作限制。In practical applications, the experimenter can directly apply the scheme of the present application to the experiment according to the different usage scenarios, or further improve the fidelity of the quantum gate based on the pulse function given by the technical scheme and combine with other optimization schemes. This is not limited.

下面从两个方面详细阐述本申请方案;第一部分,阐明本申请方案的核心思想和关键步骤;第二部分,着重展示本申请方案的效果和优势。具体地,The following is a detailed description of the solution of the present application from two aspects; the first part illustrates the core idea and key steps of the solution of the present application; the second part focuses on showing the effects and advantages of the solution of the present application. specifically,

第一部分,基于“动态步长的离散时间近似求解方法”对“Runge-Kutta”算法进行优化后得到时间演化算符的步骤,也即,结合动态步长的离散时间近似求解方法和Runge-Kutta算法得到时间演化算符,以及具体仿真流程。In the first part, the steps of obtaining the time evolution operator after optimizing the "Runge-Kutta" algorithm based on the "discrete-time approximate solution method of dynamic step size", that is, the discrete-time approximate solution method combining dynamic step size and Runge-Kutta The algorithm obtains the time evolution operator and the specific simulation process.

本申请方案提供了一种新的用于控制量子门的控制脉冲(也即脉冲函数)的生成方案,其核心是引入“动态步长的离散时间近似求解方法”(以下简称“动态步长法”)来对脉冲函数进行处理,以求解得到时间演化算符,该时间演化算符即为仿真过程中计算得到的仿真量子门,上述求解过程中,将脉冲函数的时间信息进行切片化处理,并能够动态确定出各时间切片所对应的目标步长,如此,为快速仿真得到目标仿真量子门提供了可能,该目标仿真量子门即为计划实现的目标量子门,如此,为量子门更高效的实现奠定了基础。该过程中,只需要确定希望实现的目标量子门以及量子硬件的相关参数,即可快速、稳定、准确地输出优化的所需施加的目标脉冲值。The solution of the present application provides a new generation solution for control pulses (that is, pulse functions) for controlling quantum gates. ”) to process the impulse function to obtain the time evolution operator, which is the simulated quantum gate calculated in the simulation process. In the above solution process, the time information of the impulse function is sliced, And the target step size corresponding to each time slice can be dynamically determined. In this way, it is possible to quickly simulate the target simulation quantum gate. The target simulation quantum gate is the target quantum gate that is planned to be realized. In this way, it is more efficient for the quantum gate. The realization laid the foundation. In this process, it is only necessary to determine the target quantum gate to be realized and the relevant parameters of the quantum hardware, and then the optimized target pulse value to be applied can be output quickly, stably and accurately.

更具体而言,本申请方案在脉冲函数的初始化处理过程中采用了一阶“动态步长法”和“Runge-Kutta”混合的方法来求解时间演化算符所满足的含时(即含有时间参数,下述简称含时)薛定谔方程,并进一步使用Nelder-Mead优化方法得到脉冲参数。More specifically, the solution of the present application adopts the first-order "dynamic step method" and "Runge-Kutta" hybrid method in the initialization process of the impulse function to solve the time-dependent (that is, the time-containing time) satisfied by the time evolution operator. parameters, hereinafter referred to as time-dependent) Schrodinger equation, and further use the Nelder-Mead optimization method to obtain the pulse parameters.

这里,需要说明的是,本示例提供的优化方法也可以选用其他优化算法,即Nelder-Mead优化方法仅作为范例,并非用于限制本申请方案。Here, it should be noted that other optimization algorithms may also be selected for the optimization method provided in this example, that is, the Nelder-Mead optimization method is only used as an example, and is not used to limit the solution of the present application.

进一步地,为了更清楚地阐述本申请方案,下述以超导单比特量子门的实现为例,来完整地阐述本申请方案的核心思想和关键步骤。有必要指出的是,本申请方案同时也支持多量子比特量子门以及其它量子系统,对此不作限制。Further, in order to illustrate the solution of the present application more clearly, the following takes the realization of a superconducting single-bit quantum gate as an example to fully illustrate the core idea and key steps of the solution of the present application. It is necessary to point out that the solution of the present application also supports multi-qubit quantum gates and other quantum systems, which is not limited.

本申请方案的核心思想包括:运用“动态步长法”方法求解量子系统(也即量子硬件所形成的系统)所满足的薛定谔方程,具体地:The core idea of the solution of the present application includes: using the "dynamic step method" method to solve the Schrödinger equation satisfied by a quantum system (that is, a system formed by quantum hardware), specifically:

给定一个量子系统的哈密顿量H(t),时间演化算符U(t)满足的动力学方程可以用一个线性薛定谔方程(即下面的(1)式)来描述:Given the Hamiltonian H(t) of a quantum system, the dynamic equation satisfied by the time evolution operator U(t) can be described by a linear Schrödinger equation (ie, equation (1) below):

Figure GDA0002987084170000081
Figure GDA0002987084170000081

其中i为虚数单位,

Figure GDA0002987084170000085
为普朗克常数。欲求解该含时微分方程,采用了“动态步长的离散时间近似求解方法”。以下详细介绍“动态步长的离散时间近似求解方法”,包括:where i is the imaginary unit,
Figure GDA0002987084170000085
is Planck's constant. To solve this time-dependent differential equation, a "discrete-time approximate solution method with dynamic steps" is used. The following details the "Discrete-Time Approximate Solution Method for Dynamic Steps", including:

在量子优化控制问题中,量子系统的哈密顿量可以表示为:In the quantum optimal control problem, the Hamiltonian of a quantum system can be expressed as:

Htotal(t)=Hdrift+Hctrl(t),(2)H total (t)=H drift +H ctrl (t),(2)

其中,Htotal(t)对应上述式(1)中的H(t),Hdrift是不含时的漂移哈密顿量,一般描述量子系统的硬件结构。Hctrl(t)是包含脉冲函数的哈密顿量,可以写为如下形式:Among them, H total (t) corresponds to H (t) in the above formula (1), and H drift is the drift Hamiltonian when it is not included, which generally describes the hardware structure of the quantum system. H ctrl (t) is the Hamiltonian including the impulse function, which can be written as:

Figure GDA0002987084170000082
Figure GDA0002987084170000082

其中,ck(t)(k=1,2,...,N)是描述第k个脉冲波形的包络函数,一般来说它是含时的;Hk是不含时的控制算符(表征脉冲与量子系统的耦合方式)。可见,在量子优化控制问题中,含时的部分仅仅描述脉冲波形(也即脉冲函数)。基于这种特性,将演化过程中脉冲函数ck(t)近似划分为时间离散的切片序列,其中,第i(i≥1)个切片的起始时间为ti-1,结束时间为ti,时间跨度为Δti=ti-ti-1,第i(i≥1)个切片的高度恒定为

Figure GDA0002987084170000083
如果每一个切片序列的时间跨度一样,则得到如图2所示的离散化处理结果,这里,由于在每一个切片内,脉冲的高度(脉冲参数值)是恒定不变的,即对应了一个不含时的哈密顿
Figure GDA0002987084170000084
因而可以使用矩阵指数的解法来求解其时间演化算符:Among them, c k (t) (k=1,2,...,N) is the envelope function describing the kth pulse waveform, which is generally time-dependent; H k is the control algorithm that does not include time. symbol (characterizing the way the pulse is coupled to the quantum system). It can be seen that in the quantum optimal control problem, the time-dependent part only describes the pulse waveform (ie, the pulse function). Based on this characteristic, the impulse function c k (t) in the evolution process is approximately divided into a time-discrete slice sequence, where the start time of the i (i≥1) slice is t i-1 and the end time is t i , the time span is Δt i =t i -t i-1 , the height of the i-th (i≥1) slice is constant as
Figure GDA0002987084170000083
If the time span of each slice sequence is the same, the discretization processing result shown in Figure 2 will be obtained. Here, since in each slice, the height of the pulse (pulse parameter value) is constant, that is, it corresponds to a timeless hamilton
Figure GDA0002987084170000084
Therefore, we can use the solution of matrix exponential to solve its time evolution operator:

U(t)=exp(-iHiΔti),(4)U(t)=exp(-iH i Δt i ),(4)

其中exp表示矩阵指数运算,Hi表征ti时刻的Htotal,这里,由于Hi与脉冲函数有关,如此,得到时间演化算符U(t)也与脉冲函数有关。如此,在初始化脉冲函数的脉冲参数值后,即可基于公式(4)得到初始化的脉冲参数值所对应的U值,该U值即为仿真过程中的量子门,也即仿真量子门。where exp represents the matrix exponential operation, and H i represents H total at time t i . Here, since H i is related to the impulse function, the time evolution operator U(t) is also related to the impulse function. In this way, after initializing the pulse parameter value of the pulse function, the U value corresponding to the initialized pulse parameter value can be obtained based on formula (4). The U value is the quantum gate in the simulation process, that is, the simulation quantum gate.

这里,从图2中可以看出,切片的时间跨度越大,误差越大,计算所消耗的时间则越短。而切片的时间跨度越小,误差越小,但计算所消耗的时间则越长。基于此,本申请则可基于脉冲函数的具体性质,动态选取合适的步长,从而在误差处于容忍范围内最大化提升计算速度。Here, it can be seen from Figure 2 that the larger the time span of the slice, the larger the error, and the shorter the time consumed by the calculation. The smaller the time span of the slice, the smaller the error, but the longer the calculation time. Based on this, the present application can dynamically select an appropriate step size based on the specific properties of the impulse function, so as to maximize the calculation speed within the tolerance range.

当然,为简化计算流程、提高计算效率,以及在确保计算结果满足精度要求的前提下,不同时间切片的时间跨度(也即目标步长)不同,或者说无需相同,如图3所示,每个时间切片对应的步长不相同,但每个时间切片内脉冲的高度(脉冲参数值)是恒定不变的。Of course, in order to simplify the calculation process, improve the calculation efficiency, and ensure that the calculation results meet the accuracy requirements, the time spans (that is, the target step size) of different time slices are different, or do not need to be the same. As shown in Figure 3, each time slice The steps corresponding to each time slice are different, but the height of the pulse (pulse parameter value) in each time slice is constant.

如图4所示,本申请方案的具体步骤,包括:As shown in Figure 4, the specific steps of the scheme of the present application include:

步骤1:输入,即输入预设脉冲时间tg,不含时的漂移哈密顿量Hdrift,包含脉冲函数的哈密顿量Hctrl,以及相应的脉冲函数ck(t),默认步长δt,切片最大变化阈值(脉冲阈值)μ。Step 1: Input, that is, input the preset pulse time t g , the drift Hamiltonian H drift excluding the time, the Hamiltonian H ctrl including the pulse function, and the corresponding pulse function ck (t), the default step size δt , slice maximum change threshold (pulse threshold) μ.

步骤2:初始化总的时间演化算符(也即图4所述的演化算符)U(t)=I,也即t0=0时,U(0)=I,其中I是单位矩阵,t0=0。Step 2: Initialize the total time evolution operator (that is, the evolution operator described in Figure 4) U(t)=I, that is, when t 0 =0, U(0)=I, where I is the identity matrix, t 0 =0.

步骤3:根据变化程度动态调整离散时间步长,包括:Step 3: Dynamically adjust the discrete time step according to the degree of change, including:

(1)计算初始步长:Δt=min{δt,tg-tj}。(1) Calculate the initial step size: Δt=min{δt,t g -t j }.

(2)计算脉冲函数的函数值:将起始时间点设置为tj,计算c(tj)=∑kck(tj)。并根据步长Δt,计算得到下一时刻c(tj+Δt)=∑kck(tj+Δt)。(2) Calculate the function value of the impulse function: set the starting time point as t j , and calculate c(t j )=∑ k c k (t j ). And according to the step size Δt, the next moment c(t j +Δt)=∑ k c k (t j +Δt) is calculated.

(3)计算变化程度:Δc(tj)=c(tj+Δt)-c(tj)。如果当Δc(tj)大于预设的阈值μ,则将Δt设置为Δt/2,并重新执行步骤3中的第一步(1)。如果Δc(tj)小于预设的阈值μ,则进入步骤4。(3) Calculate the degree of change: Δc(t j )=c(t j +Δt)-c(t j ). If Δc(t j ) is greater than the preset threshold μ, then Δt is set to Δt/2, and the first step (1) in step 3 is performed again. If Δc(t j ) is smaller than the preset threshold μ, go to step 4 .

步骤4:计算时间演化算符:根据步骤3确定出的步长Δt,使用矩阵指数计算出时间演化算符:

Figure GDA0002987084170000091
,其中,式中所述的H为Htotal,即tj+Δt时刻的Htotal,i是虚数,换言之,得到tj+Δt时刻仿真量子门Uj(t)。更新U(t)←Uj(t)U(t)以及tj←tj+Δt。Step 4: Calculate the time evolution operator: According to the step size Δt determined in step 3, use the matrix index to calculate the time evolution operator:
Figure GDA0002987084170000091
, where H described in the formula is H total , that is, H total at time t j +Δt, and i is an imaginary number, in other words, the simulated quantum gate U j (t) at time t j +Δt is obtained. Update U(t)←Uj(t)U(t) and tjtj + Δt.

步骤5:重复执行步骤3和4,直到tj≥tg(也即当前时间抵达预设最大时间,该预设最大时间即为预设脉冲时间)。Step 5: Repeat steps 3 and 4 until t j ≥ t g (that is, the current time reaches the preset maximum time, and the preset maximum time is the preset pulse time).

步骤6:返回的U(tg)即为整个脉冲函数的时间演化算符,也即目标仿真量子门,该目标仿真量子门即可认为是预期实现的目标量子门,换言之,将该目标仿真量子门对应的tg时刻的目标脉冲参数值施加到量子系统中,即可实现目标量子门。而且,该时间演化算符充分地考虑了脉冲函数的函数性质,且满足量子门误差要求。Step 6: The returned U(t g ) is the time evolution operator of the entire impulse function, that is, the target simulation quantum gate, and the target simulation quantum gate can be regarded as the expected target quantum gate, in other words, the target simulation quantum gate The target quantum gate can be realized by applying the target pulse parameter value at time t g corresponding to the quantum gate to the quantum system. Moreover, the time evolution operator fully considers the functional properties of the impulse function and meets the requirements of quantum gate error.

第二部分,本技术方案的效果呈现,包括:The second part presents the effects of this technical solution, including:

为了验证上面阐述技术方案的有效性和优势,以超导量子比特的受控Z门(Controlled-Z门)为例进行了测试。在如下测试中,将使用优化算法配合“动态步长的离散时间近似求解方法”计算给定硬件参数下受控Z门的脉冲参数,以实现高精度的受控Z门;同时,使用高精度的Runge-Kutta算法对运算结果做基准测试。为简化模型,这里仅考虑三能级量子系统(即把每个超导量子比特看成一个三能级量子系统),这里使用两个直接耦合的超导量子比特,它们的超导量子比特频率分别为ω1=5.805×2πGHZ以及ω2=5.205×2πGHZ,超导量子比特的失谐性强度分别为:α1=-0.217×2πGHZ以及α2=-0.226×2πGHZ;目标量子门Ugoal取为受控Z门,即:In order to verify the effectiveness and advantages of the technical solutions described above, the controlled Z gate (Controlled-Z gate) of the superconducting qubit was tested as an example. In the following tests, the optimization algorithm will be used in conjunction with the "discrete-time approximate solution method of dynamic step size" to calculate the pulse parameters of the controlled Z-gate under given hardware parameters, so as to achieve a high-precision controlled Z-gate; The Runge-Kutta algorithm benchmarks the operation results. To simplify the model, only three-level quantum systems are considered here (that is, each superconducting qubit is regarded as a three-level quantum system), and two directly coupled superconducting qubits are used here, and their superconducting qubit frequency are ω 1 =5.805×2πGHZ and ω 2 =5.205×2πGHZ, respectively, the detuning strengths of superconducting qubits are: α 1 =-0.217×2πGHZ and α 2 =-0.226×2πGHZ; the target quantum gate U goal takes is the controlled Z gate, namely:

Figure GDA0002987084170000101
Figure GDA0002987084170000101

通常,通过向超导量子比特1施加磁通(即调控超导量子比特1的频率),可以实现受控Z门。基于此,上述方案的哈密顿量可以表示为:In general, by applying a magnetic flux to the superconducting qubit 1 (ie, tuning the frequency of the superconducting qubit 1), a controlled Z-gate can be realized. Based on this, the Hamiltonian of the above scheme can be expressed as:

Figure GDA0002987084170000102
Figure GDA0002987084170000102

其中c(t)为脉冲函数,这里采用由误差函数表示的类方波表达,即:where c(t) is the impulse function, which is expressed as a square wave represented by the error function, namely:

Figure GDA0002987084170000103
Figure GDA0002987084170000103

其中A,s,ts,te即为得到高保真度Controlled-Z门需要优化的脉冲函数中的脉冲参数。Among them, A, s, t s , te are the pulse parameters in the pulse function that need to be optimized to obtain the high-fidelity Controlled-Z gate.

采用本申请方案进行优化,并使用“动态步长的离散时间近似求解方法”计算出上述式(6)的哈密顿量的时间演化算符Ureal,也即目标仿真量子门,并将其投影到超导量子比特空间,再通过如下公式计算仿真量子门的失真度函数:The solution of the present application is used for optimization, and the "discrete-time approximate solution method of dynamic step size" is used to calculate the time evolution operator U real of the Hamiltonian of the above formula (6), that is, the target simulation quantum gate, and project it. Go to the superconducting qubit space, and then calculate the distortion function of the simulated quantum gate by the following formula:

Figure GDA0002987084170000104
Figure GDA0002987084170000104

其中,Tr表示矩阵的迹。该失真度函数是本测试中所使用的优化目标函数,而优化的目标是将该目标函数最小化。where Tr represents the trace of the matrix. This distortion function is the optimization objective function used in this test, and the objective of optimization is to minimize this objective function.

下面展示测试的结果。首先比较本申请方案所述的方法与现有方法得到的求解时间。这里,本申请方案中最大变化阈值μ=0.2,此时,本申请方案与现有方法求解的结果如下所示:The test results are shown below. First, compare the solution time obtained by the method described in the solution of the present application and the existing method. Here, the maximum change threshold μ=0.2 in the solution of the present application, at this time, the results obtained by the solution of the present application and the existing method are as follows:

Figure GDA0002987084170000111
Figure GDA0002987084170000111

本申请方案中最大变化阈值μ=0.002,此时,本申请方案与现有方法求解的结果如下所示:The maximum change threshold μ=0.002 in the solution of the present application, at this time, the results obtained by the solution of the present application and the existing method are as follows:

Figure GDA0002987084170000112
Figure GDA0002987084170000112

而使用相同精度的现有算法如现有Runge-Kutta方法求解的耗时和保真度如下所示:The time-consuming and fidelity of the existing algorithm using the same precision, such as the existing Runge-Kutta method, is as follows:

Figure GDA0002987084170000113
Figure GDA0002987084170000113

由此可以,使用本申请方案的动态切片能够大大提升计算速度,并且误差在可控范围内。Therefore, the use of the dynamic slicing scheme of the present application can greatly improve the calculation speed, and the error is within a controllable range.

与现有其他在量子调控中用到的量子仿真方法相比,本申请方案在以下几点具备显著优势:Compared with other existing quantum simulation methods used in quantum regulation, the proposed solution has significant advantages in the following points:

第一、速度快,即与传统的Runge-Kutta技术相比,本申请方案的脉冲生成速度可提升十几倍或几十倍。First, the speed is fast, that is, compared with the traditional Runge-Kutta technology, the pulse generation speed of the solution of the present application can be increased by ten times or dozens of times.

第二、实用性强,即在超导量子计算中,在使用类方波脉冲的情况下,本申请方案能够显著提升速度,具有很强的实用性。Second, strong practicability, that is, in superconducting quantum computing, in the case of using square wave-like pulses, the solution of the present application can significantly increase the speed and has strong practicability.

第三、扩展性强,即可以根据需要增加更多的脉冲数目,进而获取更为丰富的脉冲波形。此外,对于控制的通道也可以进行扩展。Third, the scalability is strong, that is, more pulses can be added as needed to obtain more abundant pulse waveforms. In addition, the control channel can also be expanded.

第四、灵活性高,即可以根据实际需要,设置不同的最大变化阈值以控制计算精度,所以,相较于现有方案,更为灵活。Fourth, the flexibility is high, that is, different maximum change thresholds can be set according to actual needs to control the calculation accuracy, so it is more flexible than the existing solution.

本申请方案还提供一种量子控制中的仿真装置,如图5所示,包括:The solution of the present application also provides a simulation device in quantum control, as shown in FIG. 5 , including:

数据获取单元501,用于获取量子系统所对应的硬件参数,以及所述量子系统所需实现的目标量子门;A data acquisition unit 501, configured to acquire hardware parameters corresponding to the quantum system and target quantum gates to be implemented by the quantum system;

函数获取单元502,用于获取基于离散的时间切片所表征的脉冲函数,其中,各时间切片的起始时间与终止时间的时间段内的脉冲参数值相同;A function obtaining unit 502, configured to obtain a pulse function represented by discrete time slices, wherein the start time of each time slice is the same as the pulse parameter value in the time period of the end time;

步长确定单元503,用于确定出所述脉冲函数中离散的所述时间切片对应的目标步长;Step size determination unit 503, configured to determine the target step size corresponding to the discrete time slices in the impulse function;

脉冲参数值确定单元504,用于根据所述时间切片对应的目标步长和所述脉冲函数得到所述目标步长对应时长下的脉冲参数值;a pulse parameter value determination unit 504, configured to obtain the pulse parameter value under the time length corresponding to the target step length according to the target step length corresponding to the time slice and the pulse function;

仿真单元505,用于基于得到的所述目标步长对应时长下的脉冲参数值,以及所述量子系统的硬件参数,得到所述目标步长对应时长下的仿真量子门,直至得到预设脉冲时长下的目标仿真量子门,其中,所述预设脉冲时长下的所述目标仿真量子门与所述目标量子门的差距满足预设规则。The simulation unit 505 is configured to obtain the simulated quantum gate under the time length corresponding to the target step size based on the obtained pulse parameter value corresponding to the target step size and the hardware parameters of the quantum system, until a preset pulse is obtained The target simulation quantum gate under the duration, wherein the gap between the target simulation quantum gate and the target quantum gate under the preset pulse duration satisfies a preset rule.

在本申请方案的一具体示例中,各所述时间切片对应的目标步长相同或者不相同。In a specific example of the solution of the present application, the target step size corresponding to each of the time slices is the same or different.

在本申请方案的一具体示例中,所述步长确定单元,包括:In a specific example of the solution of the present application, the step size determining unit includes:

第一步长获取子单元,用于获取第一初始化步长;The first step is to obtain the subunit, which is used to obtain the first initialization step;

第一差值计算子单元,用于基于所述第一初始化步长以及所述脉冲函数计算得到相邻时刻脉冲参数值之间的差值;a first difference calculation subunit, configured to calculate the difference between pulse parameter values at adjacent moments based on the first initialization step size and the pulse function;

第一步长确定子单元,用于在确定出所述相邻时刻脉冲参数值之间的差值小于预设的脉冲阈值,以及所述第一初始化步长对应的时段未超出所述预设脉冲时长的情况下,将所述第一初始化步长作为所述目标步长。The first step length determination subunit is used to determine that the difference between the pulse parameter values at the adjacent moments is less than a preset pulse threshold, and the time period corresponding to the first initialization step size does not exceed the preset value In the case of the pulse duration, the first initialization step size is used as the target step size.

在本申请方案的一具体示例中,所述步长确定单元,包括:In a specific example of the solution of the present application, the step size determining unit includes:

第二步长获取子单元,用于获取第二初始化步长;The second step size obtaining subunit is used to obtain the second initialization step size;

第二差值计算子单元,用于基于所述第二初始化步长以及所述脉冲函数计算得到相邻时刻脉冲参数值之间的差值;a second difference calculation subunit, configured to calculate the difference between pulse parameter values at adjacent moments based on the second initialization step size and the pulse function;

步长调整子单元,用于在确定出所述相邻时刻脉冲参数值之间的差值大于等于预设的脉冲阈值的情况下,对所述第二初始化步长进行调整,直至调整后的相邻时刻脉冲参数值之间的差值小于所述脉冲阈值;The step size adjustment subunit is configured to adjust the second initialization step size when it is determined that the difference between the pulse parameter values at the adjacent moments is greater than or equal to a preset pulse threshold value, until the adjusted The difference between the pulse parameter values at adjacent moments is less than the pulse threshold;

第二步长确定子单元,用于在确定调整后的所述第二初始化步长对应的时段未超出所述预设脉冲时长的情况下,将相邻时刻脉冲参数值之间的差值小于所述脉冲阈值的调整后的所述第二初始化步长作为所述目标步长。The second step size determination subunit is configured to make the difference between the pulse parameter values at adjacent moments less than The adjusted second initialization step size of the pulse threshold is used as the target step size.

在本申请方案的一具体示例中,还包括:数据处理规则确定单元;其中,In a specific example of the solution of the present application, it further includes: a data processing rule determination unit; wherein,

所述数据处理规则确定单元,用于确定所述量子系统所对应的总哈密顿量,并得到时间演化算符与所述总哈密顿量之间的第一映射关系;其中,所述总哈密顿量至少包含有脉冲哈密顿量,所述脉冲哈密顿量中包含有用于控制脉冲的与时间信息相关的所述脉冲函数;基于离散的时间切片所表征的所述脉冲函数,对所述第一映射关系进行数学变换,确定出所述时间演化算符的数据处理规则;The data processing rule determination unit is configured to determine the total Hamiltonian corresponding to the quantum system, and obtain the first mapping relationship between the time evolution operator and the total Hamiltonian; wherein, the total Hamiltonian The stop includes at least an impulse Hamiltonian, and the impulse Hamiltonian includes the impulse function related to the time information used to control the impulse; based on the impulse function represented by discrete time slices, for the first A mapping relationship is mathematically transformed to determine the data processing rule of the time evolution operator;

所述仿真单元,还用于将得到的所述目标步长对应时长下的脉冲参数值以及所述量子系统的硬件参数,输入至所述数据处理规则中,得到目标步长对应时长下的仿真量子门。The simulation unit is further configured to input the obtained pulse parameter value and the hardware parameter of the quantum system under the corresponding duration of the target step into the data processing rule to obtain the simulation under the duration corresponding to the target step. Quantum gate.

这样,由于本申请方案能够对时间进行切片处理,所以,能够快速且精准的实现量子仿真,且该仿真过程中得到的目标仿真量子门即可认为是计划实现的目标量子门,如此,为量子门更高效的实现奠定了基础。In this way, since the solution of the present application can perform slicing processing on time, quantum simulation can be realized quickly and accurately, and the target simulation quantum gate obtained in the simulation process can be regarded as the target quantum gate that is planned to be realized. The groundwork is laid for a more efficient implementation of gates.

根据本申请的实施例,本申请还提供了一种经典计算机、一种可读存储介质和一种计算机程序产品。According to the embodiments of the present application, the present application further provides a classical computer, a readable storage medium, and a computer program product.

如图6所示,是根据本申请实施例的量子控制中的仿真方法的经典计算机的框图。经典计算机旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。As shown in FIG. 6 , it is a block diagram of a classical computer of a simulation method in quantum control according to an embodiment of the present application. Classical computer is intended to refer to various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the application described and/or claimed herein.

如图6所示,该经典计算机包括:一个或多个处理器601、存储器602,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在经典计算机内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在其它实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个经典计算机,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图6中以一个处理器601为例。As shown in FIG. 6, the classic computer includes: one or more processors 601, a memory 602, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or otherwise as desired. The processor may process instructions executed within a classical computer, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired. Likewise, multiple classic computers can be connected, with each device providing some of the necessary operations (eg, as an array of servers, a group of blade servers, or a multiprocessor system). A processor 601 is taken as an example in FIG. 6 .

存储器602即为本申请所提供的非瞬时计算机可读存储介质。其中,所述存储器存储有可由至少一个处理器执行的指令,以使所述至少一个处理器执行本申请所提供的量子控制中的仿真方法。本申请的非瞬时计算机可读存储介质存储计算机指令,该计算机指令用于使计算机执行本申请所提供的量子控制中的仿真方法。The memory 602 is the non-transitory computer-readable storage medium provided by the present application. Wherein, the memory stores instructions executable by at least one processor, so that the at least one processor executes the simulation method in quantum control provided by the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing the computer to execute the simulation method in quantum control provided by the present application.

存储器602作为一种非瞬时计算机可读存储介质,可用于存储非瞬时软件程序、非瞬时计算机可执行程序以及模块,如本申请实施例中的量子控制中的仿真方法对应的程序指令/模块(例如,附图5所示的数据获取单元501、函数获取单元502、步长确定单元503、脉冲参数值确定单元504、仿真单元505,以及图5中未示出的数据处理规则确定单元)。处理器601通过运行存储在存储器602中的非瞬时软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例中的量子控制中的仿真方法。As a non-transitory computer-readable storage medium, the memory 602 can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions/modules ( For example, the data acquisition unit 501, the function acquisition unit 502, the step size determination unit 503, the pulse parameter value determination unit 504, the simulation unit 505 shown in FIG. 5, and the data processing rule determination unit not shown in FIG. 5). The processor 601 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions and modules stored in the memory 602, that is, implementing the simulation method in quantum control in the above method embodiments.

存储器602可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据量子控制中的仿真方法的经典计算机的使用所创建的数据等。此外,存储器602可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。在一些实施例中,存储器602可选包括相对于处理器601远程设置的存储器,这些远程存储器可以通过网络连接至量子控制中的仿真方法的经典计算机。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 602 can include a stored program area and a stored data area, wherein the stored program area can store an operating system, an application program required for at least one function; the stored data area can store a computer created according to the use of a classical computer for simulation methods in quantum control data etc. Additionally, memory 602 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 602 may optionally include memory located remotely from the processor 601, and these remote memories may be connected via a network to a classical computer of the simulation method in quantum control. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

量子控制中的仿真方法的经典计算机还可以包括:输入装置603和输出装置604。处理器601、存储器602、输入装置603和输出装置604可以通过总线或者其他方式连接,图6中以通过总线连接为例。The classical computer of the simulation method in quantum control may further include: an input device 603 and an output device 604 . The processor 601 , the memory 602 , the input device 603 and the output device 604 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 6 .

输入装置603可接收输入的数字或字符信息,以及产生与量子控制中的仿真方法的经典计算机的用户设置以及功能控制有关的键信号输入,例如触摸屏、小键盘、鼠标、轨迹板、触摸板、指示杆、一个或者多个鼠标按钮、轨迹球、操纵杆等输入装置。输出装置604可以包括显示设备、辅助照明装置(例如,LED)和触觉反馈装置(例如,振动电机)等。该显示设备可以包括但不限于,液晶显示器(LCD)、发光二极管(LED)显示器和等离子体显示器。在一些实施方式中,显示设备可以是触摸屏。The input device 603 can receive input numerical or character information, as well as generate key signal input related to user settings and functional control of classical computers for simulation methods in quantum control, such as touch screens, keypads, mice, trackpads, touchpads, An input device such as a pointing stick, one or more mouse buttons, trackball, joystick, etc. Output devices 604 may include display devices, auxiliary lighting devices (eg, LEDs), haptic feedback devices (eg, vibration motors), and the like. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.

此处描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、专用ASIC(专用集成电路)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein can be implemented in digital electronic circuitry, integrated circuit systems, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.

这些计算程序(也称作程序、软件、软件应用、或者代码)包括可编程处理器的机器指令,并且可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。如本文使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置(PLD)),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。These computational programs (also referred to as programs, software, software applications, or codes) include machine instructions for programmable processors, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages calculation program. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or apparatus for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLDs), including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入、或者触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决传统物理主机与虚拟专用服务器(VPS)服务中,存在的管理难度大,业务扩展性弱的缺陷。服务器也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the traditional physical host and virtual private server (VPS) services. Weak scalability defect. The server can also be a server of a distributed system, or a server combined with a blockchain.

根据本申请实施例的技术方案,由于能够对时间进行切片处理,所以,能够快速且精准的实现量子仿真,且该仿真过程中得到的目标仿真量子门即可认为是计划实现的目标量子门,如此,为量子门更高效的实现奠定了基础。According to the technical solutions of the embodiments of the present application, since the time can be sliced, quantum simulation can be realized quickly and accurately, and the target simulation quantum gate obtained in the simulation process can be regarded as the target quantum gate that is planned to be realized, This lays the foundation for a more efficient implementation of quantum gates.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present application can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, no limitation is imposed herein.

上述具体实施方式,并不构成对本申请保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本申请的精神和原则之内所作的修改、等同替换和改进等,均应包含在本申请保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of this application shall be included within the protection scope of this application.

Claims (12)

1. A simulation method in quantum control, comprising:
acquiring hardware parameters corresponding to a quantum system and a target quantum gate required to be realized by the quantum system;
obtaining a pulse function represented based on discrete time slices, wherein the pulse parameter values in the time periods of the starting time and the ending time of each time slice are the same;
determining a target step length corresponding to the time slice which is dispersed in the pulse function, and obtaining a pulse parameter value under the duration corresponding to the target step length according to the target step length corresponding to the time slice and the pulse function;
and obtaining a simulation quantum gate under the duration corresponding to the target step length based on the obtained pulse parameter value under the duration corresponding to the target step length and the hardware parameter of the quantum system until obtaining a target simulation quantum gate under a preset pulse duration, wherein the difference between the target simulation quantum gate and the target quantum gate under the preset pulse duration meets a preset rule.
2. The method of claim 1, wherein the target step size for each time slice is the same or different.
3. The method of claim 1 or 2, wherein said determining a target step size corresponding to said time slice discrete in said pulse function comprises:
acquiring a first initialization step length;
calculating to obtain a difference value between pulse parameter values at adjacent moments based on the first initialization step length and the pulse function;
and taking the first initialization step length as the target step length under the conditions that the difference value between the pulse parameter values at the adjacent moments is smaller than a preset pulse threshold value and the time period corresponding to the first initialization step length does not exceed the preset pulse duration.
4. The method of claim 1 or 2, wherein said determining a target step size corresponding to said time slice discrete in said pulse function comprises:
acquiring a second initialization step length;
calculating to obtain a difference value between pulse parameter values at adjacent moments based on the second initialization step length and the pulse function;
under the condition that the difference value between the pulse parameter values at the adjacent moments is determined to be larger than or equal to a preset pulse threshold value, adjusting the second initialization step length until the difference value between the adjusted pulse parameter values at the adjacent moments is smaller than the pulse threshold value;
and under the condition that the time period corresponding to the adjusted second initialization step length does not exceed the preset pulse duration, taking the adjusted second initialization step length of which the difference value between the pulse parameter values at the adjacent moments is smaller than the pulse threshold value as the target step length.
5. The method of claim 1, further comprising:
determining a total Hamiltonian corresponding to the quantum system, and obtaining a first mapping relation between a time evolution operator and the total Hamiltonian; wherein the total Hamiltonian at least comprises a pulse Hamiltonian, and the pulse Hamiltonian comprises the pulse function related to time information for controlling the pulse;
performing mathematical transformation on the first mapping relation based on the pulse function represented by the discrete time slice to determine a data processing rule of the time evolution operator;
wherein, the obtaining of the simulated quantum gate at the duration corresponding to the target step length based on the obtained pulse parameter value at the duration corresponding to the target step length and the hardware parameter of the quantum system includes:
and inputting the obtained pulse parameter value under the duration corresponding to the target step length and the hardware parameter of the quantum system into the data processing rule to obtain the simulation quantum gate under the duration corresponding to the target step length.
6. A simulation apparatus in quantum control, comprising:
the data acquisition unit is used for acquiring hardware parameters corresponding to the quantum system and a target quantum gate required to be realized by the quantum system;
the function acquisition unit is used for acquiring a pulse function represented based on discrete time slices, wherein the pulse parameter value in the time period of the starting time and the ending time of each time slice is the same;
a step length determining unit, configured to determine a target step length corresponding to the time slice dispersed in the pulse function;
a pulse parameter value determining unit, configured to obtain a pulse parameter value for a duration corresponding to the target step length according to the target step length corresponding to the time slice and the pulse function;
and the simulation unit is used for obtaining a simulation quantum gate under the time length corresponding to the target step length based on the obtained pulse parameter value under the time length corresponding to the target step length and the hardware parameter of the quantum system until obtaining a target simulation quantum gate under a preset pulse time length, wherein the difference between the target simulation quantum gate and the target quantum gate under the preset pulse time length meets a preset rule.
7. The apparatus of claim 6, wherein the target step size for each time slice is the same or different.
8. The apparatus of claim 6 or 7, wherein the step size determining unit comprises:
a first step length obtaining subunit, configured to obtain a first initialization step length;
the first difference calculating subunit is used for calculating and obtaining the difference between the pulse parameter values at adjacent moments based on the first initialization step length and the pulse function;
and the first step length determining subunit is configured to, when it is determined that the difference between the pulse parameter values at the adjacent times is smaller than a preset pulse threshold and a time period corresponding to the first initialization step length does not exceed the preset pulse time length, take the first initialization step length as the target step length.
9. The apparatus of claim 6 or 7, wherein the step size determining unit comprises:
a second step length obtaining subunit, configured to obtain a second initialization step length;
the second difference calculating subunit is configured to calculate a difference between pulse parameter values at adjacent times based on the second initialization step and the pulse function;
a step length adjusting subunit, configured to, when it is determined that the difference between the pulse parameter values at the adjacent times is greater than or equal to a preset pulse threshold, adjust the second initialization step length until the adjusted difference between the pulse parameter values at the adjacent times is smaller than the pulse threshold;
and the second step length determining subunit is configured to, when it is determined that the time period corresponding to the adjusted second initialization step length does not exceed the preset pulse duration, take the adjusted second initialization step length, in which the difference between pulse parameter values at adjacent times is smaller than the pulse threshold, as the target step length.
10. The apparatus of claim 6, further comprising: a data processing rule determining unit; wherein,
the data processing rule determining unit is used for determining a total Hamiltonian corresponding to the quantum system and obtaining a first mapping relation between a time evolution operator and the total Hamiltonian; wherein the total Hamiltonian at least comprises a pulse Hamiltonian, and the pulse Hamiltonian comprises the pulse function related to time information for controlling the pulse; performing mathematical transformation on the first mapping relation based on the pulse function represented by the discrete time slice to determine a data processing rule of the time evolution operator;
and the simulation unit is further configured to input the obtained pulse parameter value of the target step length in the time length corresponding to the target step length and the obtained hardware parameter of the quantum system into the data processing rule, so as to obtain the simulated quantum gate of the target step length in the time length corresponding to the target step length.
11. A classic computer, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-5.
CN202011358498.0A 2020-11-27 2020-11-27 Simulation method and device in quantum control, classical computer and storage medium Active CN112488317B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN202011358498.0A CN112488317B (en) 2020-11-27 2020-11-27 Simulation method and device in quantum control, classical computer and storage medium
JP2021151966A JP7223089B2 (en) 2020-11-27 2021-09-17 SIMULATION METHOD, APPARATUS, CLASSICAL COMPUTER, STORAGE MEDIUM, AND PROGRAM IN QUANTUM CONTROL
US17/503,933 US20220044143A1 (en) 2020-11-27 2021-10-18 Simulation Method in Quantum Control, Classical Computer, and Storage Medium
AU2021258068A AU2021258068B2 (en) 2020-11-27 2021-10-29 Simulation Method And Apparatus In Quantum Control, Classical Computer, And Storage Medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011358498.0A CN112488317B (en) 2020-11-27 2020-11-27 Simulation method and device in quantum control, classical computer and storage medium

Publications (2)

Publication Number Publication Date
CN112488317A CN112488317A (en) 2021-03-12
CN112488317B true CN112488317B (en) 2021-09-21

Family

ID=74936379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011358498.0A Active CN112488317B (en) 2020-11-27 2020-11-27 Simulation method and device in quantum control, classical computer and storage medium

Country Status (4)

Country Link
US (1) US20220044143A1 (en)
JP (1) JP7223089B2 (en)
CN (1) CN112488317B (en)
AU (1) AU2021258068B2 (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819169B (en) * 2021-01-22 2021-11-23 北京百度网讯科技有限公司 Quantum control pulse generation method, device, equipment and storage medium
US11348027B1 (en) * 2021-03-22 2022-05-31 Alibaba Singapore Holding Private Limited Methods and systems of fully-randomized benchmarking for quantum circuits
CN113158615B (en) 2021-04-15 2023-04-14 深圳市腾讯计算机系统有限公司 Optimization method, device, equipment and storage medium of quantum gate
AU2022289736A1 (en) 2021-06-11 2024-02-01 Caleb JORDAN System and method of flux bias for superconducting quantum circuits
CN113792880B (en) * 2021-09-17 2022-04-19 北京百度网讯科技有限公司 Pulse-based quantum gate implementation method and device, electronic equipment and medium
CN114330727B (en) * 2022-01-10 2023-03-10 北京百度网讯科技有限公司 Method and apparatus for determining control pulse of quantum gate, electronic device, and medium
WO2023165500A1 (en) * 2022-03-04 2023-09-07 本源量子计算科技(合肥)股份有限公司 Processing method and apparatus for data processing task, storage medium, and electronic device
CN114707358B (en) * 2022-04-29 2023-05-12 北京百度网讯科技有限公司 Ion trap quantum gate fidelity optimization method and device, electronic equipment and medium
CN115329975B (en) * 2022-08-04 2024-08-09 北京百度网讯科技有限公司 Simulation method, simulation device, simulation equipment and storage medium
CN115329976B (en) * 2022-08-04 2024-07-23 北京百度网讯科技有限公司 Simulation method, device, equipment and storage medium
CN115329974B (en) * 2022-08-04 2023-09-01 北京百度网讯科技有限公司 Simulation method, simulation device, simulation equipment and storage medium
CN115329973B (en) * 2022-08-04 2023-09-26 北京百度网讯科技有限公司 Simulation method, device, equipment and storage medium
CN115829040B (en) * 2022-10-21 2024-11-29 北京百度网讯科技有限公司 Method, device, equipment and storage medium for determining processing parameters
CN116415669B (en) * 2023-03-30 2024-08-09 北京百度网讯科技有限公司 Quantum circuit simulation method, device, equipment and storage medium
CN116628436B (en) * 2023-07-25 2023-11-21 钛玛科(北京)工业科技有限公司 Tension control method, device, equipment and storage medium
CN119378466B (en) * 2023-07-26 2025-11-18 本源量子计算科技(合肥)股份有限公司 Methods and devices for acquiring quantum bit simulation data, and quantum computers
CN117077417B (en) * 2023-08-22 2024-10-01 中国人民解放军空军特色医学中心 Overload simulation optimization method, device, equipment and medium for triaxial manned centrifugal machine
CN119473492B (en) * 2024-09-26 2025-10-10 清华大学 High-precision timing method, device, storage medium and electronic device for real-time simulation of Windows system
CN119808970B (en) * 2024-12-11 2025-11-21 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Quantum gate simulation and control parameter optimization method based on numerical calculation

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
PL3198348T3 (en) * 2014-09-24 2020-10-05 Quantum Valley Investment Fund LP Generating a control sequence for quantum control
US9767238B2 (en) * 2015-07-14 2017-09-19 Northrop Grumman Systems Corporation Reciprocal quantum logic (RQL) circuit simulation system
EP3414583A4 (en) * 2016-02-12 2019-10-30 Yale University CONTROL TECHNIQUES FOR QUANTUM SYSTEMS AND ASSOCIATED SYSTEMS AND METHODS
US11734595B2 (en) * 2016-10-03 2023-08-22 The Johns Hopkins University Apparatus and method for synthesizing quantum controls
US11250190B2 (en) * 2017-09-22 2022-02-15 International Business Machines Corporation Simulating quantum circuits
CA3133427A1 (en) * 2017-10-18 2019-04-25 Google Llc Simulation of quantum circuits
WO2019152019A1 (en) * 2018-01-31 2019-08-08 Niu Yuezhen Universal control for implementing quantum gates
US11308248B2 (en) * 2018-05-05 2022-04-19 Intel Corporation Apparatus and method for quantum computing performance simulation
US11100417B2 (en) * 2018-05-08 2021-08-24 International Business Machines Corporation Simulating quantum circuits on a computer using hierarchical storage
US11526793B2 (en) * 2018-10-04 2022-12-13 Intel Corporation Quantum state imaging for memory optimization
CN111464154B (en) * 2019-01-22 2022-04-22 华为技术有限公司 Control pulse calculation method and device
CN111415011B (en) * 2020-02-10 2022-04-26 北京百度网讯科技有限公司 Quantum pulse determination method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
JP7223089B2 (en) 2023-02-15
CN112488317A (en) 2021-03-12
US20220044143A1 (en) 2022-02-10
AU2021258068A1 (en) 2022-06-16
AU2021258068B2 (en) 2023-03-02
JP2022000786A (en) 2022-01-04

Similar Documents

Publication Publication Date Title
CN112488317B (en) Simulation method and device in quantum control, classical computer and storage medium
US11488578B2 (en) Method and apparatus for training speech spectrum generation model, and electronic device
JP7058304B2 (en) Method of generating node representations in heterogeneous graphs, devices and electronic devices
JP7074964B2 (en) Recommended session methods, equipment and devices
CN113516248B (en) Quantum gate testing method and device and electronic equipment
KR102567635B1 (en) Method and apparatus for training semantic representation model, device and computer storage medium
CN111242306B (en) Method, apparatus, electronic device, and computer-readable storage medium for quantum principal component analysis
CN111598247B (en) Quantum Gibbs state generation method and device and electronic equipment
CN111639753B (en) Methods, devices, equipment and storage media for training image processing supernetworks
KR102607536B1 (en) Optimizer learning method and apparatus, electronic device and readable storage medium
CN114330727B (en) Method and apparatus for determining control pulse of quantum gate, electronic device, and medium
JP2022505015A (en) Vector representation generation method of knowledge graph, equipment and electronic equipment
CN111598246B (en) Quantum Gibbs state generation method, device and electronic device
CN111709252B (en) Model improvement method and device based on pre-trained semantic model
JP7044839B2 (en) End-to-end model training methods and equipment
CN111582452B (en) Methods and devices for generating neural network models
CN111582374A (en) Hyper-parameter searching method, device, equipment and storage medium
CN111563593A (en) Training method and device for neural network model
CN110569969A (en) Sampling method, device and electronic equipment for network model structure
JP7192192B2 (en) Semantic similarity model training method, device, electronic device and storage medium
KR20210127613A (en) Method and apparatus for generating conversation, electronic device and storage medium
JP7105297B2 (en) Neural network model processing method and apparatus
CN111882035A (en) Super network searching method, device, equipment and medium based on convolution kernel
CN111415011B (en) Quantum pulse determination method, device, equipment and readable storage medium
KR102489650B1 (en) Filter debugging method, apparatus, electronic device, readable storage medium and computer program

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
GR01 Patent grant
GR01 Patent grant