Skip to content

Latest commit

 

History

History
162 lines (137 loc) · 7.94 KB

File metadata and controls

162 lines (137 loc) · 7.94 KB

CHANGELOG

All notable changes to the project will be documented in this file. The project adheres semantic versioning

[Unreleased]

Backwards incompatible changes

Added

Changed

  • moved toycodes from the folder examples/ to a new folder toycodes/ to separate them clearly.
  • Restructured lanczos into a class, added time evolution calculating exp(A*dt)|psi0>
  • Warning for poorly conditioned Lanczos; to overcome this enable the new parameter "reortho"
  • By default, make deep copies of npc Arrays.
  • Restructured :mod:`tenpy.algorithms.dmrg`:
  • Changed default values for some parameters:
    • increase Lanczos_params['N_cache'] = N_max (i.e. keep all states)
    • set DMRG_params['P_tol_to_trunc'] = 0.05 and provide reasonable ..._min and ..._max values.
    • increased (default) DMRG accuracy by setting DMRG_params['max_E_err'] = 1.e-5 and DMRG_params['max_S_err'] = 1.e-3.
  • Don't print the energy during real-time TEBD evolution - it's preserved up to truncation errors.
  • Renamed the SquareLattice class to :class:`tenpy.models.lattice.Square` for better consistency.
  • auto-determine whether Jordan-Wigner strings are necessary in :meth:`~tenpy.models.model.CouplingModel.add_coupling`.

Fixed

  • avoid error in MPS.apply_local_op()
  • Don't carry around total charge when using DMRG with a mixer
  • Corrected couplings of the FermionicHubbardChain
  • issue #2: memory leak in cython parts when using intelpython/anaconda
  • issue #4: incompatible data types.
  • issue #6: the CouplingModel generated wrong Couplings in some cases
  • more reasonable traceback in case of wrong labels

Removed

[0.3.0] - 2018-02-19

This is the first version published on github.

Added

  • Cython modules for np_conserved and charges, which can optionally compiled for speed-ups
  • tools.optimization for dynamical optimization
  • Various models.
  • More predefined lattice sites.
  • Example toy-codes.
  • Network contractor for general networks

Changed

  • Switch to python3

Removed

  • Python 2 support.

[0.2.0] - 2017-02-24

  • Compatible with python2 and python3 (using the 2to3 tool).
  • Development version.
  • Includes TEBD and DMRG.

Changes compared to previous TeNPy

This library is based on a previous (closed source) version developed mainly by Frank Pollmann, Michael P. Zaletel and Roger S. K. Mong. While allmost all files are completely rewritten and not backwards compatible, the overall structure is similar. In the following, we list only the most important changes.

Global Changes

  • syntax style based on PEP8. Use $>yapf -r -i ./ to ensure consitent formatting over the whole project. Special comments # yapf: disable and # yapf: enable can be used for manual formatting of some regions in code.

  • Following PEP8, we distinguish between 'private' functions, indicated by names starting with an underscore and to be used only within the library, and the public API. The puplic API should be backwards-compatible with different releases, while private functions might change at any time.

  • all modules are in the folder tenpy to avoid name conflicts with other libraries.

  • withing the library, relative imports are used, e.g., from ..tools.math import (toiterable, tonparray) Exception: the files in tests/ and examples/ run as __main__ and can't use relative imports

    Files outside of the library (and in tests/, examples/) should use absolute imports, e.g. import tenpy.algorithms.tebd

  • renamed tenpy/mps/ to tenpy/networks, since it containes various tensor networks.

  • added :class:`~tenpy.networks.site.Site` describing the local physical sites by providing the physical LegCharge and onsite operators.

np_conserved

TEBD

  • Introduced TruncationError for easy handling of total truncation error.
  • some truncation parameters are renamed and may have a different meaning, e.g. svd_max -> svd_min has no 'log' in the definition.

DMRG

  • separate Lanczos module in tenpy/linalg/. Strangely, the old version orthoganalized against the complex conjugates of orthogonal_to (contrary to it's doc string!) (and thus calculated 'theta_o' as bra, not ket).
  • cleaned up, provide prototypes for DMRG engine and mixer.

Tools