ModuleNotFoundError:没有名为“qutip.nonmarkov”的模块

问题描述 投票:0回答:1

如何解决这个错误?新的 v5.0.1 中发生了什么变化。

from qutip.nonmarkov.heom import HEOMSolver

# Define the bath and coupling
gamma = 0.05  # Damping rate
temperature = 0.1  # in units where kB = 1
bath = BosonicBath(gamma, temperature)

# Setup the solver
solver = HEOMSolver(H, [bath])

# Solve the dynamics
tlist = np.linspace(0, 10, 100)
result = solver.run(psi0, tlist)

我尝试运行求解器

python quantum-computing qutip
1个回答
0
投票

要在版本 5 中导入 HEOMSolver,您需要使用 qutip.solver 代替:

from qutip.solver.heom import HEOMSolver

另请参阅 qutip 5.0 的文档

© www.soinside.com 2019 - 2024. All rights reserved.