microquantum.analytics.result¶
Standard result contract for microquantum executions and solvers.
Result is the public, serializable schema that represents the outcome
of a generic quantum execution or solver run: the computed solution,
confidence, fidelity, timing, optional reference baseline, and an
execution trace. It is intentionally domain-agnostic — applications may
attach their own meaning to the fields without the SDK assuming one.
Module Contents¶
- class microquantum.analytics.result.Result(problem, solution=None, confidence=1.0, fidelity=None, qubit_count=0, runtime_ms=0.0, baseline=None, quantum_trace=None, duration=None, *, decision=_UNSET, classical_baseline=_UNSET)[source]¶
Standardized outcome of a generic quantum execution / solver run.
- Variables:
problem – Machine-readable problem identifier.
solution – Computed solution produced by the execution.
confidence – Confidence score in [0, 1].
fidelity – Circuit/quantum fidelity achieved, if measurable.
qubit_count – Number of qubits used by the execution.
runtime_ms – End-to-end execution runtime in milliseconds.
baseline – Reference (classical) result, if available.
quantum_trace – Optional execution trace (shots, error budget, etc.).
duration – ISO 8601 timestamp of completion.
- Parameters:
- property improved_over_baseline: bool | None[source]¶
True if the quantum solution beats the reference baseline.
Only meaningful when both
solutionandbaselineare numeric, orquantum_tracecarries a comparable metric.- Return type:
Optional[bool]