cuquantum.OptimizerOptions¶
- class cuquantum.OptimizerOptions(samples: Optional[int] = None, path: Optional[Union[Type[types.PathFinderOptions], Iterable[Tuple[int, int]]]] = None, slicing: Optional[Union[Type[types.SlicerOptions], Iterable[Hashable], Iterable[Tuple[Hashable, int]]]] = None, reconfiguration: Optional[Type[types.ReconfigOptions]] = None, seed: Optional[int] = None)¶
-
A data class for providing options to the cuTensorNet optimizer.
- samples¶
-
Number of samples for hyperoptimization. See
CUTENSORNET_CONTRACTION_OPTIMIZER_CONFIG_HYPER_NUM_SAMPLES
.- Type
-
Optional[int]
- path¶
-
Options for the path finder (
PathFinderOptions
object or dict containing the(parameter, value)
items forPathFinderOptions
). Alternatively, the path can be provided as a sequence of pairs in thenumpy.einsum_path()
format.- Type
-
Optional[Union[Type[types.PathFinderOptions], Iterable[Tuple[int, int]]]]
- slicing¶
-
Options for the slicer (
SlicerOptions
object or dict containing the(parameter, value)
items forSlicerOptions
). Alternatively, a sequence of sliced modes or sequence of(sliced mode, sliced extent)
pairs can be directly provided.- Type
-
Optional[Union[Type[types.SlicerOptions], Iterable[Hashable], Iterable[Tuple[Hashable, int]]]]
- reconfiguration¶
-
Options for the reconfiguration algorithm as a
ReconfigOptions
object or dict containing the(parameter, value)
items forReconfigOptions
.- Type
-
Optional[Type[types.ReconfigOptions]]
- seed¶
-
Optional seed for the random number generator. See
CUTENSORNET_CONTRACTION_OPTIMIZER_CONFIG_SEED
.- Type
-
Optional[int]