How does permute work in QuTip?
I haven't found a single example of it online. In the tutorial it is defined as the following
Q.permute(order)
Permutes the tensor structure of a composite object in the given order.
What should (order) be? Is it a number? Is it a list?
I think I kinda got a hang of it.
Suppose that I want to permute the following tensor
z = tensor(sigmaz(),qeye(2))
Then if I write
z.permute([1])
it basically gives me
z = tensor(qeye(2),sigmaz())
But say that I want to generalize this to a tensor of the following form
z = tensor(sigmaz(),qeye(2),qeye(2))
Then if I write
z.permute([1])
what I thought would give me
z = tensor(qeye(2),sigmaz(),qeye(2))
But instead Python only craches everytime.
So apparently I don't understand how the permute function works in QuTip.