qutip

Integration not successful in Python QuTiP

孤街醉人 提交于 2020-01-14 03:27:08
问题 I have been trying to use QuTiP to solve a quantum mechanics matrix differential equation (a Lindblad equation). Here is the code: from qutip import * from matplotlib import * import numpy as np hamiltonian = np.array([[215, -104.1, 5.1, -4.3 ,4.7,-15.1 ,-7.8 ], [-104.1, 220.0, 32.6 ,7.1, 5.4, 8.3, 0.8], [ 5.1, 32.6, 0.0, -46.8, 1.0 , -8.1, 5.1], [-4.3, 7.1, -46.8, 125.0, -70.7, -14.7, -61.5], [ 4.7, 5.4, 1.0, -70.7, 450.0, 89.7, -2.5], [-15.1, 8.3, -8.1, -14.7, 89.7, 330.0, 32.7], [-7.8, 0.8

QuTiP TypeError: Incompatible Qobj shapes with tensor product

痴心易碎 提交于 2019-12-24 09:59:19
问题 I am trying to perform this simple operation tensor(hadamard_transform(1), hadamard_transform(1), identity(2), identity(2)) * basis(16,1) but i got Traceback (most recent call last): File "<ipython-input-163-ae66af2f799c>", line 1, in <module> tensor(hadamard_transform(1), hadamard_transform(1), identity(2), identity(2)) * basis(16,1) File "/home/abdallaessam/anaconda2/envs/Quantum/lib/python2.7/site-packages/qutip/qobj.py", line 515, in __mul__ raise TypeError("Incompatible Qobj shapes")

Integration not successful in Python QuTiP

∥☆過路亽.° 提交于 2019-12-07 07:56:31
I have been trying to use QuTiP to solve a quantum mechanics matrix differential equation (a Lindblad equation). Here is the code: from qutip import * from matplotlib import * import numpy as np hamiltonian = np.array([[215, -104.1, 5.1, -4.3 ,4.7,-15.1 ,-7.8 ], [-104.1, 220.0, 32.6 ,7.1, 5.4, 8.3, 0.8], [ 5.1, 32.6, 0.0, -46.8, 1.0 , -8.1, 5.1], [-4.3, 7.1, -46.8, 125.0, -70.7, -14.7, -61.5], [ 4.7, 5.4, 1.0, -70.7, 450.0, 89.7, -2.5], [-15.1, 8.3, -8.1, -14.7, 89.7, 330.0, 32.7], [-7.8, 0.8, 5.1, -61.5, -2.5, 32.7, 280.0]]) H=Qobj(hamiltonian) ground=Qobj(np.array([[ 0.0863685 ], [ 0