How do you customize bond truncation dimension? #105
Replies: 3 comments 1 reply
-
Hi @Sinestro38 , I am not sure what you mean by bond truncation dimension in this context. Per my understanding, you are constructing your own tensor network which is supposed to compute the expectation value of the ZZ...ZZ operator over a GHZ circuit. In this case, there is no truncation and your tensor network should be evaluated with no issues. Alternatively, with the new cuTensorNet-23.10 high-level API, you can compute expectation values directly via the library API without doing any manual tensor network construction. An example can be found here: https://github.com/NVIDIA/cuQuantum/blob/main/python/samples/cutensornet/high_level/expectation_example.py |
Beta Was this translation helpful? Give feedback.
-
If you could share your code snippet, that would help as well. |
Beta Was this translation helpful? Give feedback.
-
Hello, For For the old issue you were seeing (maximum dimension exceeding 32), can you make sure the quantity you're computing (expectation) is a scalar not a high dimensional tensor? |
Beta Was this translation helpful? Give feedback.
-
I'm trying to get the
Z^N
expectation (1 operator) of a 38 qubit GHZ state to benchmark cutensornet and I'm curious how one can customize the bond truncation dimension. By default I'm finding that the simulator is producing perfect results under 33 qubits (32 qubits is the size of the max statevec I can fit on my 40GB A100) and I suspect it's because it's not making a TN approximation.I understand that there's an optional
SlicerOptions
object that I can pass intoOptimizerOptions
which can be passed into thecontract
function, but I couldn't find the documentation that specifies its fields. The source code also seemed to generate the dataclass from another function so thought I'd ask here.The source code I was looking at: https://github.com/NVIDIA/cuQuantum/blob/main/python/cuquantum/cutensornet/configuration.py#L101
Beta Was this translation helpful? Give feedback.
All reactions