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.
- Parameters:
- Raises:
ValueError – If no cache is registered with that name.
- Return type:
- 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").- Raises:
DuplicateRegistrationError – If the cache backend name or class is already registered.
- 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.
- Parameters:
cache (
str|Path|CacheBackend|None) – Cache instance, registered backend name, filesystem path, orNone.**kwargs (
Any) – Backend-specific configuration for a name or filesystem path.
- Return type:
Submodules
- qdk_chemistry.remote.cache.base module
- qdk_chemistry.remote.cache.folder module
- qdk_chemistry.remote.cache.tiered module
CacheBackendTieredCacheTieredCache.nameTieredCache.__init__()TieredCache.is_sharedTieredCache.tiersTieredCache.for_remote()TieredCache.to_config()TieredCache.get_job()TieredCache.put_job()TieredCache.get_data()TieredCache.put_data()TieredCache.has_data()TieredCache.delete_job()TieredCache.delete_data()TieredCache.clear()