Search found 18 matches

by kevln
01 Jan 2024, 08:48
Forum: HowTos and FAQ for TeNPy
Topic: How to address the impact of different initial input states on idmrg calculation results
Replies: 0
Views: 35612

How to address the impact of different initial input states on idmrg calculation results

Recently, while using the idmrg algorithm in tenpy, I observed a significant impact of the initial state selection on the results. I attempted two types of initial states, with consistent filling patterns. Quantum number conservation was also taken into account. The first one is: prod_state = [[(0,1...
by kevln
14 Sep 2023, 13:58
Forum: HowTos and FAQ for TeNPy
Topic: The energy of bosons oscillates and fails to converge
Replies: 1
Views: 10757

Re: The energy of bosons oscillates and fails to converge

This problem always confuse me.Until now, l can not know what should l do to solve it.
by kevln
06 Jul 2023, 08:24
Forum: HowTos and FAQ for TeNPy
Topic: How to use the 'sort_mpo_legs' feature
Replies: 1
Views: 5124

How to use the 'sort_mpo_legs' feature

Hi,Johannes When I was looking for sample code on github, I found https://github.com/ITensor/ITensorBenchmarks.jl/blob/12e3a1f0ff3e587fd026d22d79a00bf36668cb34/src/tenpy_itensor_comparison/densempo_tenpy_1d_dmrg.py ,which mentions the 'sort_mpo_legs' feature. By studying the tenpy documentation, I t...
by kevln
05 Jul 2023, 09:33
Forum: HowTos and FAQ for TeNPy
Topic: The energy of bosons oscillates and fails to converge
Replies: 1
Views: 10757

The energy of bosons oscillates and fails to converge

Hi,Johannes, When I was trying a species model on a cylinder, I tried to consider the case where a lattice point can occupy multiple bosons (Nmax=3), and expected that when U is relatively large, the result can be compared with the hardcore bosons (Nmax=1) remains consistent. I think that when U is ...
by kevln
09 Jun 2023, 13:27
Forum: HowTos and FAQ for TeNPy
Topic: How to obtain a more accurate charge-pumping in tenpy
Replies: 1
Views: 1531

How to obtain a more accurate charge-pumping in tenpy

Hi, Johannes, I am working on a complex model where the theoretical slope of the charge pumping should be 2. I have written what I believe to be the correct code, but I am encountering some issues. The parameters I am using to calculate the charge-pump are as follows: I am taking 21 and 31 points wi...
by kevln
02 Jun 2023, 08:46
Forum: HowTos and FAQ for TeNPy
Topic: How to adjust the 'N_sweeps_check' and 'update_env' parameters in Tenpy's idmrg calculation
Replies: 2
Views: 1942

Re: How to adjust the 'N_sweeps_check' and 'update_env' parameters in Tenpy's idmrg calculation

Thank you very much for your reply. It has been very helpful in addressing my concerns. Based on your explanation, does this mean that by changing the parameters of the sweeps (such as truncation bond dimension and the number of sweeps) and adjusting the total number of environment updates through '...
by kevln
01 Jun 2023, 14:05
Forum: HowTos and FAQ for TeNPy
Topic: How to adjust the 'N_sweeps_check' and 'update_env' parameters in Tenpy's idmrg calculation
Replies: 2
Views: 1942

How to adjust the 'N_sweeps_check' and 'update_env' parameters in Tenpy's idmrg calculation

When using the idmrg algorithm in Tenpy for calculations, there are two parameters, ' N_sweeps_check' and 'update_env' , that have been confusing for me. Here are my concerns regarding the role of these parameters in the idmrg calculation: By default, 'N_sweeps_check' is set to 10. If I reduce 'N_sw...
by kevln
31 May 2023, 13:52
Forum: HowTos and FAQ for TeNPy
Topic: Write MPS/MPO to disk or increase RAM?
Replies: 3
Views: 8467

Re: Write MPS/MPO to disk or increase RAM?

In terms of memory usage of DMRG, the limiting factore are usually the MPO environments rather than the MPS itself: the number of parameters for the MPS scales as O(L\chi^2 d) , where L is MPS unit cell length, chi is bond dimension and d is local dimension. In contrast, MPO environments go as O(L\...
by kevln
25 May 2023, 01:58
Forum: HowTos and FAQ for TeNPy
Topic: how to write HofstadterModel with mixed_xk in infinite dmrg
Replies: 7
Views: 4300

Re: how to write HofstadterModel with mixed_xk in infinite dmrg

In real space, you can't conserve ky directly, so you don't get that quantum number (although it's still there in principle, yes). What initial state did you try? You need to put in the correct number of particles, but the total ky is a free parameter which you might need to vary as well (if you do...
by kevln
23 May 2023, 08:53
Forum: HowTos and FAQ for TeNPy
Topic: how to write HofstadterModel with mixed_xk in infinite dmrg
Replies: 7
Views: 4300

Re: how to write HofstadterModel with mixed_xk in infinite dmrg

Thank you very much for your help, I tried to use the method you said to calculate the momentum entanglement spectrum , as shown in arxiv:1512.03318. I tried to use psi.get_B(i).get_leg('vL').to_qflat() and found that when conserve_ky=True , the values in the second column are all 0, and I got somet...
by kevln
13 May 2023, 09:10
Forum: HowTos and FAQ for TeNPy
Topic: how to write HofstadterModel with mixed_xk in infinite dmrg
Replies: 7
Views: 4300

Re: how to write HofstadterModel with mixed_xk in infinite dmrg

Hi, Johannes After reading the relevant code of tenpy.mixed_xk, I found that the mixed_xk model provided in tenpy, like SpinlessMixedSquare, etc., seems to use one ring as a unit cell, which is true in a square lattice that does not consider the magnetic field. But after considering the magnetic fi...
by kevln
09 May 2023, 14:41
Forum: HowTos and FAQ for TeNPy
Topic: how to write HofstadterModel with mixed_xk in infinite dmrg
Replies: 7
Views: 4300

Re: how to write HofstadterModel with mixed_xk in infinite dmrg

Hi, Johannes After reading the relevant code of tenpy.mixed_xk, I found that the mixed_xk model provided in tenpy, like SpinlessMixedSquare, etc., seems to use one ring as a unit cell, which is true in a square lattice that does not consider the magnetic field. But after considering the magnetic fie...
by kevln
08 May 2023, 08:59
Forum: HowTos and FAQ for TeNPy
Topic: how to write HofstadterModel with mixed_xk in infinite dmrg
Replies: 7
Views: 4300

how to write HofstadterModel with mixed_xk in infinite dmrg

Hi,tenpy forum I'm trying to use the mixed model in tenpy to write the idmrg code of the hofstadter model, just like arxiv:1512.03318. According to the form provided MPO in the article, the form of our Hamiltonian is . https://i.328888.xyz/2023/05/08/i1SGQa.png Obviously there is a coefficient cos(k...
by kevln
04 Apr 2023, 09:23
Forum: HowTos and FAQ for TeNPy
Topic: Write MPS/MPO to disk or increase RAM?
Replies: 3
Views: 8467

Re: Write MPS/MPO to disk or increase RAM?

Hi,Sergi
DO you know how to solve this problem now?Or someother ways to store the MPS/MPO to disk in order to prevent out of memory?
Thanks a lot!
by kevln
30 Mar 2023, 03:33
Forum: HowTos and FAQ for TeNPy
Topic: How to use Multi-Species Models like FermiHubbardModel2
Replies: 0
Views: 30552

How to use Multi-Species Models like FermiHubbardModel2

Hi,Tenpy Forum I want to use Multi-Species Models like FermiHubbardModel2,and know that this can make diffenet Species such as up and down ,so l try my model as follow import numpy as np import warnings from tenpy.algorithms import dmrg from tenpy.networks.mps import MPS from tenpy.models import lat...
by kevln
13 Mar 2023, 13:30
Forum: HowTos and FAQ for TeNPy
Topic: a Momentum entanglement spectrum problem on BosonHaldaneModel
Replies: 0
Views: 30482

a Momentum entanglement spectrum problem on BosonHaldaneModel

Hi, TeNpy Sorry for asking my question here, I'm trying to calculate the Momentum entanglement spectrum on BosonHaldaneModel using TeNpy. By studying example1: Fermionic momentum entanglement spectrum https://colab.research.google.com/drive/1Km5dyBzc9UK0f50_KH9kbqF1SE9h2Soo#scrollTo=zT4OaJpI9v_Y and...
by kevln
25 Jan 2023, 06:44
Forum: HowTos and FAQ for TeNPy
Topic: The problem of Computing momentum entanglement spectrum in infinite dmrg
Replies: 1
Views: 1772

Re: The problem of Computing momentum entanglement spectrum in infinite dmrg

Why my questions can not be seen by others? Is there something wrong with my content?
by kevln
23 Jan 2023, 13:17
Forum: HowTos and FAQ for TeNPy
Topic: The problem of Computing momentum entanglement spectrum in infinite dmrg
Replies: 1
Views: 1772

The problem of Computing momentum entanglement spectrum in infinite dmrg

Hello, this is the first time to use Tenpy, it is quite good and has so many features. For the last few day I have been trying to calculate the momentum entanglement spectrum in 1407.6985 with Tenpy. I want to get Fig3.b without considering charge. In fact, using tenpy/example/chern insulators/halda...