qdk_chemistry.remote package

Caching for QDK/Chemistry algorithm results.

This module provides result caching via the cache kwarg on algorithm.run().

Usage:
>>> from qdk_chemistry.algorithms import create
>>>
>>> scf = create("scf_solver")
>>>
>>> # Local with caching
>>> energy, wfn = scf.run(structure, 0, 1, "cc-pvdz", cache="./cache")
qdk_chemistry.remote.resolve_cache(cache, **kwargs)

Normalise a user-supplied cache argument.

Accepts any of the following:

  • None returns None

  • A CacheBackend instance → returned as-is

  • A Path or path-like string → FolderCache(path=...)

  • A registered name string → looked up in the registry; extra kwargs are forwarded to the backend constructor.

Return type:

CacheBackend | None

Parameters:

Subpackages

Submodules