Seeding a QLattice
by: Chris Cave
(Feyn version 3.0 or newer)
The QLattice
is a method of sampling Models
from a probability distribution so by it's nature the QLattice
is a stochastic method. Between instances of QLattices
, it is not guaranteed that they will give the same results.
The results are likely to be similar but not identical.
If want to be able to reproduce your results (for example, you are sharing them to a colleague or in a publication) then you can seed the QLattice
by:
import feyn
ql = feyn.QLattice(random_seed=42)
This will ensure that you will receive exactly the same Models
between identical training runs.