Kai-Hsin Wu
Kai-Hsin Wu
This will add overhead to get_block though... Maybe just state clearly in user-guide?
Let's just let it popping error on DenseUT then.
Actually, I think there is a better way to do this. If we just make Tensor has a method `Tensor.unitensor(labels)`
So the idea is we can do ```python UT.get_block().unitensor(labels) ``` In the user guide, we can say: ``get_block() return the data of a block (as a Tensor, see Appendix.XXX). To...
and for the generator, one can do ```python cytnx.zeros(100).unitensor(labels) ```
There are some ambiguous for this, because UniTensor can accept string label, as well as integer. On python side it should be possible, but on C++ side the API needs...
I think V^{-1} is V^\dagger if U is unitary, so I think just do dagger
Generally, you should always do permute to make sure two tensors you want to compare has the same order of legs( this is so that you can explicitly know what...
This is exactly why I want to move them away from constructor, __ init__. Some of those things don't need to be know at init stage. You can do the...
What's your setting? Inline?