Skip to content

Results are limited to Qoolqit v0.4.0

Product news
You are reading Qoolqit v0.4.0, an older version of this documentation. Go to the latest version (v1.6.0)

qoolqit.embedding.algorithms.interaction_embedding

module
qoolqit.embedding.algorithms.interaction_embedding

Classes

Functions

dataclass
InteractionEmbeddingConfig (method: str = 'Nelder-Mead', maxiter: int = 200000, tol: float = 1e-08)

Bases : EmbeddingConfig

Configuration parameters for the interaction embedding.

interaction_embedding (matrix: np.ndarray, method: str, maxiter: int, tol: float) → np.ndarray

Matrix embedding into the interaction term of the Rydberg Analog Model.

Uses scipy.minimize to find the optimal set of node coordinates such that the matrix of values 1/(r_ij)^6 approximate the off-diagonal terms of the input matrix.

Check the documentation for scipy.minimize for more information about each parameter

Parameters

  • matrix : np.ndarray — the matrix to embed.

  • method : str — the method used by scipy.minimize.

  • maxiter : int — maximum number of iterations.

  • tol : float — tolerance for termination.