Closed snsunx closed 1 year ago
If I set max_bond
when calling the function, the error goes away. Is this the expected behavior? Is it possible that the user calls contract_compressed
without setting max_bond
, i.e. without intending to compress the tensor network?
Hi @snsunx, yes currently one needs to supply either max_bond
or cutoff
. Probably it would be useful for debugging purposes to support neither being supplied.
Cleaning up the interface and writing some docs is on my to-do list, but it is a tricky task, as this is quite an advanced function, where there is a trade-off between 'just working' with no settings, and explicitly forcing the user to engage in understanding the algorithm at some level and choosing the settings, since there is a large affect in terms of both complexity and accuracy.
I suppose I'm saying the interface is not quite finalized yet!
That answers my question. Thank you for the clarification!
What happened?
I found that the
TensorNetwork.contract_compressed
method works on aTensorNetwork
with twoTensor
s but does not work on aTensorNetwork
with more than twoTensor
s.What did you expect to happen?
I expect the method to return a
Tensor
object.Minimal Complete Verifiable Example
Relevant log output
Anything else we need to know?
The
chi
variable isNone
, which resulted in the error.Environment
I'm using Quimb version 1.4.0.