by: Chris Cave
(Feyn version 2.0 or newer)
QLattice can be considered as a probability distribution of
Model structures, that can be sampled from with the
sample_model function. When you update the
QLattice with a list of
Models, the probability density function is updated to encourage those structures.
reset function on a
QLattice is used then it clears all of its learnings. This means no
Model structure is encourage over another and forgets all the input names that have been passed to it.
You would use this if you are using a
QLattice on different problems and do not want the
Model structures from one problem to influence another.
import feyn ql = feyn.connect_qlattice() ql.reset(random_seed=42)
If want to be able to reproduce your results and obtain the same
Models between simulataions then you can seed a
QLattice and feyn.