Import path migration¶
English · 简体中文
Release 0.8 moved the implementations into directories organized by responsibility. The common exports of the root package remain available; old module paths are forwarded through a centralized compatibility table and reference the same implementations. New code should use the canonical paths.
Old path |
Canonical path |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Package paths without a standalone API page (such as
oracq.infrastructure.backends and oracq.applications.qham) stay as-is;
open the API pages of their submodules to inspect them.
Split-up legacy entry points¶
The query, search, QFT, QPE, and matrix-transform entry points of
algorithms.elementary moved into oracle_algorithms, search, fourier,
estimation, and transforms, respectively.
The concrete methods of algorithms.differential moved into lchs,
schrodingerization, cbmd, and carleman; the general entry point is
ode, and the PDE adapter is pde.
The state composition utilities of algorithms.solvers moved into
state_preparation, the Euler history into ode, and Trotter into
hamiltonian. The old factories remain available through the compatibility
entries.
File formats¶
The RIR version is 0.1, and the instruction set and execution semantics
are unchanged; the binding_captures field newly added to the linker holds
provenance information inside the existing scalar-attribute format, and the
schema and semantic checks now state its constraints as well. After the module
locations and generator compositions of the Python classes changed, module
hash names may change; do not use hash names as part of an application
protocol.
Algorithm interface naming and the resource ledger¶
AlgorithmContract,
QLSSSolver, and
QODESolver are the new canonical
names;
ProtocolContract,
QLSSProtocol, and
QODEProtocol are kept as
same-type aliases. Problem builders accept provider protocols, and the
constructed fields still hold concrete role views.
The rotations of resource estimation changed from a list to a compact
read-only sequence. The previous length, indexing, and iteration reads keep
working; code that mutated the list directly should read counts instead or
use the report. In open analyses qubits is None; known lower bounds are in
qubits_lower_bound.