hqs_quantum_solver.linalg

hqs_quantum_solver.linalg#

Linear algebra utility functions.

Functions

eigenvalue_bounds_hermitian(operator)

Calculates the largest and smallest algebraic eigenvalues of an hermitian operator.

Classes

EigenvalueBound

EigenvalueBound(min_val, max_val)

eigenvalue_bounds_hermitian(operator: OperatorProtocol) EigenvalueBound#

Calculates the largest and smallest algebraic eigenvalues of an hermitian operator.

Parameters:

operator (OperatorProtocol) – Operator whose eigenvalues are to be determined.

Returns:

Tuple containing the most negative and most positive eigenvalues.

Return type:

tuple[float, float]