|
TLDR; how to minimize the number of contractions and partitions in the optimization. Greetings dear Dr. Gray, Hope you are well. I recently released The optimization steps are:
This optimization is computationally heavy—around 95% of the runtime, with contractions and partitions being the main bottlenecks. I observed that while optimizing gates in a given layer, the other layers remain unchanged. So instead of recomputing full contractions for each gate, we could precompute the contraction of the unaffected layers once per layer and reuse it, greatly reducing redundant work. This still has considerable redundancy, but this is what I have in mind as an idea for now. Any insights would be greatly appreciated, especially if it could bring runtime back down to seconds or minutes. Here is the link to the relevant snippet: |
Replies: 2 comments
|
Resolved via using two MPS L and R and updating gradually. |

Resolved via using two MPS L and R and updating gradually.