diff --git a/algorithms/__pycache__/iTimeEvolvingBlockDecimation.cpython-38.pyc b/algorithms/__pycache__/iTimeEvolvingBlockDecimation.cpython-38.pyc index db01216..760b1a9 100644 Binary files a/algorithms/__pycache__/iTimeEvolvingBlockDecimation.cpython-38.pyc and b/algorithms/__pycache__/iTimeEvolvingBlockDecimation.cpython-38.pyc differ diff --git a/spin_systems/__pycache__/states.cpython-38.pyc b/spin_systems/__pycache__/states.cpython-38.pyc index 53959c7..21e6902 100644 Binary files a/spin_systems/__pycache__/states.cpython-38.pyc and b/spin_systems/__pycache__/states.cpython-38.pyc differ diff --git a/spin_systems/states.py b/spin_systems/states.py index a56ecba..89d22a5 100644 --- a/spin_systems/states.py +++ b/spin_systems/states.py @@ -13,6 +13,19 @@ def all_down(L): psi.center = 0 return psi +def all_up_along_x(L): + tensors = [1/np.sqrt(2)*np.array([1.,1.]).reshape(1,2,1)]*L + psi = MPS(L,tensors = tensors) + psi.center = 0 + return psi + +def all_down_along_x(L): + tensors = [1/np.sqrt(2)*np.array([1.,-1.]).reshape(1,2,1)]*L + psi = MPS(L,tensors = tensors) + psi.center = 0 + return psi + + def Neel(L): tensors = [np.array([1.,0.]).reshape(1,2,1),np.array([0.,1.]).reshape(1,2,1)]*(L//2) psi = MPS(L,tensors = tensors)