Is it possible to specify maximum bond dimension when using CircuitToEinsum? #134
Replies: 1 comment 2 replies
-
Hello George, Thanks for the question. Note here that In order to perform MPS simulation with bond or value truncation, you can parse the gates Additionally, we have python bindings for our state APIs which can also compute the final MPS state with or without truncations. Please refer to the documentation or examples for more details. We are also working on a more pythonic solution for python users so please stay tuned for our future releases. Thanks |
Beta Was this translation helpful? Give feedback.
-
I want to convert a
qiskit.QuantumCircuit
object to a Matrix Product State (more specifically the state prepared by the circuit) and specify either a) the maximum bond dimension in the MPS or b) the truncation threshold used for the SVD.Is there a way to specify a) or b) when using
cuquantum.CircuitToEinsum
? I.e. can I modifyqiskit_basic.ipynb example
(https://github.com/NVIDIA/cuQuantum/blob/main/python/samples/cutensornet/circuit_converter/qiskit_ba...) to do this?I understand that I can contract the gates at a low level and specify an
algorithm
with specificmax_extent
orrel_cutoff
(see https://github.com/NVIDIA/cuQuantum/blob/main/python/samples/cutensornet/tn_algorithms/mps_algorithm...) but is the same thing possible at the high level usingCircuitToEinsum
?Beta Was this translation helpful? Give feedback.
All reactions