opt=Options()opt.atol=1e-3opt.rtol=1e-3
opt.num_cpus=8opt.ntraj=100000output = mcsolve(H, psi0, tlist, [], [sm1.dag() * sm1,sm2.dag()*sm2,a.dag()*a],options=opt)
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
What do you get as the run times for the following script:
import numpy as np
from qutip import *
times = np.linspace(0.0, 10.0, 200)
psi0 = tensor(fock(2, 0), fock(10, 5))
a = tensor(qeye(2), destroy(10))
sm = tensor(destroy(2), qeye(10))
H = 2 * np.pi * a.dag() * a + 2 * np.pi * sm.dag() * sm + 2 * np.pi * 0.25 * (sm * a.dag() + sm.dag() * a)
opt = Options()
opt.num_cpus = 1
mcsolve(H, psi0, times, [np.sqrt(0.1) * a], [a.dag() * a, sm.dag() * sm], options=opt)
opt.num_cpus = 2
mcsolve(H, psi0, times, [np.sqrt(0.1) * a], [a.dag() * a, sm.dag() * sm], options=opt)
opt.ntraj = 1
mcsolve(H, psi0, times, [np.sqrt(0.1) * a], [a.dag() * a, sm.dag() * sm], options=opt)
December 30, 2016 at 00:22
Hello Alex,The settings are:QuTiP: Quantum Toolbox in PythonCopyright (c) 2011 and later.Paul D. Nation & Robert J. JohanssonQuTiP Version: 3.1.0Numpy Version: 1.11.0Scipy Version: 0.17.0Cython Version: 0.25.1Matplotlib Version: 1.5.1Fortran mcsolver: Falsescikits.umfpack: FalsePython Version: 2.7.12Platform Info: Linux (x86_64)Installation path: /home/qubits0/.local/lib/python2.7/site-packages/qutip
在 2016年12月30日星期五 UTC+8下午2:09:08,Alex Pitchford写道:
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
December 29, 2016 at 23:09
Check your qutip settings by using:qutip.about()Report back pls.Focus on ubuntu. Windows won't help you because multiprocessing on Windows is as good as useless, because it takes so long to spawn a process.
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
December 29, 2016 at 21:44
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
December 29, 2016 at 23:09
Check your qutip settings by using:qutip.about()Report back pls.Focus on ubuntu. Windows won't help you because multiprocessing on Windows is as good as useless, because it takes so long to spawn a process.
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
December 29, 2016 at 21:44
I am tring to modify the options in the mcsolve to speed up the process. Some options in mcsolve do work, but the others don't. My code is followed:--opt=Options()opt.atol=1e-3opt.rtol=1e-3opt.num_cpus=8opt.ntraj=100000output = mcsolve(H, psi0, tlist, [], [sm1.dag() * sm1,sm2.dag()*sm2,a.dag()*a],options=opt)Here, opt.atol and opt.rtol work. When I increase them, the total time decrease. However, neither opt.num_cpus nor opt.ntraj do their job. There is no difference when changing them. By setting num_cpus=8, the total cpus used is still one core, and the total time is the same as num_cpus=1. It is similar when changing opt.ntraj。 No effort takes when modify these two important parameters.I have tried with Windows 10 and Ubuntu 1610. Could anybody tell me why and how to fix it? Thanks!
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
QuTiP Version: 4.0.1Numpy Version: 1.11.1Scipy Version: 0.18.1Cython Version: 0.24.1Matplotlib Version: 1.5.3Python Version: 3.5.2Number of CPUs: 16BLAS Info: INTEL MKLINTEL MKL Ext: TruePlatform Info: Linux (x86_64)Installation path: /home/qubits0/anaconda3/lib/python3.5/site-packages/qutip
import numpy as npimport timefrom qutip import *
about()times = np.linspace(0.0, 10.0, 20)
psi0 = tensor(fock(2, 0), fock(10, 5))a = tensor(qeye(2), destroy(10))sm = tensor(destroy(2), qeye(10))
H0 = 2 * np.pi * a.dag() * a + 2 * np.pi * sm.dag() * sm + 2 * np.pi * 0.25 * (sm * a.dag() + sm.dag() * a)#H=[H0,[sm.dag() * sm,'A*np.sin(w*t)']]#args={'A':0.01*2*np.pi,'w':0.1*2*np.pi}H=[H0,[sm.dag() * sm, 0.01*2*np.pi*np.sin(0.1*2*np.pi*times)]]opt = Options()opt.ntraj = 1000opt.rhs_reuse = Trueopt.num_cpus = 16opt.gui=Truest = time.time()c_op_list=[np.sqrt(0.1) * a]output=mcsolve(H, psi0, times, c_op_list, [a.dag() * a, sm.dag() * sm], options=opt)st = time.time()c_op_list=[]output=mcsolve(H, psi0, times, c_op_list, [a.dag() * a, sm.dag() * sm], options=opt)
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
December 29, 2016 at 23:09
Check your qutip settings by using:qutip.about()Report back pls.Focus on ubuntu. Windows won't help you because multiprocessing on Windows is as good as useless, because it takes so long to spawn a process.
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
December 29, 2016 at 21:44
I am tring to modify the options in the mcsolve to speed up the process. Some options in mcsolve do work, but the others don't. My code is followed:--opt=Options()opt.atol=1e-3opt.rtol=1e-3opt.num_cpus=8opt.ntraj=100000output = mcsolve(H, psi0, tlist, [], [sm1.dag() * sm1,sm2.dag()*sm2,a.dag()*a],options=opt)Here, opt.atol and opt.rtol work. When I increase them, the total time decrease. However, neither opt.num_cpus nor opt.ntraj do their job. There is no difference when changing them. By setting num_cpus=8, the total cpus used is still one core, and the total time is the same as num_cpus=1. It is similar when changing opt.ntraj。 No effort takes when modify these two important parameters.I have tried with Windows 10 and Ubuntu 1610. Could anybody tell me why and how to fix it? Thanks!
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.