[0.4.1] - 2019-08-14
Backwards incompatible changes
Switch the sign of the
BoseHubbardModelandFermiHubbardModelto hopping and chemical potential having negative prefactors. Of course, the same adjustment happens in theBoseHubbardChainandFermiHubbardChain.moved
BoseHubbardModelandBoseHubbardChainas well asFermiHubbardModelandFermiHubbardChaininto the new moduletenpy.models.hubbard.Change arguments of
coupling_term_handle_JW()andmulti_coupling_term_handle_JW()to use strength and sites instead of op_needs_JW.Only accept valid identifiers as operator names in
add_op().
Changed
grid_concat()allows forNoneentries (representing zero blocks).from_full()allows for ‘segment’ boundary conditions.apply_local_op()allows for n-site operators.
Added
Nearest-neighbor interaction in
BoseHubbardModelmultiply_op_names()to replace' '.join(op_names)and allow explicit compression/multiplication.order_combine_term()to group operators together.dagger()of MPO’s (and to implement that alsoflip_charges_qconj()).has_label()to check if a label existsAddition of MPOs
3 additional examples for chern insulators in
examples/chern_insulators/.from_MPOModel()for initializing nearest-neighbor models after grouping sites.
Fixed
issue #36: long-range couplings could give IndexError.
issue #42: Onsite-terms in
FermiHubbardModelwere wrong for lattices with non-trivial unit cell.Missing a factor 0.5 in
GUE().Allow
TermListto have terms with multiple operators acting on the same site.Allow MPS indices outside unit cell in
mps2lat_idx()andlat2mps_idx().expectation_value()did not work for n-site operators.