On Friday, May 24, 2013 at 1:37 AM, ander...@gmail.com wrote:
What is the deal with having both a dimension and a shape of Qobjects?
I am trying to do some more advanced stuff, but I am constantly running into the 'Incompatible quantum object dimensions' error.
It seems to happen even when what I am doing is technically correct, and I have to set the dims variable myself.
Another small question. Is there no function for making an empty quantum object matrix? Right now I am doing
N = 64
Qobj(np.zeros((N, N)))
Cheers
Anders Lund
--
You received this message because you are subscribed to the Google Groups "qutip" 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/groups/opt_out.
TypeError Traceback (most recent call last) <ipython-input-67-f1d53b280433> in <module>() ----> 1 a+b /usr/local/lib/python2.7/dist-packages/qutip/qobj.pyc in __add__(self, other) 340 341 elif self.dims != other.dims: --> 342 raise TypeError('Incompatible quantum object dimensions') 343 344 elif self.shape != other.shape: TypeError: Incompatible quantum object dimensions...
please help me to do this
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qu...@googlegroups.com.
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 view this discussion on the web visit https://groups.google.com/d/msgid/qutip/ba7bb862-6033-4898-b540-7aaa78b49db0n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/NAGU4iKZNBY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qutip/504e7196-a0f9-4cf1-bf0e-09e2d071815fn%40googlegroups.com.