An interoperable implementation of collective-variable based enhanced sampling methods in extended phase space within the OpenMM package