Skip to content

Defining a sampler with a specific transition rule #1759

Answered by PhilipVinc
waleed-sh asked this question in Q&A
Discussion options

You must be logged in to vote

What you want is equivalent to what HamiltonianRule does.

If you look at its source, it queries the operator for its connected entries (this could be replaced by your function computing the connected entries given one), then it picks one, then it checks the connected components of the proposed site to compute the Hastings log correction, as your proposal might not be simmetrical.

You'd want to replace calls to get_conn_flattened to calls to your own function that lists the connected components given a certain configuration.

--

I was thinking about this again and maybe this issue could be solved by defining a constrained Hilbert space

Unlikely. Hilbert spaces are used to generate random …

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@PhilipVinc
Comment options

@waleed-sh
Comment options

@waleed-sh
Comment options

@PhilipVinc
Comment options

Answer selected by waleed-sh
@waleed-sh
Comment options

@PhilipVinc
Comment options

@waleed-sh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants