Skip to content
Snippets Groups Projects
Commit e57c2a5a authored by Jonas Greitemann's avatar Jonas Greitemann
Browse files

README for Ising client code

parent 289a3eec
No related branches found
No related tags found
No related merge requests found
Ising Model Client Code
=======================
tba
Using `temperature` phase diagram point (LINK).
This client code is adapted from the [two-dimensional Ising model tutorial][1]
provided by ALPSCore to demonstrate how a basic ALPSCore-based simulation may be
used together with the TK-SVM framework.
Famously, the 2d Ising model exhibits a phase transition at _T<sub>c</sub> =
2.269 J_ to a ferromagnetic phase. Ponte and Melko demonstrated that an SVM with
a quadratic kernel may be used to learn this simple magnetic order [[Phys. Rev.
B **96**, 205146 (2017)][2]]. Step-by-step instructions on how to reproduce
their results are included as comments in the example parameter file
[`params/ising.ini`](params/ising.ini).
Building and Installation
-------------------------
Our codes also use CMake to configure the build environment. The procedure is
analogous to ALPSCore's, e.g.:
CMake is used to build this code:
```bash
$ cd svm-order-params
$ cd svm-order-params/ising
$ mkdir build && cd build
$ cmake ..
$ make -jN
```
Note that the repository makes use of git submodules. To also clone the
dependent repositories `svm` and `colormap`, supplement your call to `git clone`
with the flag `--recursive`; if the repository is already cloned, run
```bash
$ git submodule update --init
```
Finally, using `make install` the compiled executables can be copied to the
Finally, using `make install`, the compiled executables can be copied to the
`bin` directory at the location configured in `CMAKE_INSTALL_PREFIX`. This step
is optional. The remainder of this README assumes that executables have been
installed to a directory in the user's `$PATH`.
is optional.
Refer to the [top-level README](../README.md) for information on dependencies
and cloning of submodules.
Runtime parameters
------------------
This sections lists the runtime parameters which are defined by — and exclusive
to — this client code. These parameters supplement those lists in the section
[→ Runtime parameters](../README.md#runtime-parameters) of the top-level README.
### Simulation runtime
| Parameter name | Default | Description |
......@@ -49,9 +51,19 @@ Runtime parameters
| `length` | _required_ | Linear system size |
| `temperature` | _required_ | Initial temperature (_not relevant for SVM use case_) |
Note that the [`tksvm::phase_space::point::temperature`
type](../include/tksvm/phase_space/point/temperature.hpp) is used to encapsulate
the one-dimensional (temperature) parameter space of the phase diagram. Its
parameter specification is given in the [corresponding
section](../README.md#phase-diagram-point-specification) of the top-level README
file.
### Tensorial kernel
| Parameter name | Default | Description |
|:---------------|:----------:|:-------------------------------------------------------------------------------------------------|
| `rank` | _required_ | Rank of the monomial mapping |
| `symmetrized` | `1` | Eliminate redundant (symmetric) monomials (`1`) or not (`0`) |
[1]: https://github.com/ALPSCore/ALPSCore/tree/master/tutorials/mc/ising2_mc
[2]: https://doi.org/10.1103/PhysRevB.96.205146
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment