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
Allow indexing arrays with states #49
Conversation
But how does it comply with the (low) energy spectrum, where we can not map: (-1, .., -1, -1) -> 1, (-1, .., -1, 1) -> 2 etc ... |
I do not understand @kdomino objection. Can you please elaborate a bit more? The 1-1 mapping do exist, and hence it can be used to establish "state numbering". |
In the low energy spectrum you sort states by energies, hence indexing is energy dependent this is mode 5, am I right? |
Non working example is in branch kd/indexing-tests benchmarks/indexing_example.jl |
update_cells!( |
It should work for now. Let's add some examples, especially for comparison with the Gibbs state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge as is, it should work for now.
This allows us to index arrays with states, eg