_NoMitigation

class _NoMitigation[source]

Bases: QEMProtocol

A dummy default mitigation protocol — pass the circuit through.

Attributes Summary

Methods Summary

expand(dag[, observable])

Generate DAGs and classical context for error mitigation.

reduce(quantum_results, context)

Combine quantum results with classical context into mitigated values.

Attributes Documentation

name

Methods Documentation

expand(dag, observable=None)[source]

Generate DAGs and classical context for error mitigation.

The input dag is consumed by this method: implementations may mutate it, and callers must not retain it expecting the original state.

Parameters:
  • dag (DAGCircuit) – Circuit to mitigate.

  • observable (tuple[SparsePauliOp, ...] | None) – tuple[SparsePauliOp, ...] (one entry per expectation value being measured), or None.

Return type:

tuple[tuple[DAGCircuit, ...], dict]

reduce(quantum_results, context)[source]

Combine quantum results with classical context into mitigated values.

Returns a list[float] of per-observable mitigated values. quantum_results is ordered along the QEM axis; each entry is itself a list[float] of per-observable expectation values from MeasurementStage.

Implementations may use context["dag_indices"] (when present) to select the relevant positions in quantum_results.

Return type:

list[float]