netket.sampler.rules.TensorRule(hilbert, rules)#

A Metropolis sampling rule that can be used to combine different rules acting on different subspaces of the same tensor-hilbert space.

It should be constructed by passing a TensorHilbert space as a first argument and a list of rules as a second argument. Each rule[i] will be used to generate a transition for the i-th subspace of the tensor hilbert space.

  • hilbert (TensorHilbert) – The tensor hilbert space on which the rule acts.

  • rules (Tuple[MetropolisRule, ...]) – A list of rules, one for each subspace of the tensor hilbert space.

Return type: