mptensor v0.4.0
Parallel Library for Tensor Network Methods
Loading...
Searching...
No Matches
ising.hpp
Go to the documentation of this file.
1/*
2 mptensor - Parallel Library for Tensor Network Methods
3
4 Copyright 2016 Satoshi Morita
5
6 mptensor is free software: you can redistribute it and/or modify it
7 under the terms of the GNU Lesser General Public License as
8 published by the Free Software Foundation, either version 3 of the
9 License, or (at your option) any later version.
10
11 mptensor is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with mptensor. If not, see
18 <https://www.gnu.org/licenses/>.
19*/
20
28#ifndef _ISING_HPP_
29#define _ISING_HPP_
30
31#include <cmath>
32
33namespace examples {
34namespace Ising_2D {
35
37const double Ising_Tc = 2.0 / log(1.0 + sqrt(2.0));
38double exact_free_energy(double temp);
39
40} // namespace Ising_2D
41} // namespace examples
42
43#endif // _ISING_HPP_
Tensor< Matrix, C > sqrt(Tensor< Matrix, C > t)
Take square-root of each element.
double exact_free_energy(double temp)
Definition ising.cc:40
const double Ising_Tc
Tc of the Ising model on the square lattice.
Definition ising.hpp:37
Definition timer.hpp:33