cuquantum.cutensornet.experimental.MPSConfig

class cuquantum.cutensornet.experimental.MPSConfig(max_extent: Optional[int] = None, canonical_center: Optional[int] = None, abs_cutoff: Optional[float] = None, rel_cutoff: Optional[float] = None, normalization: Optional[str] = None, discarded_weight_cutoff: Optional[float] = None, algorithm: Optional[str] = None, mpo_application: Optional[str] = None, gesvdj_tol: Optional[float] = 0, gesvdj_max_sweeps: Optional[int] = 0, gesvdr_oversampling: Optional[int] = 0, gesvdr_niters: Optional[int] = 0)[source]

A data class for MPS based tensor network simulation configuration that can be provided to the NetworkState object.

max_extent

The maximal extent for truncation. If not provided, no extent truncation will be performed.

Type

int

canonical_center

The canonical center for the final MPS. If not provided, no canonicalization will be performed.

Type

int

abs_cutoff

The absolute value cutoff for MPS SVD truncation. If not provided, no truncation will be performed.

Type

float

rel_cutoff

The relative value cutoff for MPS SVD truncation. If not provided, no truncation will be performed.

Type

float

normalization

The normalization option for MPS SVD operations. If not provided, no normalization will be performed.

Type

str

discarded_weight_cutoff

The discarded weight cutoff for MPS SVD truncation. If not provided, no truncation will be performed.

Type

float

algorithm

The SVD algorithm for the MPS SVD computation. It can be "gesvd" (default), "gesvdj", "gesvdp" or "gesvdr".

Type

str

mpo_application

The option for MPS-MPO operations. It can be "approximate" (default) or "exact".

Type

str

gesvdj_tol

The tolerance for gesvdj computation.

Type

float

gesvdj_max_sweeps

The maximal number of sweeps for gesvdj computation.

Type

int

gesvdr_oversampling

The oversampling parameter for gesvdr computation.

Type

int

gesvdr_niters

The number of iterations for gesvdr computation.

Type

int