-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support permute
to re-order the tensor (Kronecker) product
#95
Comments
the |
I can’t figure out what a tensor product between two superoperators should make, physically. So, I think that the definition of tensor product on the superoperators is meaningless |
It is defined in the qutip |
@albertomercurio @aarontrowbridge There are some rare situations which we want the Consider a What I have in my mind is some functions that allow me to obtain the But this could actually be done by transferring the A = Qobj(rand(NA, NA))
B = Qobj(rand(NB, NB))
AB = tensor(A, B)
S = spre(AB) # super operator
op1 = Qobj(S, type = Operator, dims = [NA, NB, NA, NB])
op2 = permute(op1, [1, 3, 2, 4])
S_new = Qobj(op2, type = SuperOperator, dims = [NA, NB]) So, yes ! |
@ytdHuang thanks for the feedback! I'm in the process of making all of the changes you suggested. I'm in the process of groking what's going on in the |
Support the function
permute
inQuTiP
, something like:Should support for the following types of quantum object:
KetQuantumObject
BraQuantumObject
OperatorQuantumObject
SuperOperatorQuantumObject
OperatorKetQuantumObject
OperatorBraQuantumObject
The text was updated successfully, but these errors were encountered: