OpSum

Description

Missing docstring.

Missing docstring for OpSum. Check Documenter's build log for details.

Methods

Missing docstring.

Missing docstring for add!. Check Documenter's build log for details.

ITensors.MPOMethod
MPO(os::OpSum,sites::Vector{<:Index};kwargs...)

Convert an OpSum object os to an MPO, with indices given by sites. The resulting MPO will have the indices sites[1], sites[1]', sites[2], sites[2]' etc. The conversion is done by an algorithm that compresses the MPO resulting from adding the OpSum terms together, often achieving the minimum possible bond dimension.

Examples

os = OpSum()
os += ("Sz",1,"Sz",2)
os += ("Sz",2,"Sz",3)
os += ("Sz",3,"Sz",4)

sites = siteinds("S=1/2",4)
H = MPO(os,sites)
source