Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in sample test mentioned in README #10

Open
srikarchundury opened this issue Nov 20, 2023 · 0 comments
Open

Error in sample test mentioned in README #10

srikarchundury opened this issue Nov 20, 2023 · 0 comments

Comments

@srikarchundury
Copy link

srikarchundury commented Nov 20, 2023

Traceback (most recent call last):
File "test.py", line 22, in
qstate.amplitude([1,0,0,1,0,0])
File "*/lib64/python3.8/site-packages/koala/peps/peps.py", line 222, in amplitude
return PEPS(grid, self.backend).contract(contract_option)
File "
/lib64/python3.8/site-packages/koala/peps/peps.py", line 231, in contract
return contraction.contract(self, option)
File "/lib64/python3.8/site-packages/koala/peps/contraction.py", line 82, in contract
return contract_BMPS(state, svd_option=option.svd_option, compress_alg=option.compress_alg, canonicalize=option.canonicalize)
File "
/lib64/python3.8/site-packages/koala/peps/contraction.py", line 150, in contract_BMPS
return _vector_reshaper_BMPS(contract_MPS(contract_to_MPS(
File "/lib64/python3.8/site-packages/koala/peps/contraction.py", line 574, in _vector_reshaper_BMPS
return vector.item() if vector.size == 1 else vector.reshape(
File "
/lib64/python3.8/site-packages/tensorbackends/backends/numpy/numpy_tensor.py", line 74, in wrapped_result
retval = result(*unwrapped_args, **unwrapped_kwargs)
ValueError: cannot reshape array of size 32 into shape (2,2,2,2,2,2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant