This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _reshape(a, size): | |
return a.reshape(size, order='f') | |
rx1, rx2, ry1, ry2, ra1, ra2, n, l, m = 40, 40, 40, 40, 100, 100, 8, 8, 8 | |
x = np.ones((rx1, n, rx2)) | |
y = np.ones((ry1, n, ry2)) | |
A = np.ones((ra1, n, l, ra2)) | |
interface_prev = np.ones((rx1, ry1*ra1**2)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function, absolute_import, division | |
from six.moves import xrange | |
import sys | |
import tt | |
import numpy as np | |
from tt.eigb import eigb | |
import time | |
import copy | |
""" Compute minimal eigenvalues for the Heisenberg model """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function, absolute_import, division | |
from six.moves import xrange | |
import sys | |
import tt | |
import numpy as np | |
from tt.eigb import eigb | |
import time | |
import copy | |
""" Compute minimal eigenvalues for the Heisenberg model """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%matplotlib inline | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import math | |
import matplotlib as mpl | |
from itertools import product | |
import scipy as sp | |
import scipy.interpolate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
UnicodeEncodeError Traceback (most recent call last) | |
/Applications/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_code(self, code_obj, result) | |
3047 if result is not None: | |
3048 result.error_in_exec = sys.exc_info()[1] | |
-> 3049 self.showtraceback() | |
3050 else: | |
3051 outflag = 0 |