Search found 2 matches

by Pawel
16 Oct 2018, 10:37
Forum: HowTos and FAQ for TeNPy
Topic: MPS that is both conserved and in a superposition
Replies: 4
Views: 34064

Re: MPS that is both conserved and in a superposition

Hi Johannes, thanks for this extensive answer! The example which I gave might not be the best one. I work in a sector of a fixed number of particles which equals half the number of sites. I initialise my state with initial_state = [0]*(L//2) + [1]*(L//2) wich effectively gives half a particle per si...
by Pawel
05 Oct 2018, 14:58
Forum: HowTos and FAQ for TeNPy
Topic: MPS that is both conserved and in a superposition
Replies: 4
Views: 34064

MPS that is both conserved and in a superposition

I use bose-hubbard model. I want to construct an MPS that will be in a state of a superposition of 0 and 1 boson at each site. I also want to use this state in a DMRG computation that will conserve number of particles. Here is an example of what I mean: from tenpy.models.bose_hubbard_chain import Bo...