deltakit.explorer.types.DecodingResult#

class deltakit.explorer.types.DecodingResult(fails: int, shots: int, times: list[float] | None = None, counts: list[int] | None = None, predictions_format: DataFormat = DataFormat.F01, predictionsFile: dict[str, str | None] | None = None)#

Bases: object

Results of decoding

Parameters:
  • fails (int) – number of times decoder failed

  • shots (int) – number of shots performed

  • times (List[float]) – CPU time for decoding workers

  • counts (List[int]) – number of shots each worker processed

  • predictions_format (DataFormat) – format of predictions

  • predictionsFile (Optional[Dict[str, Optional[str]]]) – definition of filename or datastring with decoding predictions.

Methods#

DecodingResult.combine

Concatenate decoding results from multiple experiments.

DecodingResult.get_logical_error_probability

Logical error probability, fails / shots.

DecodingResult.get_standard_deviation

Return standard deviation of result for a given number of shots and decoder fails.