Changed files
- ./core/src/engine/Method_MC.cpp: Changed Metropolis algorithm logic to replace kT with gamma*B^2.
Need to re-compile cpp using cmake to use the changes. For me these worked:
cd build
cmake ..
make
make install
cd ../
cp build/install/bin/libSpirit.dylib /Users/jiakai/Desktop/SURF/code/venv/lib/python3.13/site-packages/spirit/
New files
-
quantum_memory_dip.py : To simulate spin glass in a decreasing transverse field, with long relaxation at some intermediate field H_relax. Script will generate csv file of susceptibility against Ht, and a corresponding html plot. Example of html generated:

-
quantum_memory_dip_ref.py : Similar to quantum_memory_dip.py but now without a relaxation phase when Ht ramps down. A second curve is also generated by ramping Ht back to original value after it hits 0. Example of html generated:
- negative_field_cycle.py : To simulate negative field cycle experiment, where sample was relaxed at some H_t = H_high, then H_t was suddenly reduced to H_t = H_low, and after relaxing for some time again H_t was ramped back up to H_high
- /utils : Some usefull Jupyter notebooks. Mainly to combine data from different runs to reduce noise