Skip to content

What does compress_all() do? #153

Answered by jcmgray
cotejer asked this question in Q&A
Nov 22, 2022 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

Hi @cotejer, compress_all is quite a basic function that assumes no particular geometry and simply takes every bond in the tensor network, in any order, and compresses between the two tensors. How well the compression works always depends on the environment of the tensors.

Depending on what geometry you have (?), e.g. a tree or MPS, then you would probably want to take a more systematic approach where you shift the 'orthogonality center' around, and therefore use the ideal environment for each compression. Here's a method (not pushed to quimb yet..) that could do that automatically.

    def compress_all_tree(self, inplace=False, **compress_opts):
        """Canonically compress this tenso…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by cotejer
Comment options

You must be logged in to vote
4 replies
@jcmgray
Comment options

@cotejer
Comment options

@cotejer
Comment options

@jcmgray
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants