2020
10-10
10-10
Python中qutip用法示例详解
前言QuTip是用于模拟开放量子系统动力学的开源库。QuTip库依赖于的Numpy、Scipy和Cython的数值包。此外,matplotlib提供了图形输出。http://qutip.org/。python安装比较容易,需要选择一个版本,python2或python3,稍微麻烦的是Scipy。一、N原子系综自旋概率分布fromqutipimport*importnumpyasnpimportmatplotlib.pyplotaspltn=2#原子数j=n//2psi0=spin_coherent(j,np.pi/3,0)#设置系统的初态为自旋相干态Jp=destroy...
继续阅读 >