-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_script.m
More file actions
19 lines (16 loc) · 1022 Bytes
/
test_script.m
File metadata and controls
19 lines (16 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
% example script
%--------------------------------------------------------------------------
% Kevin Schaefers (v1, 2024)
%--------------------------------------------------------------------------
clear; clc;
addpath(genpath(pwd))
L = 32; % lattice of size 32 x 32
param_beta = 2.0; % inverse temperature
tau = 2.0; % trajectory length
ntraj = 1000; ncheckpoints=ntraj; % 1000 trajectories and only one checkpoint file at the end of the simulation
local_param = 'exponential_map'; % exponential map as the local parameterization
% (alternatively, one could choose the modified Cayley transform by sett local_param = 'caymod')
h = 0.1; % step size (make sure tau/h is an integer)
method = 'BADAB'; % in this example, we use the five-stage fourth-order Hessian-free force-gradient integrator BADAB.
runname = 'testrun'; % the output file will contain 'testrun' in the name
U = Hybrid_Monte_Carlo(L, method, param_beta, h, local_param, runname, ntraj, ncheckpoints, tau); % we start from a random link field (no U_start)