cotengra.pathfinders.path_random¶
Purely random pathfinder, for initialization and testing purposes.
Classes¶
A fully random pathfinder, that randomly selects pairs of tensors to |
Module Contents¶
- class cotengra.pathfinders.path_random.RandomOptimizer(seed=None)[source]¶
Bases:
cotengra.oe.PathOptimizer
A fully random pathfinder, that randomly selects pairs of tensors to contract (even if they are not connected). This is useful for testing purposes, and as a baseline for comparison with other pathfinders.
- Parameters:
seed (None, int or np.random.Generator, optional) – Random seed. If None, a random seed is selected. Default is None.
- rng¶