Search found 1 match
- 06 Sep 2024, 02:35
- Forum: HowTos and FAQ for TeNPy
- Topic: Momentum Distribution from MPS
- Replies: 1
- Views: 32035
Momentum Distribution from MPS
I have written code which uses dmrg to find the ground state MPS of a Bose-Hubbard system. engine = dmrg.TwoSiteDMRGEngine(psi, model, dmrg_params) E, psi = engine.run() It is easy enough to extract the density distribution and correlators from this, using density = psi.expectation_value('N').reshap...