qdk_chemistry.remote.cache package
Cache backends for QDK/Chemistry job results.
- Built-in backends:
folder: Plain-file content-addressed cachetiered: Layered cache that combines multiple backends
Custom backends can be registered with @register_cache or via
the qdk_chemistry.cache_backends entry-point group.
- qdk_chemistry.remote.cache.available_caches()[source]
Return list of registered cache backend names.
- qdk_chemistry.remote.cache.get_cache(name, **config)[source]
Create a cache backend by name.
- Return type:
- Parameters:
- Raises:
ValueError – If no cache is registered with that name.
- qdk_chemistry.remote.cache.register_cache(name)[source]
Decorator to register a cache backend class.
- Parameters:
name (str) – The cache backend name (e.g.
"folder").
- qdk_chemistry.remote.cache.resolve_cache(cache, **kwargs)[source]
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)