ResultFormat

class ResultFormat[source]

Bases: Enum

Canonical format that raw backend results should be converted into.

Set by a measurement stage during expand; read by pipeline.run() to apply the correct conversion between execute and reduce.

Attributes Summary

COUNTS

Raw shot counts — no conversion.

EXPVALS

Expectation values ({observable_key: float} mapping per branch key).

PROBS

Probability distributions ({bitstring: probability}).

Attributes Documentation

COUNTS = 'counts'

Raw shot counts — no conversion. Used by PCE (nonlinear reduce).

EXPVALS = 'expvals'

Expectation values ({observable_key: float} mapping per branch key).

PROBS = 'probs'

Probability distributions ({bitstring: probability}).