| State syten::MPS::RandomState::generateSampledProductState | ( | Lattice const & | lat, |
| Basis const & | target, | ||
| Index const | initialOperatorCount | ||
| ) |
Generates a product state with somewhat stochastic sampling.
| lat | underlying lattice, we need access to all operators |
| target | target LHS state basis |
| initialOperatorCount | number 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: