-
According to the docstring of |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
Hello, Currently One potential strategy to compute the operator sum more efficiently here is via our |
Beta Was this translation helpful? Give feedback.
-
Hi @rht Can you clarify any questions you still have on this subject? |
Beta Was this translation helpful? Give feedback.
-
Hi @rht , FYI: Starting with cuQuantum-23.10, you can compute expectation values of any sum-of-Pauli-products operators directly via the cuTensorNet high-level API. Currently we only provide direct Python bindings, which look less Pythonic than CircuitToEinsum, but they provide full functionality (an example can be found here: https://github.com/NVIDIA/cuQuantum/blob/main/samples/cutensornet/high_level/expectation_example.cu). |
Beta Was this translation helpful? Give feedback.
As it is, I'm not sure that there would much (if any) performance improvement provided by a feature enhancement for this. Depending on the broader context of the workload, the enhancement could prove beneficial.
As an example, if the workload required many batches of expectation values be calculated for the reduction, that would make a difference.
From the information you've provided, the largest benefit seems to be convenience.
Let me know if I have that wrong.
Regardless, I plan to generate an issue to track this feature request. Once created, it will be prioritized based on this discussion thread. At that time, I will lock this discussion, and any relevant information will need to be p…