https://github.com/ITensor/ITensor
Raw File
Tip revision: 6928c721813cde1204e8bf29dfb51a2f44dd9c9e authored by Miles Stoudenmire on 13 November 2015, 17:24:13 UTC
Removed outdated IQTensor constructor declarations
Tip revision: 6928c72
mpo_test.cc
#include "test.h"
#include "sites/spinone.h"
#include "hams/Heisenberg.h"

using namespace itensor;
using namespace std;

TEST_CASE("MPOTest")
{
const int N = 10;
SpinOne s1sites(N);

SECTION("Position")
    {
    MPO H = Heisenberg(s1sites);
    H.position(1);
    CHECK(H.isOrtho());
    CHECK_EQUAL(H.orthoCenter(),1);
    }

}
back to top