Skip to content

concentration constraints #435

Answered by kamronald
dmebane asked this question in Q&A
Oct 24, 2023 · 2 comments · 24 replies
Discussion options

You must be logged in to vote

Hi @dmebane
Just looked into this, sorry for the delay. We have a CompositeUsher already implemented, which in principle can solve your problem. However, it is currently not very user-friendly, as you have to manually create a list of MCUshers to pass into the Sampler constructor. Also, I don't think it yet works for the "table-flip" step type.
Here is example code to make a Sampler with a CompositeUsher, assuming you have an ensemble made already:

from smol.moca import Ensemble, Sampler
from smol.moca.kernel.mcusher import mcusher_factory, available_step_types

sublattices = ensemble.processor.get_sublattices()
usher1 = mcusher_factory(usher_type='flip', sublattices=[sublattices[0]])
ush…

Replies: 2 comments 24 replies

Comment options

You must be logged in to vote
3 replies
@dmebane
Comment options

@lbluque
Comment options

@dmebane
Comment options

Comment options

You must be logged in to vote
21 replies
@dmebane
Comment options

@lbluque
Comment options

@dmebane
Comment options

@kamronald
Comment options

Answer selected by dmebane
@dmebane
Comment options

@dmebane
Comment options

@lbluque
Comment options

@dmebane
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
4 participants