Search found 465 matches
- 21 Oct 2020, 18:00
- Forum: HowTos and FAQ for TeNPy
- Topic: Symmetries Of lattice
- Replies: 10
- Views: 21069
Re: Symmetries Of lattice
The all-up state which you start with is an *exact* eigenstate of the Heisenberg model (both the ferro-magnetic and anti-ferromagnetic one), and indeed it's the ground state (or one of them, to be precise) for the FM J=-1 case. The reason why you still go away is a bug: you're missing the Y-Y term i...
- 21 Oct 2020, 16:01
- Forum: HowTos and FAQ for TeNPy
- Topic: Symmetries Of lattice
- Replies: 10
- Views: 21069
Re: Symmetries Of lattice
Just to make sure, you really look at the Ferromagnetic Heisenberg model, and not the transverse field Ising model, right? Why do you preserve the parity, but not Sz? To clarify: the "parity" is not the same as "spin flip symmetric". The conserved "parity" is (sum_i Z_i...
- 21 Oct 2020, 12:55
- Forum: Implementations
- Topic: Implementing non on-site symmetries
- Replies: 3
- Views: 51057
Re: Implementing non on-site symmetries
Yeah, kind of what I was expecting from what I know you've been working on...
- 21 Oct 2020, 11:11
- Forum: Implementations
- Topic: Implementing non on-site symmetries
- Replies: 3
- Views: 51057
Re: Implementing non on-site symmetries
Ugh, that's a really tough one! First of all: Is it really necessary to do the mapping from fermions to bosons, or couldn't you maybe directly implement the fermionic model instead? (I'd guess not, but just to make sure...) My first reaction definitely is "That's impossible". TeNPy's np_co...
- 20 Oct 2020, 19:13
- Forum: HowTos and FAQ for TeNPy
- Topic: Symmetries Of lattice
- Replies: 10
- Views: 21069
Re: Symmetries Of lattice
The Ground state of the ferromagnetic Heisenberg model is degenerate, and I guess that you might get different states depending on whether you turn on parity conservation. The different ground states have different entanglement. What start did you start with? It fixes the charge sector you remain in...
- 13 Oct 2020, 14:49
- Forum: HowTos and FAQ for TeNPy
- Topic: Symmetries Of lattice
- Replies: 10
- Views: 21069
Re: Symmetries Of lattice
As far as I know, exploiting translation symmetry or other symmetries of the lattice is not possible. There is only the trick which was pointed out in the source code of entanglement_entropy_segment before. I've implemented in 61be6397b0fedb066199bf24e948a6f6f702f6c6 today to give entanglement_entro...
- 12 Oct 2020, 10:30
- Forum: Releases
- Topic: Release v0.7.2
- Replies: 0
- Views: 147378
Release v0.7.2
Another rather minor release. We've added a list of all papers using TeNPy to the documentation. Feel free to include your own works! And a slight simplicifation, which might affect your code: using the MultiCouplingModel is no longer necessary, just use the tenpy.models.model.CouplingModel directly...
- 23 Sep 2020, 08:21
- Forum: HowTos and FAQ for TeNPy
- Topic: finite open, finite periodic and infinite periodic chains
- Replies: 10
- Views: 29069
Re: finite open, finite periodic and infinite periodic chains
Yes, the MPS is still finite and OBC-style bc_MPS='finite' , with vectors at the boundary. It's just that the couplings in the MPO are topolically equivalent to a ring, as you drew it in your picture. Using the "default" order wouldn't change this, you would still need to define the MPS to...
- 22 Sep 2020, 07:39
- Forum: HowTos and FAQ for TeNPy
- Topic: Bond dimension is not increasing
- Replies: 1
- Views: 4795
Re: Bond dimension is not increasing
You set n_max=1, i.e. you consider hard-core bosons with at most 1 particle per site, and the model has particle number conservation. The product state from which you initialize is completely filled with one particle per site, such that the hopping term can't contribute - it would create one hole an...
- 21 Sep 2020, 14:43
- Forum: HowTos and FAQ for TeNPy
- Topic: New to tenpy
- Replies: 2
- Views: 5704
Re: New to tenpy
Take a look at the overview and readthe other "introductions". You want to use the tenpy.models.hubbard.FermiHubbardModel with the tenpy.models.lattice.Ladder (for the other ladders, implement your own "Lattice" class as described in the various introductions). The t,U,L are mode...
- 21 Sep 2020, 12:55
- Forum: Releases
- Topic: Release v0.7.0 and v0.7.1
- Replies: 0
- Views: 35729
Release v0.7.0 and v0.7.1
Version 0.7.0 and 0.7.1 have been released about 2 weeks ago and are available from pip and conda. Before updating , please read at least the section incompatible changes of the changelog. The highlight of the changes is the new support for time evolution with the W_{II} method for approximating the...
- 21 Sep 2020, 10:14
- Forum: HowTos and FAQ for TeNPy
- Topic: Loschmidt Echo
- Replies: 2
- Views: 5230
Re: Loschmidt Echo
Welcome! The MPS which you pass to the TEBDEngine gets modified in place (because we want to avoid unnecessary copies of MPS in case they are large). In other words, psi_0 and eng.epsi are the same MPS (namely the time evolved one). The solution is to make a copy of the MPS at some point, e.g. psi_0...
- 02 Sep 2020, 16:54
- Forum: HowTos and FAQ for TeNPy
- Topic: finite open, finite periodic and infinite periodic chains
- Replies: 10
- Views: 29069
Re: finite open, finite periodic and infinite periodic chains
Oops! There was a bug in init_lattice that the 'order' parameter was read out, but not used for 1D lattices (i.e. the Chain and Ladder). I've quickly fixed this in 9e020640e180d6fb9d09f534a9c91fa047cf6bab . After this fix, using order='folded' is really "enough", apart from making sure tha...
- 24 Aug 2020, 09:26
- Forum: HowTos and FAQ for TeNPy
- Topic: Possible bug to implement vanishing coupling strength?
- Replies: 2
- Views: 7488
Re: Possible bug to implement vanishing coupling strength?
While it does not work with the version v0.6.1, it works with the latest version of the master branch. The fix is about a year old, but wasn't included into the master branch until recently when we merged the MPO evolution with the W_I/W_II approximations... I guess it's time for a version bump agai...
- 21 Aug 2020, 09:51
- Forum: HowTos and FAQ for TeNPy
- Topic: Bosonic Haldane Model
- Replies: 2
- Views: 6925
Re: Bosonic Haldane Model
You're right, that's a double counting. Good catch, thanks for pointing it out! The Fermionic Hofstadter model has the same problem, of course. Additionally, one of the example models had the issue. I've fixed it in a8448f36c23fda6f2ea8217f4f8e938acb7f67df bart Did you see this? Any other consequenc...
- 20 Aug 2020, 09:29
- Forum: HowTos and FAQ for TeNPy
- Topic: Qn about iDMRG
- Replies: 2
- Views: 28783
Re: Qn about iDMRG
The model is H = J \sum_{i} (0.5 (S^+_i S^-_{i+1} + h.c.) + \Delta S^z_I S^z_{i+1} ) - h^z \sum_i S^z_i , which is in the ferromagnetic phase of the XXZ chain for \Delta = -1.7 . In other words, the True ground state is simply all down states (or all up states, if you have a non-zero h^z ). Indeed, ...
- 31 Jul 2020, 13:11
- Forum: HowTos and FAQ for TeNPy
- Topic: DMRG different results using SingleSiteEngine and TwoSiteEngine and how to keep certain filling
- Replies: 1
- Views: 5746
Re: DMRG different results using SingleSiteEngine and TwoSiteEngine and how to keep certain filling
Imposing a small bond dimension has slightly different effects on single-site vs. two-site DMRG. Take the extreme case of chi=1, in which case single-site DMRG (without a mixer) effectively does mean-field theory for a single site in an environment, while two-site dmrg finds the ground state of two ...
- 31 Jul 2020, 10:59
- Forum: HowTos and FAQ for TeNPy
- Topic: Entanglement spectrum by charge (specifically for iDMRG)
- Replies: 4
- Views: 8719
Re: Entanglement spectrum by charge (specifically for iDMRG)
For infinite systems, the absolute value of the charges has no physical meaning but is a pure gauge choice; physical is only the difference between charge values. Indeed, the absolute value depends on the choice of your initial state - did you get different results when you initialized with the down...
- 11 Jul 2020, 04:20
- Forum: HowTos and FAQ for TeNPy
- Topic: Multiple sites to combine charges
- Replies: 1
- Views: 6475
Re: Multiple sites to combine charges
So you have 3 separate conserved quantities: number of A bosons siteA, number of bosons siteB, spin SiteZ? The charges for the siteA and siteB need to be different, so you can't pass the very same Site-instance. I expect the following to work: class BosonSin(CouplingMPOModel): def init_lattice(self,...
- 17 Jun 2020, 20:03
- Forum: HowTos and FAQ for TeNPy
- Topic: Superposition of MPS with different total charge
- Replies: 4
- Views: 14750
Re: Superposition of MPS with different total charge
To detect whether you have cat state, you should look at the eigenvalues of the transfermatrix, whether you get two eigenvalues exactly 1. If the ground state is a stripe, charge conservation can force it into superpositions. For that reason, I would also highly recommend to try using a larger (doub...
- 16 Jun 2020, 17:53
- Forum: HowTos and FAQ for TeNPy
- Topic: Superposition of MPS with different total charge
- Replies: 4
- Views: 14750
Re: Superposition of MPS with different total charge
(I took the freedom to slightly edit your suggested code.)
- 16 Jun 2020, 17:49
- Forum: HowTos and FAQ for TeNPy
- Topic: Superposition of MPS with different total charge
- Replies: 4
- Views: 14750
Re: Superposition of MPS with different total charge
May I ask why you want to create a superposition in the first place? Just for measurements? I don't really see a point for that. Or continuing some algorithm with another model which doesn't have the charge conservation? That would be more reasonable. Schollwoeck's 2011 review ("DMRG in the age...
- 16 Jun 2020, 05:29
- Forum: HowTos and FAQ for TeNPy
- Topic: Bipartitioning infinite MPS into 2 semi-infinite chains
- Replies: 11
- Views: 35654
Re: Bipartitioning infinite MPS into 2 semi-infinite chains
I see. Sorry, if I appeared rude; I just wasn't sure what you wanted to do. I'd still recommend running DMRG to find the ground state, which gives you an MPS, and then just take that as initial state for the TEBD, as outlined below. On a side note, you can derive your model directly from the Nearest...
- 15 Jun 2020, 16:41
- Forum: HowTos and FAQ for TeNPy
- Topic: Bipartitioning infinite MPS into 2 semi-infinite chains
- Replies: 11
- Views: 35654
Re: Bipartitioning infinite MPS into 2 semi-infinite chains
Why are you trying to do the time evolution? The paper you cited does *not* use TEBD, it uses DMRG! We define \theta = 2\pi t/T , assume adiabaticity and work in the instantaneous eigenbasis of H(\theta) . Hence, the charge transport becomes independent of the time scale T . "Adiabatically"...
- 15 Jun 2020, 16:14
- Forum: Algorithms
- Topic: Toy code for np_conservervation
- Replies: 1
- Views: 35422
Re: Toy code for np_conservervation
No, there is no toycode.
The idea is really just to keep track of the charges, which divides the tensor into smaller blocks, and multiply only the subblocks with compatible charges, re-implementing tensordot, eigh, ... to exploit the block structure.
The idea is really just to keep track of the charges, which divides the tensor into smaller blocks, and multiply only the subblocks with compatible charges, re-implementing tensordot, eigh, ... to exploit the block structure.