-
|
Hi, first of all thanks for this great library. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
|
Hello, Thanks for sharing the user experience. Please note that the Meanwhile, cuquantum-python now also offers a direct MPS simulator using RE: speeding up, generally the majority of the cost in simulating MPS amounts to the SVD step, which then heavily depends on the bond dimension. If your circuit state is sparse, you may more aggressively truncate the bonds to make it run faster, or you may try a few SVD options that we provide, e.g, Feel free to share more feedbacks if you try these APIs |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @yangcal I did not know about the circuit = get_qiskit_circuit()
config = MPSConfig(max_extent=32, abs_cutoff=1.e-12)
state = NetworkState.from_circuit(circuit, dtype='complex128', backend='cupy', config=config)
state.compute_output_state()but it fails with: I am guessing I am doing something wrong here. What I really care to get are the MPS tensors which I would like to use in some other downstream application. |
Beta Was this translation helpful? Give feedback.
-
|
I just started a new environment installing with pip not sure about this: I am running on A100, here is the output of |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @yangcal, you are right, CUDA version mismatch was the issue, I got it work with: One odd thing I noticed is that I need to do and the second time I get the rest of the dependencies: I am installing with uv in a virtual environment |
Beta Was this translation helpful? Give feedback.
Hello,
Thanks for sharing the user experience. Please note that the
mps_algorithm.ipynbis meant to demonstrate how to leverage our primitivecontract_decomposepython API to construct your own MPS or other approximate tensor network simulator. The corresponding C API iscutensornetGateSplit. Themps_example.cuonly demonstrated the handling of two-qubit gate as single qubit gate handling amounts to pairwise contraction, which should be delegated tocutensorlibrary outside cuquantum.Meanwhile, cuquantum-python now also offers a direct MPS simulator using
cuquantum.tensornet.experimental.NetworkStateAPI, see here for documentation and here for examples.RE: speeding up, generally the ma…