Skip to content

Instantly share code, notes, and snippets.

View guycohen's full-sized avatar

Guy Cohen guycohen

View GitHub Profile
void generate_gates(std::vector<MYGATE>& gates, int N, Real tstep, Real t, Real J, Real W, const SiteSet& sites)
{
gates.clear();
const MYGATE::Type type = MYGATE::tReal;
t_realvector magnetic_field=W*(unitVector(N)-2.0*randomVector(N));
for(int b = 1; b < N; ++b)
{
MYTENSOR hh = J*sites.op("Sz",b)*sites.op("Sz",b+1);
hh += t*0.5*sites.op("Sp",b)*sites.op("Sm",b+1);
@guycohen
guycohen / error_log_001
Last active August 29, 2015 14:02
Trying to compile ALPSCore - gtest problem
cmake output:
*************
-- Building tests
-- gtest is in /home/guy/sync/research/bold_expansion/git/ALPSCore/gtest
ALPSCore module : alps-utility
-- Building static libraries