This repository contains MATLAB scripts used for the study "Transition Path and Interface Sampling of Stochastic Schrödinger Dynamics (2024)". It implements quantum and classical trajectory sampling techniques such as Transition Path Sampling (TPS) and Transition Interface Sampling (TIS).
- MATLAB
- [Optional] Parallel Computing Toolbox for running
parforloops
Clone the repository and add its folder to your MATLAB path:
git clone https://github.com/rchristie95/SSEPathSampling.git
cd SSEPathSamplingIf you lack the Parallel Computing Toolbox, replace parfor loops with for loops as noted in ReadMe.txt.
- Dynamics Integrators – Quantum integrators such as
SSEDynamicsTPS.mevolve a wavefunction forward and backward around a chosen shooting index. Example initialization is shown in lines 1‑20 of the file. - Symmetry Transforms –
PathTransformerSSE.mapplies time, parity or PT reversals, selectable via thechoiceparameter (see lines 1‑13). - Sampling Drivers – Scripts including
SSETPSSymmetry.mandSSETransitionRateTIS.mcoordinate TPS/TIS procedures. - Post‑Processing – Functions such as
adjust_histogram_weightsTIS.mcombine histogram data across interfaces.
Example usage of SSETPSSymmetry is outlined in the header comments of the file:
SSETPSSymmetry(h2, h4, Gamma, kT, LambdaVals, windowMat, A, n_equilib, nPathsPerWindow)The code saves trajectories and statistics to MAT-files that can be further analyzed using the provided utilities.
To reproduce the paper's calculations, open MATLAB in this directory and run one of the example scripts, e.g.:
TISDetailedScriptResults are written to the current working directory.
A license file is not provided. Please contact the authors of the original paper for usage permissions.
If you use this code in academic work, cite "Transition Path and Interface Sampling of Stochastic Schrödinger Dynamics (2024)".