线性 ODE 输入模型

oracq.algorithms.qode.ode_models

Shared input model of Hermitian decompositions and autonomous linear ODEs.

class oracq.algorithms.qode.ode_models.HermitianParts(hermitian, h)[源代码]

基类:object

A=L+iH; the Hermitian/positive-semidefinite properties are input-model declarations, not proved by the language.

hermitian
h
classmethod from_operator(a)[源代码]

Construct the Hermitian decomposition A = L + iH from the block encoding of operator A.

Combines a and its adjoint via an LCU to build L = (A + A†)/2 and H = (A - A†)/(2i).

参数:

a -- Block encoding of the operator A.

返回:

The corresponding Hermitian decomposition; the Hermitian nature of each component remains caller-declared.

返回类型:

HermitianParts

class oracq.algorithms.qode.ode_models.LinearODE(parts, initial, label='du_dt_equals_minus_A_u')[源代码]

基类:object

Shared input model of the autonomous linear ODE u' = -Au (with A = L + iH).

变量:
parts
initial
label = 'du_dt_equals_minus_A_u'