Replies: 2 comments 3 replies
-
Hi @zadnarock, are you just wanting to write the tensor network to disk (you can just use pickle or e.g. joblib.dump) or use in some other framework? The most minimal bits of information to be able to reconstruct a tensor network are: for tensor in tn:
# incident edges to this node
inds = tensor.inds
# the data at each node
data = tensor.data There is lots more information here. The geometry is not always exactly a graph (i.e. has an adjacency matrix), since normal TNs can have output indices (those indices that only appear once). Moreover, if any indices appear on more than two tensors, then the geometry is really a hypergraph. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the detailed answer. I want to explore other tensor network contraction algorithms thereby wanting to use the network generated in some other framework. Can any random quantum circuit can be converted into a tensor network using quimb, if yes can all of them be contracted to obtain the final measurement state? |
Beta Was this translation helpful? Give feedback.
-
Hey, I am new to all this, can someone explain how to convert a qtn tensor network obtained through a quantum circuit into an adjacency matrix or any other storable form?
Beta Was this translation helpful? Give feedback.
All reactions