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.
psi | state of which we calculate the coefficients |
first_site | site on which we currently work |
partial_contraction | contraction of psi with selected basis states to the left |
partial_bases | selected 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().