SyTen

◆ generateSampledProductState()

State syten::MPS::RandomState::generateSampledProductState ( Lattice const &  lat,
Basis const &  target,
Index const  initialOperatorCount 
)

Generates a product state with somewhat stochastic sampling.

Parameters
latunderlying lattice, we need access to all operators
targettarget LHS state basis
initialOperatorCountnumber of operators to apply initially unconditionally

Generates a vacuum state, then applies nontrivially transforming single-site operators at random locations until the target basis is contained in the LHS MPS basis.

References generateNearVacuumState(), syten::MPS::Operator::lIdx, syten::MPS::State::lIdx, and syten::min_dist().

Referenced by syten::MPS::ProjectedPurification::generateSampledProductState(), and generateSampledState().

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