How to do a step by step contraction of a tensor network in one cuquantum.Network context ? #34
-
If I have built a tensor network using the cuQuantum.Network(expr, *operands) class and use this network as a context, would it be possible for me to go through each contraction steps one by one in this context? I tried building a function The function is the following :
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello Benjamin, Currently Before we can further assist you, I noticed a couple of things from your script:
|
Beta Was this translation helpful? Give feedback.
Hello Benjamin,
Currently
Network.contract
directly dispatches all pairwise contractions to our C APIcutensornetContractSlices
altogether so there is no public API that allows user to tune/walk through pairwise contractions. That being said, one may be able to twerk around our public APIs a bit to achieve the goal.Before we can further assist you, I noticed a couple of things from your script:
update_expr_and_tensors
, you're taking a full contraction path (let's call it full_path) from cutensornet.contract_path. In each call, the first pairwise contraction is peformed usingcuquantum.contract
, which gives you thenew_network
and then, instead of inheriting the subs…