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

[BUG] Unexpected error of dimension mismatching in defining a GeneralLattice #677

Open
hz-xiaxz opened this issue Aug 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hz-xiaxz
Copy link

Describe the bug
A clear and concise description of what the bug is.
When constructing a GeneralLattice, input dismatched dimension of lattice vector and starting point gives unexpect StackOverflow error.

To Reproduce
A code snippet to reproduce the behavior

julia> GeneralLattice([(1.0,0.0,0.0),(0.0,1.0,0.0),(0.0,0.0,1.0)],[(0.0,0.0)])
ERROR: StackOverflowError:
Stacktrace:
 [1] GeneralLattice(vectors::Tuple{Tuple{…}, Tuple{…}, Tuple{…}}, sites::Tuple{Tuple{…}}) (repeats 79984 times)
   @ BloqadeLattices ~/.julia/packages/BloqadeLattices/uiRYp/src/lattice.jl:54
Some type information was truncated. Use `show(err)` to see complete types.

Expected behavior
A clear and concise description of what you expected to happen.
Check the dimension overhead and throw a dimension not match error

Screenshots
If applicable, add screenshots to help explain your problem.

Version Info

  • Julia version 1.10.4
  • Package Version (use Pkg.status() to see the version of your current environment)

Additional context
Add any other context about the problem here.

@hz-xiaxz hz-xiaxz added the bug Something isn't working label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant