Pipeline¶
The divi.pipeline module provides the circuit pipeline engine that orchestrates
circuit generation, transformation, execution, and result reduction.
Core¶
Functions¶
|
Analyze a pipeline trace and compute per-stage factor. |
|
Print dry-run reports as rich trees with stage metadata. |
|
Print the full pipeline expansion tree to the terminal. |
|
Reduce grouped probability dicts by averaging across groups. |
Classes¶
|
Abstract stage that transforms a keyed MetaCircuit batch. |
|
Single ordered pipeline: one spec stage, then bundle stages. |
Raised when a stage's positional requirements are not met. |
|
Emitted when a pipeline configuration is known to be slow. |
|
|
Complete dry-run report for a single pipeline. |
|
Bundle-stage expansion output. |
|
Per-run context for the circuit pipeline. |
Pipeline result dict with convenience access for single-result pipelines. |
|
|
Forward-pass pipeline trace for fan-out verification before execution. |
|
First stage in every pipeline: converts an arbitrary spec into a keyed MetaCircuit batch. |
|
Abstract base for pipeline stages. |
|
Per-stage dry-run report. |
Canonical format that raw backend results should be converted into. |
Variables¶
Built-in immutable sequence. |
Built-in Stages¶
Functions¶
|
Resolve a |
|
Resolve a |
Classes¶
SpecStage that wraps one or more pre-built MetaCircuits into a batch. |
|
|
Fan a parametric circuit out over a classical feature batch. |
|
Unified measurement stage for all circuit measurement types. |
Bind |
|
|
Fan out each DAG body into Pauli-twirled copies and average on reduce. |
|
Pipeline stage that emits a single Z-basis measurement and computes nonlinear binary-polynomial energy from shot histograms. |
SpecStage that converts PennyLane circuits into MetaCircuit(s). |
|
|
BundleStage that applies a QEM protocol to each circuit body. |
SpecStage that converts Qiskit QuantumCircuit(s) into MetaCircuit(s). |
|
|
SpecStage that turns a Hamiltonian into a batch of MetaCircuits via a TrotterizationStrategy. |