SyTen

◆ get_coefficient()

void syten::get_coefficient ( MPS::State const &  psi,
Index  first_site,
Tensor< 2 >  partial_contraction,
Vec< Pair< Index, Sector > > &  partial_bases 
)

Recursively called helper to compute coefficients of a state.

Parameters
psistate of which we calculate the coefficients
first_sitesite on which we currently work
partial_contractioncontraction of psi with selected basis states to the left
partial_basesselected bases states on sites to the left of first_site

If called on the last-plus-one site, prints the coefficient and the selected basis states on all sites.

References syten::Tensor< rank >::b(), degree(), syten::Basis::f(), genIONode(), get_coefficient(), gM(), hasCGC(), imag(), Inc, insertIOFullHalf(), makeIdentity(), std::move(), syten::YesNo< struct _prod_conj >::n(), normSqd(), Out, real(), std::scientific(), std::setprecision(), std::showpos(), and std::sort().

Referenced by get_coefficient().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: