Search found 3 matches

by underway93
06 Feb 2025, 07:35
Forum: HowTos and FAQ for TeNPy
Topic: Hamiltonian MPO of different kinds of spins
Replies: 4
Views: 60454

Re: Hamiltonian MPO of different kinds of spins

Johannes, thanks to your comment, I checked that having bond dimensions at the boundary does not matter. I studied the tdvp, tensor networks btw.. :) Testing the TDVP results with ED results, I found two things: 1) tenpy.algorithms.tdvp result is same as the exact diagonalization result. Maybe it is...
by underway93
17 Jan 2025, 07:42
Forum: HowTos and FAQ for TeNPy
Topic: Hamiltonian MPO of different kinds of spins
Replies: 4
Views: 60454

Re: Hamiltonian MPO of different kinds of spins

Thank you for your guidance. I successfully have built an MPO. But I want an MPO with open boundary. import tenpy from tenpy.models.model import CouplingMPOModel from tenpy.networks.site import SpinHalfSite, SpinSite import numpy as np from utils import compute_J class MyModel(CouplingMPOModel): def...
by underway93
03 Jan 2025, 05:02
Forum: HowTos and FAQ for TeNPy
Topic: Hamiltonian MPO of different kinds of spins
Replies: 4
Views: 60454

Hamiltonian MPO of different kinds of spins

Hello. I'm trying to build an MPO for a spin chain of different spins. For example, system is 1D chain of 4 spin-1 sites and 2 spin-1/2 sites. from tenpy.networks.site import SpinHalfSite, SpinSite N_s1 = 3 N_half = 2 sites_s1 = [SpinSite(1, conserve=None) for _ in range(N_s1)] sites_half = [SpinHal...