psiqdk.algorithms._curated_loader
.. Copyright © 2026 PsiQuantum Corp. All rights reserved. PSIQUANTUM CORP. CONFIDENTIAL This file includes unpublished proprietary source code of PsiQuantum Corp. The copyright notice above does not evidence any actual or intended publication of such source code. Disclosure of this source code or any related proprietary information is strictly prohibited without the express written permission of PsiQuantum Corp.
Loader for the curated psiqdk.algorithms surface defined in algorithms-curated-mapping.yaml.
The mapping YAML has remapped (layout-only moves plus optional "*" root re-export list),
optional renamed, and optional aliased (re-exports from another installed package using
fully-qualified <module>.<Symbol> leaf specs and the same "*" wildcard rules as remapped,
but with fully-qualified module paths). Entries listed under unsupported are not imported here
(they remain on the legacy package only). Wildcard domains expand via _mapping_expand.
load_algorithms_mapping_at_path
load_algorithms_mapping_at_path(
mapping_path: Path,
) -> tuple[
str,
dict[str, Any],
dict[str, Any],
dict[str, Any],
dict[str, Any],
dict[str, Any],
dict[str, str],
dict[str, str],
]
Load and expand a Workbench-algorithms-style curated mapping YAML (same semantics as the
packaged algorithms-curated-mapping.yaml).
Prefer :func:mapping_path + cached loaders for normal package resolution.
apply_curated_exports
Populate module_globals for psiqdk.algorithms or a subpackage,
using the sibling YAML file as the single source of truth.
mapping_merged_tree
Return the merged remapped + renamed + aliased tree (installed export layout).
mapping_algorithms_root
Return root star re-exports for from psiqdk.algorithms import … (legacy specs from remapped['*']).
mapping_aliased_tree
Return the aliased subtree (dependency re-exports; values are <module>.<Symbol>).