Matrix-product state with local basis optimisation (see Florian Dorfner's thesis).
More...
|
MemoryUsage::MemorySize | allocSize () const |
| syten::MemoryUsage::allocSize() support More...
|
|
void | cache () |
| Caches tensors on all sites and sets pleaseCache to true. More...
|
|
bool | cache (Index site, Local l=Local::Both) const |
| Caches tensors on site site . More...
|
|
void | dropUnmatched () |
| Sweeps multiple times over the system attempting to drop unmatched blocks until no blocks were dropped during one full sweep. More...
|
|
bool | dropUnmatchedM (Index const site, bool const left=true, bool const right=true, bool const up=true) |
| Compares the blocks of the rank-3 MPS tensor on the specified site against its neighbouring tensors (if the relevant boolean is true) and removes them if no corresponding quantum number sector exists there. More...
|
|
bool | dropUnmatchedV (Index const site) |
| Compares the blocks of the rank-2 LBO matrix on the specified site against the rank-3 MPS tensors and drops them if no corresponding quantum number sector exists there. More...
|
|
| LBOState ()=default |
| Default ctor. More...
|
|
| LBOState (LBOState &&a)=default |
| Move ctor. More...
|
|
| LBOState (LBOState const &a)=default |
| Copy ctor. More...
|
|
| LBOState (State &&a) |
| Move-conversion from MPS::State. More...
|
|
| LBOState (State const &a) |
| Copy-conversion from MPS::State. More...
|
|
SRDef | leftnorm (Index const site, Truncation const &trunc=Truncation(), DropNorm const dropN=DropNorm::Yes, DropUnmatched const dropU=DropUnmatched::Yes) |
| Normalises the tensors on the specified site to be left-normalised, i.e. occuring to the left of the central site. More...
|
|
SRDef | leftnorm (Truncation const &trunc=Truncation(), DropNorm const dropN=DropNorm::Yes) |
| Left-normalises the entire state from left to right. More...
|
|
SRDef | leftnormM (Index const site, Truncation trunc=Truncation(), DropNorm const dropN=DropNorm::Yes, DropUnmatched const dropU=DropUnmatched::Yes) |
| Normalises the rank-3 MPS tensor on the specified site towards the right (such that it occurs to the left of the central site). More...
|
|
Tensor< 3 > & | m (Index site) |
| Returns a reference to the rank-3 MPS tensor on site site More...
|
|
Tensor< 3 > const & | m (Index site) const |
| Returns a const reference to the rank-3 MPS tensor on site site More...
|
|
void | maybeCache () const |
| Caches tensors on all sites if pleaseCache is true. More...
|
|
void | maybeCache (Index site, Local l=Local::Both) const |
| Caches tensors on site site if pleaseCache is true. More...
|
|
Cached< Tensor< 3 > > & | mc (Index site) |
| Returns a reference to the cached rank-3 MPS tensor on site site More...
|
|
Cached< Tensor< 3 > > const & | mc (Index site) const |
| Returns a const reference to the cached rank-3 MPS tensor on site site More...
|
|
void | normalise () |
| Normalises the state to have norm one (but does not restore left- or right-normalisation). More...
|
|
| operator State () const |
| Conversion to MPS::State. More...
|
|
LBOState & | operator*= (Operator const &op) |
| Applies the operator op to the state without truncation. More...
|
|
LBOState & | operator*= (SDef const &a) |
| Multiplies the state by a scalar value a More...
|
|
LBOState & | operator+= (LBOState const &other) |
| Adds other to *this More...
|
|
LBOState & | operator= (LBOState &&a)=default |
| Move assignment op. More...
|
|
LBOState & | operator= (LBOState const &a)=default |
| Dtor. More...
|
|
SRDef | physnormM (Index const site, Truncation trunc=Truncation(), DropNorm const dropN=DropNorm::Yes, DropUnmatched const dropU=DropUnmatched::Yes) |
| Normalises the rank-3 MPS tensor on the specified site in the direction of its associated LBO matrix. More...
|
|
SRDef | physnormV (Index const site, Truncation trunc=Truncation(), DropNorm const dropN=DropNorm::Yes, DropUnmatched const dropU=DropUnmatched::Yes) |
| Normalises the rank-2 LBO matrix on the specified site in the direction of its associated MPS tensor. More...
|
|
void | resize (Index const new_size) |
| Resizes the number of sites to new_size . More...
|
|
SRDef | rightnorm (Index const site, Truncation const &trunc=Truncation(), DropNorm const dropN=DropNorm::Yes, DropUnmatched const dropU=DropUnmatched::Yes) |
| Normalises the tensors on the specified site to be right-normalised, i.e. occuring to the right of the central site. More...
|
|
SRDef | rightnorm (Truncation const &trunc=Truncation(), DropNorm const dropN=DropNorm::Yes) |
| Right-normalises the entire state from right to left. More...
|
|
SRDef | rightnormM (Index const site, Truncation trunc=Truncation(), DropNorm const dropN=DropNorm::Yes, DropUnmatched const dropU=DropUnmatched::Yes) |
| Normalises the rank-3 MPS tensor on the specified site towards the left (such that it occurs to the right of the central site). More...
|
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int in_version) |
| Boost serialisation support. More...
|
|
bool | setMaybeCache (bool pc) |
| Sets pleaseCache to pc More...
|
|
Index | size () const |
| Number of sites. More...
|
|
SRDef | truncate (Truncation const &trunc=Truncation(), DropNorm const dropN=DropNorm::Yes, IsOrthogonal const isOrthogonal=IsOrthogonal::No) |
| Truncates the state. More...
|
|
SRDef | truncateKeepNorm (Truncation const &trunc=Truncation(), IsOrthogonal const isOrthogonal=IsOrthogonal::No) |
| Truncates the state while keeping its norm constant. More...
|
|
SRDef | truncateKN2Conv (Truncation const &trunc=Truncation()) |
| Should call truncateKeepNorm repeatedly, but currently only calls it once. More...
|
|
void | uncache () |
| Uncaches tensors on all sites and sets pleaseCache to false. More...
|
|
bool | uncache (Index site, Local l=Local::Both) const |
| Uncaches tensors on site site . More...
|
|
Tensor< 2 > & | v (Index site) |
| Returns a reference to the rank-2 LBO matrix on site site More...
|
|
Tensor< 2 > const & | v (Index site) const |
| Returns a const reference to the rank-2 LBO matrix on site site More...
|
|
Cached< Tensor< 2 > > & | vc (Index site) |
| Returns a reference to the cached rank-2 LBO matrix on site site More...
|
|
Cached< Tensor< 2 > > const & | vc (Index site) const |
| Returns a reference to the cached rank-2 LBO matrix on site site More...
|
|
Matrix-product state with local basis optimisation (see Florian Dorfner's thesis).
Intended to have largely the same interface as a MPS::State, except where it doesn't.