evanberkowitz / supervillain

MCMC for modified Villain constructions
https://supervillain.readthedocs.io/
Other
0 stars 0 forks source link

Action portability #119

Closed alcherman closed 1 week ago

alcherman commented 7 months ago

In the future we will want to be able to modify the action to study a variety of 2d QFTs. This can take several forms:

modify the action of the current fields add new fields change the dimension

as well as combinations of all of the above. Currently doing any of this is hard, and requires making many changes in many files. I think it's hard to avoid this when adding new fields. It might be possible to make the dimension generic without a huge amount of extra work, but I think that's best saved for the future. But it should be much easier than it is now to modify the action.

To enable this, maybe all the data about the action can be in one file, which contains the action itself, as well as hand-calculated functions that say how it varies as we change various fields. Then the rest of the code can call functions from this action file. Apart from making future projects easier, it will also improve readability of the code.

evanberkowitz commented 1 week ago

I agree with this in principle but in practice I think it would require a major rearchitecting of the code. I'm closing this as WONTFIX at least for the foreseeable future.