-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fail to extract block by specifying sector of each index for (N,0) or (0,N) tensors #182
Comments
Thanks for catching this. I can reproduce and will fix this asap. |
This is fixed on master, we will tag a new patch release asap. |
Thanks for the fix! I'd appreciate it if the fix can also be backported to version 0.12? PEPSKit and MPSKit haven't been updated to work with version 0.13. I need this fix mainly to convert blocks of a |
One possible way to get around this would be to do something like: for (f1, f2) in fusiontrees(a2)
if f1.uncoupled == (I(-1), I(1))
@show a2[f1, f2]
end
end The trick is that this bypasses that step of constructing the fusiontrees by starting from them, and checking if the uncoupled charges are the ones you are looking for. |
@lkdvos This seems to work for both 0.12 and 0.13. Thanks! |
For a
TensorMap
withN1
> 0 codomain indices andN2
> 0 domain indices, I can extract its blocks by specifying the sector of each index:Output:
However, if I permute all indices to codomain (or domain), this no longer works:
I get the error:
The text was updated successfully, but these errors were encountered: