SyTen

◆ measure_sso()

SRDef Workspace::measure_sso ( const Lattice _lattice,
const std::string _sso,
const Index _site 
)

Measure single-site operator and collapse tensor at given site.

sum-up projectors in subspace according to drawn sample

now project current mps site-tensor to the sampled subspace

get summed probabilities of sso decomposition

here we sum up all projectors to obtain projector into orthogonal complement of sampled subspace

now project current mps site-tensor to orthogonal complement

and project into sampled subspace

finally calculate expectation value of projected site tensor

References decompose_sso(), draw_ssm_sample(), syten::genFuse(), syten::genSplit(), syten::MPS::Lattice::getLocal(), last_ssm_decomposition, syten::MPS::Operator::lIdx, syten::MPS::State::lIdx, move_to_site(), std::next(), syten::MPS::norm(), syten::prod(), syten::projector(), psi, syten::real(), syten::MPS::Operator::rIdx, and syten::MPS::State::rIdx.

Referenced by syten::Pyten::init_mp_snapshots(), and measure_ssos().

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