Understanding the states in constrained Hilbert spaces #1795
-
I am currently working with a spin-like system and a Hilbert space which is constrained such that it only includes states where the basis label of two specific lattice sites sum up to zero. For example, a constraint function which looks like
I was able to implement a Metropolis Local sampler which respects this constraint. Essentially, it does everything the Metropolis Local sampler does, but then before returning the proposed configurations it manually sets the values of these specific lattice sites to the same value but opposite sign (see below). My questions are:
Edit: Was able to test whether the sampler works correctly or not, but still struggling to understand the states... Any help would be appreciated!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This seems a valid choice.
Yes. The idea is that your network can take over any value outside the subspace of interest, because we will only be evaluating it inside of the subspace when evaluating expectation values.
I think this is a bug. It will be fixed in the upcoming version of netket, and will give an hard error.
This seems correct as well. |
Beta Was this translation helpful? Give feedback.
This seems a valid choice.
Yes. The idea is that your network can take over any value outside the subspace of interest, because we will only be evaluating it inside of the subspace when evaluating expectation values.
I think this is a bug. It will be fixed in the upcoming version of netket, and will give an hard error.