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:
NonereturnsNoneA
CacheBackendinstance → returned as-isA
Pathor path-like string →FolderCache(path=...)A registered name string → looked up in the registry; extra
kwargsare forwarded to the backend constructor.
- Return type:
- Parameters:
cache (str | Path | CacheBackend | None)
kwargs (Any)