-
The circ = qtn.Circuit(0) If I would like to use the tn = qtn.MPS_computational_state("") it fails as Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/vincent.michaud-rioux/Documents/repos/pennylane/venv/lib/python3.10/site-packages/quimb/tensor/tensor_builder.py", line 2934, in MPS_computational_state
return MPS_product_state(tuple(gen_arrays()), cyclic=cyclic, **mps_opts)
File "/home/vincent.michaud-rioux/Documents/repos/pennylane/venv/lib/python3.10/site-packages/quimb/tensor/tensor_builder.py", line 2904, in MPS_product_state
return MatrixProductState(mps_arrays, shape="lrp", **mps_opts)
File "/home/vincent.michaud-rioux/Documents/repos/pennylane/venv/lib/python3.10/site-packages/quimb/tensor/tensor_1d.py", line 1360, in __init__
self.cyclic = (ops.ndim(arrays[0]) == 3)
IndexError: tuple index out of range Is that expected behaviour? Is there a way to create empty circuits with |
Beta Was this translation helpful? Give feedback.
Answered by
jcmgray
May 31, 2023
Replies: 1 comment 1 reply
-
I would suggest that both should error! but yes it appears this is not implemented yet. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vincentmr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would suggest that both should error! but yes it appears this is not implemented yet.