cuquantum.densitymat.OperatorSpectrumConfig

class cuquantum.densitymat.OperatorSpectrumConfig(min_krylov_block_size: Optional[int] = None, max_buffer_ratio: Optional[int] = None, max_restarts: Optional[int] = None)[source]

A data class for providing configuration options to the OperatorSpectrumSolver eigensolver.

min_krylov_block_size

Minimum number of Krylov subspace vectors to use in the block iterative method. A larger value may improve convergence but increases memory usage and computational cost. If not specified, a default value will be chosen. Defaults to 1.

Type

Optional[int]

max_buffer_ratio

Maximum ratio of the total number of blocks in the Krylov subspace to the number of requested eigenvalues. If not specified, a default value will be chosen. Must be greater than 1. Defaults to 5.

Type

Optional[int]

max_restarts

Maximum number of restart cycles allowed during the iterative eigenvalue computation. If not specified, a default value will be chosen. Defaults to 20.

Type

Optional[int]