Runtime¶
The execution runtime layers configuration, plans, strategies, diagnostics and introspection on top of the backend contract. Full API details live in the generated reference; the links below jump straight to the relevant module.
ExecutionRuntime— coordinates preparation, compilation, submission and collection, enriching results with metadata and traces.RuntimeConfig— frozen, JSON-safe defaults (backend, registry, default target, history cap, optimization level); passed asconfig=...or derived viaconfigure().ExecutionPlan— declarative description of what to run (see Execution Plan).ExecutionStrategy—DIRECT/COMPILED/BATCH/PARAMETER_SWEEP/HYBRIDdispatch and pluggable handlers (STRATEGY_HANDLERS,register_custom_strategy).ExecutionTrace— per-execution lifecycle record.Stage-tagged errors in
microquantum.runtime.errors— all subclasses ofExecutionError(which subclassesValueError, so existingexcept ValueErrorcode keeps working):PlanningError,CompilationError,RuntimeDispatchErrorandBackendExecutionError.Introspection —
runtime_info()returns aRuntimeInfosnapshot (version, Python / NumPy, strategies, live backend capability summaries, default backend).Module-level convenience entry points
execute(),submit(),execute_batch,submit_batch,execute_records,run_parameter_sweep,run_hybrid,run_experimentroute through the shareddefault_runtime.
See Runtime for the narrative guide, and
Command Line for the microquantum developer command line.